OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 5 #ifndef ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
6 #define ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 6 #define ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
7 | 7 |
8 #include "ash/common/wm_root_window_controller.h" | 8 #include "ash/common/wm_root_window_controller.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 } | 36 } |
37 static const WmRootWindowControllerMus* Get(const aura::Window* window); | 37 static const WmRootWindowControllerMus* Get(const aura::Window* window); |
38 | 38 |
39 RootWindowController* root_window_controller() { | 39 RootWindowController* root_window_controller() { |
40 return root_window_controller_; | 40 return root_window_controller_; |
41 } | 41 } |
42 | 42 |
43 // Screen conversion functions. | 43 // Screen conversion functions. |
44 gfx::Point ConvertPointToScreen(const WmWindowMus* source, | 44 gfx::Point ConvertPointToScreen(const WmWindowMus* source, |
45 const gfx::Point& point) const; | 45 const gfx::Point& point) const; |
46 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, | |
47 const gfx::Point& point) const; | |
48 | 46 |
49 const display::Display& GetDisplay() const; | 47 const display::Display& GetDisplay() const; |
50 | 48 |
51 // Exposed as public so WindowManager can call it. | 49 // Exposed as public so WindowManager can call it. |
52 void MoveWindowsTo(WmWindow* dest); | 50 void MoveWindowsTo(WmWindow* dest); |
53 | 51 |
54 // WmRootWindowController: | 52 // WmRootWindowController: |
55 bool HasShelf() override; | 53 bool HasShelf() override; |
56 WmShell* GetShell() override; | 54 WmShell* GetShell() override; |
57 WmShelf* GetShelf() override; | 55 WmShelf* GetShelf() override; |
(...skipping 14 matching lines...) Expand all Loading... |
72 WmShellMus* shell_; | 70 WmShellMus* shell_; |
73 RootWindowController* root_window_controller_; | 71 RootWindowController* root_window_controller_; |
74 | 72 |
75 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); | 73 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); |
76 }; | 74 }; |
77 | 75 |
78 } // namespace mus | 76 } // namespace mus |
79 } // namespace ash | 77 } // namespace ash |
80 | 78 |
81 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 79 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
OLD | NEW |