#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 {
ABSL_CONST_INIT thread_local PlatformEventSource* event_source = …;
}
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() { … }
}