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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 2341483004: Fix event dispatching and window resizing in high-dpi mode. (Closed)
Patch Set: remove client area changes Created 4 years, 2 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
Index: ui/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index 5bfad58f8cb2971ca24fe7c3b44deee50abe50da..f5fe099778d986cdae98140babf08626ba5eaa23 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -74,7 +74,6 @@ WindowEventDispatcher::WindowEventDispatcher(WindowTreeHost* host)
move_hold_count_(0),
dispatching_held_event_(nullptr),
observer_manager_(this),
- transform_events_(true),
env_controller_(new EnvInputStateController),
repost_event_factory_(this),
held_event_factory_(this) {
@@ -423,10 +422,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));
- }
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698