Chromium Code Reviews| 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 22 matching lines...) Expand all Loading... | |
| 33 static WmRootWindowControllerMus* Get(ui::Window* window) { | 33 static WmRootWindowControllerMus* Get(ui::Window* window) { |
| 34 return const_cast<WmRootWindowControllerMus*>( | 34 return const_cast<WmRootWindowControllerMus*>( |
| 35 Get(const_cast<const ui::Window*>(window))); | 35 Get(const_cast<const ui::Window*>(window))); |
| 36 } | 36 } |
| 37 static const WmRootWindowControllerMus* Get(const ui::Window* window); | 37 static const WmRootWindowControllerMus* Get(const ui::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 gfx::Rect* ConvertWindowToScreen(const WmWindowMus* source, | |
|
mfomitchev
2016/11/17 17:14:01
Doesn't seem like there's any reason to create a m
thanhph
2016/11/17 19:08:30
Putting this function here could be good for futur
| |
| 44 const ui::Window* window) const; | |
| 45 | |
| 43 // Screen conversion functions. | 46 // Screen conversion functions. |
| 44 gfx::Point ConvertPointToScreen(const WmWindowMus* source, | 47 gfx::Point ConvertPointToScreen(const WmWindowMus* source, |
| 45 const gfx::Point& point) const; | 48 const gfx::Point& point) const; |
| 46 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, | 49 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, |
| 47 const gfx::Point& point) const; | 50 const gfx::Point& point) const; |
| 48 | 51 |
| 49 const display::Display& GetDisplay() const; | 52 const display::Display& GetDisplay() const; |
| 50 | 53 |
| 51 // Exposed as public so WindowManager can call it. | 54 // Exposed as public so WindowManager can call it. |
| 52 void MoveWindowsTo(WmWindow* dest); | 55 void MoveWindowsTo(WmWindow* dest); |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 72 WmShellMus* shell_; | 75 WmShellMus* shell_; |
| 73 RootWindowController* root_window_controller_; | 76 RootWindowController* root_window_controller_; |
| 74 | 77 |
| 75 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); | 78 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 } // namespace mus | 81 } // namespace mus |
| 79 } // namespace ash | 82 } // namespace ash |
| 80 | 83 |
| 81 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 84 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
| OLD | NEW |