#include "ui/events/event_dispatcher.h"
#include "base/ranges/algorithm.h"
#include "ui/events/event_target.h"
#include "ui/events/event_targeter.h"
namespace ui {
namespace {
class ScopedDispatchHelper : public Event::DispatcherApi { … };
}
EventDispatcherDelegate::EventDispatcherDelegate() : … { … }
EventDispatcherDelegate::~EventDispatcherDelegate() { … }
Event* EventDispatcherDelegate::current_event() { … }
EventDispatchDetails EventDispatcherDelegate::DispatchEvent(EventTarget* target,
Event* event) { … }
EventDispatchDetails EventDispatcherDelegate::PreDispatchEvent(
EventTarget* target, Event* event) { … }
EventDispatchDetails EventDispatcherDelegate::PostDispatchEvent(
EventTarget* target, const Event& event) { … }
EventDispatchDetails EventDispatcherDelegate::DispatchEventToTarget(
EventTarget* target,
Event* event) { … }
EventDispatcher::EventDispatcher(EventDispatcherDelegate* delegate)
: … { … }
EventDispatcher::~EventDispatcher() { … }
void EventDispatcher::OnHandlerDestroyed(EventHandler* handler) { … }
void EventDispatcher::ProcessEvent(EventTarget* target, Event* event) { … }
void EventDispatcher::OnDispatcherDelegateDestroyed() { … }
void EventDispatcher::DispatchEventToEventHandlers(EventHandlerList* list,
Event* event) { … }
void EventDispatcher::DispatchEvent(EventHandler* handler, Event* event) { … }
}