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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 552503003: Introduce EventProcessor::OnEventProcessingStarted() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sadrul comments addressed Created 6 years, 3 months 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/aura/window_event_dispatcher.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index 70d4e588f656c979e9f91232a86aabf0c453e14f..0b1103d016880e8015092b7a734b0a5145a34acc 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -435,16 +435,12 @@ ui::EventTarget* WindowEventDispatcher::GetRootTarget() {
return window();
}
-void WindowEventDispatcher::PrepareEventForDispatch(ui::Event* event) {
- if (dispatching_held_event_) {
- // The held events are already in |window()|'s coordinate system. So it is
- // not necessary to apply the transform to convert from the host's
- // coordinate system to |window()|'s coordinate system.
- return;
- }
- if (event->IsLocatedEvent()) {
+void WindowEventDispatcher::OnEventProcessingStarted(ui::Event* event) {
+ // The held events are already in |window()|'s coordinate system. So it is
+ // not necessary to apply the transform to convert from the host's
+ // coordinate system to |window()|'s coordinate system.
+ if (event->IsLocatedEvent() && !dispatching_held_event_)
TransformEventForDeviceScaleFactor(static_cast<ui::LocatedEvent*>(event));
- }
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698