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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 1906603002: mus: Fix event transformation in client code. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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/events/event.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 d34ad330b94132a61b11b0bb623da676b972620a..ffd17d6dbe69cb1584f87d0e1c625ee0a2b88ec9 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -87,7 +87,6 @@ WindowEventDispatcher::WindowEventDispatcher(WindowTreeHost* host)
move_hold_count_(0),
dispatching_held_event_(nullptr),
observer_manager_(this),
- transform_events_(true),
repost_event_factory_(this),
held_event_factory_(this) {
ui::GestureRecognizer::Get()->AddGestureEventHelper(this);
@@ -439,10 +438,8 @@ 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() && !is_dispatched_held_event(*event) &&
- transform_events_) {
+ if (event->IsLocatedEvent() && !is_dispatched_held_event(*event))
TransformEventForDeviceScaleFactor(static_cast<ui::LocatedEvent*>(event));
- }
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698