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

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

Issue 2655213002: mash: changes event dispatch to consider non-client area of all windows (Closed)
Patch Set: Created 3 years, 11 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 | « services/ui/ws/event_dispatcher.cc ('k') | services/ui/ws/window_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_finder.h
diff --git a/services/ui/ws/window_finder.h b/services/ui/ws/window_finder.h
index a1dbe005ab42b42b06ad7948b457ab0ce6ccaa25..8f203c45f103d7672e5e689c0674f1e74b074770 100644
--- a/services/ui/ws/window_finder.h
+++ b/services/ui/ws/window_finder.h
@@ -15,13 +15,17 @@ namespace ws {
class ServerWindow;
-// Find the deepest visible child of |root| that should receive an event at
-// |location|. |location| is initially in the coordinate space of
-// |root_window|, on return it is converted to the coordinates of the return
-// value. Returns null if there is no valid event target window over |location|.
-ServerWindow* FindDeepestVisibleWindowForEvents(
- ServerWindow* root_window,
- gfx::Point* location);
+struct DeepestWindow {
+ ServerWindow* window = nullptr;
+ bool in_non_client_area = false;
+};
+
+// Finds the deepest visible child of |root| that should receive an event at
+// |location|. |location| is in the coordinate space of |root_window|. The
+// |window| field in the returned structure is set to the child window. If no
+// valid child window is found |window| is set to null.
+DeepestWindow FindDeepestVisibleWindowForEvents(ServerWindow* root_window,
+ const gfx::Point& location);
// Retrieve the transform to the provided |window|'s coordinate space from the
// root.
« no previous file with comments | « services/ui/ws/event_dispatcher.cc ('k') | services/ui/ws/window_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698