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

Unified Diff: components/mus/ws/event_dispatcher.cc

Issue 1883263002: mash: Repost mouse pressed event when closing Ash system tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup 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 | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/event_dispatcher_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/event_dispatcher.cc
diff --git a/components/mus/ws/event_dispatcher.cc b/components/mus/ws/event_dispatcher.cc
index 98e09b71ad7f98e35bab2424de20c9d038a6b94d..b4d5936d81900641a11ce4662b3985804e6684f5 100644
--- a/components/mus/ws/event_dispatcher.cc
+++ b/components/mus/ws/event_dispatcher.cc
@@ -371,6 +371,8 @@ void EventDispatcher::DispatchToPointerTarget(const PointerTarget& target,
if (!target.window)
return;
+ // Transform the event to the target's coordinate system. The root_location
+ // is not changed because each EventDispatcher manages a single root.
gfx::Point location(event.location());
gfx::Transform transform(GetTransformToWindow(surface_id_, target.window));
transform.TransformPoint(&location);
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/event_dispatcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698