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

Unified Diff: services/ui/ws/event_dispatcher_delegate.h

Issue 2237003002: Find display root ServerWindow for located events in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_display
Patch Set: Fixes. Created 4 years, 4 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: services/ui/ws/event_dispatcher_delegate.h
diff --git a/services/ui/ws/event_dispatcher_delegate.h b/services/ui/ws/event_dispatcher_delegate.h
index cb4ce101f33e2e9e094839da3981b9eca9c4129c..82a5216064a72957bd81a10924021c0fadb48539 100644
--- a/services/ui/ws/event_dispatcher_delegate.h
+++ b/services/ui/ws/event_dispatcher_delegate.h
@@ -66,8 +66,10 @@ class EventDispatcherDelegate {
bool in_nonclient_area) = 0;
// Returns the window to start searching from at the specified location, or
- // null if there is a no window containing |location|.
- virtual ServerWindow* GetRootWindowContaining(const gfx::Point& location) = 0;
+ // null if there is a no window containing |location|. |location| should be in
+ // screen coordinates and if a window is returned then |location| will be
+ // updated to be relative to the origin of the window.
+ virtual ServerWindow* GetRootWindowContaining(gfx::Point* location) = 0;
// Called when event dispatch could not find a target. OnAccelerator may still
// be called.

Powered by Google App Engine
This is Rietveld 408576698