Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: ui/events/event_processor.h

Issue 113283005: aura: Start using EventPrcessor interface for event dispatch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/event_dispatcher.cc ('k') | ui/events/event_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_processor.h
diff --git a/ui/events/event_processor.h b/ui/events/event_processor.h
index fd9bee3b02e6e9572eb8b2ac53d8de915cbc7a64..34c973054d54fd6b50294dc309a9401ba5d550d7 100644
--- a/ui/events/event_processor.h
+++ b/ui/events/event_processor.h
@@ -23,6 +23,14 @@ class EVENTS_EXPORT EventProcessor : public EventDispatcherDelegate {
// EventTargets (whose root is returned by GetRootTarget()).
virtual EventDispatchDetails OnEventFromSource(Event* event)
WARN_UNUSED_RESULT;
+
+ protected:
+ // Prepares the event so that it can be dispatched. This is invoked before
+ // an EventTargeter is used to find the target of the event. So this can be
+ // used to update the event so that the targeter can operate correctly (e.g.
+ // it can be used to updated the location of the event when disptaching from
+ // an EventSource in high-DPI).
+ virtual void PrepareEventForDispatch(Event* event);
};
} // namespace ui
« no previous file with comments | « ui/events/event_dispatcher.cc ('k') | ui/events/event_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698