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 |