#include "ui/views/event_monitor_aura.h"
#include <memory>
#include "base/check_op.h"
#include "base/memory/raw_ptr.h"
#include "base/scoped_observation.h"
#include "ui/aura/env.h"
#include "ui/aura/window.h"
#include "ui/events/event_observer.h"
#include "ui/events/event_target.h"
namespace views {
namespace {
class WindowMonitorAura : public EventMonitorAura, public aura::WindowObserver { … };
}
std::unique_ptr<EventMonitor> EventMonitor::CreateApplicationMonitor(
ui::EventObserver* event_observer,
gfx::NativeWindow context,
const std::set<ui::EventType>& types) { … }
std::unique_ptr<EventMonitor> EventMonitor::CreateWindowMonitor(
ui::EventObserver* event_observer,
gfx::NativeWindow target_window,
const std::set<ui::EventType>& types) { … }
EventMonitorAura::EventMonitorAura(ui::EventObserver* event_observer,
ui::EventTarget* event_target,
const std::set<ui::EventType>& types)
: … { … }
EventMonitorAura::~EventMonitorAura() { … }
gfx::Point EventMonitorAura::GetLastMouseLocation() { … }
void EventMonitorAura::TearDown() { … }
}