| 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.
|
|
|