| 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 23 matching lines...) Expand all Loading... |
| 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); | |
| 45 | |
| 46 // Screen conversion functions. | 44 // Screen conversion functions. |
| 47 gfx::Point ConvertPointToScreen(const WmWindowMus* source, | 45 gfx::Point ConvertPointToScreen(const WmWindowMus* source, |
| 48 const gfx::Point& point) const; | 46 const gfx::Point& point) const; |
| 49 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, | 47 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, |
| 50 const gfx::Point& point) const; | 48 const gfx::Point& point) const; |
| 51 | 49 |
| 52 const display::Display& GetDisplay() const; | 50 const display::Display& GetDisplay() const; |
| 53 | 51 |
| 54 // WmRootWindowController: | 52 // WmRootWindowController: |
| 55 bool HasShelf() override; | 53 bool HasShelf() override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 75 RootWindowController* root_window_controller_; | 73 RootWindowController* root_window_controller_; |
| 76 base::ObserverList<WmRootWindowControllerObserver> observers_; | 74 base::ObserverList<WmRootWindowControllerObserver> observers_; |
| 77 | 75 |
| 78 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); | 76 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); |
| 79 }; | 77 }; |
| 80 | 78 |
| 81 } // namespace mus | 79 } // namespace mus |
| 82 } // namespace ash | 80 } // namespace ash |
| 83 | 81 |
| 84 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 82 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
| OLD | NEW |