| 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 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class WmShellMus; | 24 class WmShellMus; |
| 25 class WmWindowMus; | 25 class WmWindowMus; |
| 26 | 26 |
| 27 // WmRootWindowController implementations for mus. | 27 // WmRootWindowController implementations for mus. |
| 28 class WmRootWindowControllerMus : public WmRootWindowController { | 28 class WmRootWindowControllerMus : public WmRootWindowController { |
| 29 public: | 29 public: |
| 30 WmRootWindowControllerMus(WmShellMus* shell, | 30 WmRootWindowControllerMus(WmShellMus* shell, |
| 31 RootWindowController* root_window_controller); | 31 RootWindowController* root_window_controller); |
| 32 ~WmRootWindowControllerMus() override; | 32 ~WmRootWindowControllerMus() override; |
| 33 | 33 |
| 34 static WmRootWindowControllerMus* Get(::ui::Window* window) { | 34 static WmRootWindowControllerMus* Get(ui::Window* window) { |
| 35 return const_cast<WmRootWindowControllerMus*>( | 35 return const_cast<WmRootWindowControllerMus*>( |
| 36 Get(const_cast<const ::ui::Window*>(window))); | 36 Get(const_cast<const ui::Window*>(window))); |
| 37 } | 37 } |
| 38 static const WmRootWindowControllerMus* Get(const ::ui::Window* window); | 38 static const WmRootWindowControllerMus* Get(const ui::Window* window); |
| 39 | 39 |
| 40 RootWindowController* root_window_controller() { | 40 RootWindowController* root_window_controller() { |
| 41 return root_window_controller_; | 41 return root_window_controller_; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void NotifyFullscreenStateChange(bool is_fullscreen); | 44 void NotifyFullscreenStateChange(bool is_fullscreen); |
| 45 | 45 |
| 46 // Screen conversion functions. | 46 // Screen conversion functions. |
| 47 gfx::Point ConvertPointToScreen(const WmWindowMus* source, | 47 gfx::Point ConvertPointToScreen(const WmWindowMus* source, |
| 48 const gfx::Point& point) const; | 48 const gfx::Point& point) const; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 75 RootWindowController* root_window_controller_; | 75 RootWindowController* root_window_controller_; |
| 76 base::ObserverList<WmRootWindowControllerObserver> observers_; | 76 base::ObserverList<WmRootWindowControllerObserver> observers_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); | 78 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace mus | 81 } // namespace mus |
| 82 } // namespace ash | 82 } // namespace ash |
| 83 | 83 |
| 84 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 84 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
| OLD | NEW |