| 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 30 matching lines...) Expand all Loading... |
| 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, | 46 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, |
| 47 const gfx::Point& point) const; | 47 const gfx::Point& point) const; |
| 48 | 48 |
| 49 const display::Display& GetDisplay() const; | 49 const display::Display& GetDisplay() const; |
| 50 | 50 |
| 51 // Exposed as public so WindowManager can call it. |
| 52 void MoveWindowsTo(WmWindow* dest); |
| 53 |
| 51 // WmRootWindowController: | 54 // WmRootWindowController: |
| 52 bool HasShelf() override; | 55 bool HasShelf() override; |
| 53 WmShell* GetShell() override; | 56 WmShell* GetShell() override; |
| 54 AlwaysOnTopController* GetAlwaysOnTopController() override; | |
| 55 WmShelf* GetShelf() override; | 57 WmShelf* GetShelf() override; |
| 56 WmWindow* GetWindow() override; | 58 WmWindow* GetWindow() override; |
| 57 void ConfigureWidgetInitParamsForContainer( | 59 void ConfigureWidgetInitParamsForContainer( |
| 58 views::Widget* widget, | 60 views::Widget* widget, |
| 59 int shell_container_id, | 61 int shell_container_id, |
| 60 views::Widget::InitParams* init_params) override; | 62 views::Widget::InitParams* init_params) override; |
| 61 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; | 63 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; |
| 62 gfx::Point GetLastMouseLocationInRoot() override; | 64 gfx::Point GetLastMouseLocationInRoot() override; |
| 63 | 65 |
| 64 private: | 66 private: |
| 65 friend class RootWindowController; | 67 friend class RootWindowController; |
| 66 | 68 |
| 69 // WmRootWindowController: |
| 70 bool ShouldDestroyWindowInCloseChildWindows(WmWindow* window) override; |
| 71 |
| 67 WmShellMus* shell_; | 72 WmShellMus* shell_; |
| 68 RootWindowController* root_window_controller_; | 73 RootWindowController* root_window_controller_; |
| 69 | 74 |
| 70 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); | 75 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); |
| 71 }; | 76 }; |
| 72 | 77 |
| 73 } // namespace mus | 78 } // namespace mus |
| 74 } // namespace ash | 79 } // namespace ash |
| 75 | 80 |
| 76 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 81 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
| OLD | NEW |