chromium/ui/events/platform/platform_event_source.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/events/platform/platform_event_source.h"

#include <algorithm>
#include <ostream>

#include "base/observer_list.h"
#include "third_party/abseil-cpp/absl/base/attributes.h"
#include "ui/events/platform/platform_event_dispatcher.h"
#include "ui/events/platform/platform_event_observer.h"
#include "ui/events/platform/scoped_event_dispatcher.h"

namespace ui {

namespace {

// PlatformEventSource singleton is thread local so that different instances
// can be used on different threads (e.g. browser thread should be able to
// access PlatformEventSource owned by the UI Service's thread).
ABSL_CONST_INIT thread_local PlatformEventSource* event_source =;

}  // namespace

bool PlatformEventSource::ignore_native_platform_events_ =;

PlatformEventSource::PlatformEventSource()
    :{}

PlatformEventSource::~PlatformEventSource() {}

PlatformEventSource* PlatformEventSource::GetInstance() {}

bool PlatformEventSource::ShouldIgnoreNativePlatformEvents() {}

void PlatformEventSource::SetIgnoreNativePlatformEvents(bool ignore_events) {}

void PlatformEventSource::AddPlatformEventDispatcher(
    PlatformEventDispatcher* dispatcher) {}

void PlatformEventSource::RemovePlatformEventDispatcher(
    PlatformEventDispatcher* dispatcher) {}

std::unique_ptr<ScopedEventDispatcher> PlatformEventSource::OverrideDispatcher(
    PlatformEventDispatcher* dispatcher) {}

void PlatformEventSource::AddPlatformEventObserver(
    PlatformEventObserver* observer) {}

void PlatformEventSource::RemovePlatformEventObserver(
    PlatformEventObserver* observer) {}

uint32_t PlatformEventSource::DispatchEvent(PlatformEvent platform_event) {}

void PlatformEventSource::OnDispatcherListChanged() {}

void PlatformEventSource::OnOverriddenDispatcherRestored() {}

}  // namespace ui