| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const gfx::Point& point) const; | 48 const gfx::Point& point) const; |
| 49 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, | 49 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, |
| 50 const gfx::Point& point) const; | 50 const gfx::Point& point) const; |
| 51 | 51 |
| 52 const display::Display& GetDisplay() const; | 52 const display::Display& GetDisplay() const; |
| 53 | 53 |
| 54 // WmRootWindowController: | 54 // WmRootWindowController: |
| 55 bool HasShelf() override; | 55 bool HasShelf() override; |
| 56 WmShell* GetShell() override; | 56 WmShell* GetShell() override; |
| 57 wm::WorkspaceWindowState GetWorkspaceWindowState() override; | 57 wm::WorkspaceWindowState GetWorkspaceWindowState() override; |
| 58 void SetMaximizeBackdropDelegate( |
| 59 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate) |
| 60 override; |
| 58 AlwaysOnTopController* GetAlwaysOnTopController() override; | 61 AlwaysOnTopController* GetAlwaysOnTopController() override; |
| 59 WmShelf* GetShelf() override; | 62 WmShelf* GetShelf() override; |
| 60 WmWindow* GetWindow() override; | 63 WmWindow* GetWindow() override; |
| 61 void ConfigureWidgetInitParamsForContainer( | 64 void ConfigureWidgetInitParamsForContainer( |
| 62 views::Widget* widget, | 65 views::Widget* widget, |
| 63 int shell_container_id, | 66 int shell_container_id, |
| 64 views::Widget::InitParams* init_params) override; | 67 views::Widget::InitParams* init_params) override; |
| 65 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; | 68 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; |
| 66 void AddObserver(WmRootWindowControllerObserver* observer) override; | 69 void AddObserver(WmRootWindowControllerObserver* observer) override; |
| 67 void RemoveObserver(WmRootWindowControllerObserver* observer) override; | 70 void RemoveObserver(WmRootWindowControllerObserver* observer) override; |
| 68 | 71 |
| 69 private: | 72 private: |
| 70 WmShellMus* shell_; | 73 WmShellMus* shell_; |
| 71 RootWindowController* root_window_controller_; | 74 RootWindowController* root_window_controller_; |
| 72 base::ObserverList<WmRootWindowControllerObserver> observers_; | 75 base::ObserverList<WmRootWindowControllerObserver> observers_; |
| 73 | 76 |
| 74 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); | 77 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace mus | 80 } // namespace mus |
| 78 } // namespace ash | 81 } // namespace ash |
| 79 | 82 |
| 80 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 83 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
| OLD | NEW |