OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_MUS_WS_WINDOW_FINDER_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_FINDER_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_FINDER_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_FINDER_H_ |
7 | 7 |
8 namespace cc { | 8 namespace cc { |
9 struct SurfaceId; | 9 struct SurfaceId; |
10 } | 10 } |
11 | 11 |
12 namespace gfx { | 12 namespace gfx { |
13 class Point; | 13 class Point; |
14 class Transform; | 14 class Transform; |
15 } | 15 } |
16 | 16 |
17 namespace mus { | 17 namespace mus { |
18 namespace ws { | 18 namespace ws { |
19 | 19 |
20 class ServerWindow; | 20 class ServerWindow; |
21 | 21 |
22 // Find the deepest visible child of |root| that contains |location| using | 22 // Find the deepest visible child of |root| that should receive an event at |
23 // a previously submitted frame. |location| is initially in the coordinate | 23 // |location|. |location| is initially in the coordinate space of |
24 // space of |root_window|. On return it is converted to the coordinates of the | 24 // |root_window|, on return it is converted to the coordinates of the return |
25 // return value. | 25 // value. |
26 ServerWindow* FindDeepestVisibleWindow(ServerWindow* root_window, | 26 ServerWindow* FindDeepestVisibleWindowForEvents( |
27 cc::SurfaceId display_surface_id, | 27 ServerWindow* root_window, |
28 gfx::Point* location); | 28 cc::SurfaceId display_surface_id, |
| 29 gfx::Point* location); |
29 | 30 |
30 // Retrieve the transform to the provided |window|'s coordinate space from the | 31 // Retrieve the transform to the provided |window|'s coordinate space from the |
31 // root. | 32 // root. |
32 gfx::Transform GetTransformToWindow(cc::SurfaceId display_surface_id, | 33 gfx::Transform GetTransformToWindow(cc::SurfaceId display_surface_id, |
33 ServerWindow* window); | 34 ServerWindow* window); |
34 | 35 |
35 } // namespace ws | 36 } // namespace ws |
36 } // namespace mus | 37 } // namespace mus |
37 | 38 |
38 #endif // COMPONENTS_MUS_WS_WINDOW_FINDER_H_ | 39 #endif // COMPONENTS_MUS_WS_WINDOW_FINDER_H_ |
OLD | NEW |