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

Side by Side Diff: components/mus/ws/window_finder.h

Issue 1496103002: Reusing base::IdType<...> to implement SurfaceId. Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-id-base
Patch Set: Rebasing + dusting off... Created 4 years, 10 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 unified diff | Download patch
OLDNEW
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 #include "cc/surfaces/surface_id.h"
9 struct SurfaceId;
10 }
11 9
12 namespace gfx { 10 namespace gfx {
13 class Point; 11 class Point;
14 class Transform; 12 class Transform;
15 } 13 }
16 14
17 namespace mus { 15 namespace mus {
18 namespace ws { 16 namespace ws {
19 17
20 class ServerWindow; 18 class ServerWindow;
21 19
22 // Find the deepest visible child of |root| that should receive an event at 20 // Find the deepest visible child of |root| that should receive an event at
23 // |location|. |location| is initially in the coordinate space of 21 // |location|. |location| is initially in the coordinate space of
24 // |root_window|, on return it is converted to the coordinates of the return 22 // |root_window|, on return it is converted to the coordinates of the return
25 // value. 23 // value.
26 ServerWindow* FindDeepestVisibleWindowForEvents( 24 ServerWindow* FindDeepestVisibleWindowForEvents(
27 ServerWindow* root_window, 25 ServerWindow* root_window,
28 cc::SurfaceId display_surface_id, 26 cc::SurfaceId display_surface_id,
29 gfx::Point* location); 27 gfx::Point* location);
30 28
31 // Retrieve the transform to the provided |window|'s coordinate space from the 29 // Retrieve the transform to the provided |window|'s coordinate space from the
32 // root. 30 // root.
33 gfx::Transform GetTransformToWindow(cc::SurfaceId display_surface_id, 31 gfx::Transform GetTransformToWindow(cc::SurfaceId display_surface_id,
34 ServerWindow* window); 32 ServerWindow* window);
35 33
36 } // namespace ws 34 } // namespace ws
37 } // namespace mus 35 } // namespace mus
38 36
39 #endif // COMPONENTS_MUS_WS_WINDOW_FINDER_H_ 37 #endif // COMPONENTS_MUS_WS_WINDOW_FINDER_H_
OLDNEW
« no previous file with comments | « components/mus/ws/server_window_surface.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698