#include "ui/events/event_rewriter.h"
#include <utility>
#include "base/check_op.h"
#include "base/notreached.h"
#include "ui/events/event_rewriter_continuation.h"
#include "ui/events/event_source.h"
#include "ui/events/event_target.h"
#include "ui/events/platform_event.h"
namespace ui {
namespace {
ui::EventDispatchDetails DispatcherDestroyed() { … }
}
EventDispatchDetails EventRewriter::RewriteEvent(
const Event& event,
const Continuation continuation) { … }
EventRewriteStatus EventRewriter::RewriteEvent(
const Event& event,
std::unique_ptr<Event>* rewritten_event) { … }
bool EventRewriter::SupportsNonRootLocation() const { … }
EventRewriteStatus EventRewriter::NextDispatchEvent(
const Event& last_event,
std::unique_ptr<Event>* new_event) { … }
EventDispatchDetails EventRewriter::SendEventToEventSource(EventSource* source,
Event* event) const { … }
EventDispatchDetails EventRewriter::SendEvent(const Continuation continuation,
const Event* event) { … }
EventDispatchDetails EventRewriter::SendEventFinally(
const Continuation continuation,
const Event* event) { … }
EventDispatchDetails EventRewriter::DiscardEvent(
const Continuation continuation) { … }
void EventRewriter::SetEventTarget(Event& event, EventTarget* target) { … }
#if BUILDFLAG(IS_CHROMEOS)
void EventRewriter::SetNativeEvent(Event& event,
const PlatformEvent& native_event) {
event.native_event_ = native_event;
}
#endif
}