| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | |
| 6 #define ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | |
| 7 | |
| 8 #include "ash/common/wm_root_window_controller.h" | |
| 9 #include "base/macros.h" | |
| 10 | |
| 11 namespace aura { | |
| 12 class Window; | |
| 13 } | |
| 14 | |
| 15 namespace display { | |
| 16 class Display; | |
| 17 } | |
| 18 | |
| 19 namespace ash { | |
| 20 namespace mus { | |
| 21 | |
| 22 class RootWindowController; | |
| 23 class WmShellMus; | |
| 24 class WmWindowMus; | |
| 25 | |
| 26 // WmRootWindowController implementations for mus. | |
| 27 class WmRootWindowControllerMus : public WmRootWindowController { | |
| 28 public: | |
| 29 WmRootWindowControllerMus(WmShellMus* shell, | |
| 30 RootWindowController* root_window_controller); | |
| 31 ~WmRootWindowControllerMus() override; | |
| 32 | |
| 33 static WmRootWindowControllerMus* Get(aura::Window* window) { | |
| 34 return const_cast<WmRootWindowControllerMus*>( | |
| 35 Get(const_cast<const aura::Window*>(window))); | |
| 36 } | |
| 37 static const WmRootWindowControllerMus* Get(const aura::Window* window); | |
| 38 | |
| 39 RootWindowController* root_window_controller() { | |
| 40 return root_window_controller_; | |
| 41 } | |
| 42 | |
| 43 // Screen conversion functions. | |
| 44 gfx::Point ConvertPointToScreen(const WmWindowMus* source, | |
| 45 const gfx::Point& point) const; | |
| 46 | |
| 47 const display::Display& GetDisplay() const; | |
| 48 | |
| 49 // Exposed as public so WindowManager can call it. | |
| 50 void MoveWindowsTo(WmWindow* dest); | |
| 51 | |
| 52 // WmRootWindowController: | |
| 53 bool HasShelf() override; | |
| 54 WmShelf* GetShelf() override; | |
| 55 WmWindow* GetWindow() override; | |
| 56 | |
| 57 private: | |
| 58 friend class RootWindowController; | |
| 59 | |
| 60 // WmRootWindowController: | |
| 61 bool ShouldDestroyWindowInCloseChildWindows(WmWindow* window) override; | |
| 62 | |
| 63 WmShellMus* shell_; | |
| 64 RootWindowController* root_window_controller_; | |
| 65 | |
| 66 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); | |
| 67 }; | |
| 68 | |
| 69 } // namespace mus | |
| 70 } // namespace ash | |
| 71 | |
| 72 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | |
| OLD | NEW |