Chromium Code Reviews| 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" | |
| 11 | 10 |
| 12 namespace display { | 11 namespace display { |
| 13 class Display; | 12 class Display; |
| 14 } | 13 } |
| 15 | 14 |
| 16 namespace ui { | 15 namespace ui { |
| 17 class Window; | 16 class Window; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace ash { | 19 namespace ash { |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 45 gfx::Point ConvertPointToScreen(const WmWindowMus* source, | 44 gfx::Point ConvertPointToScreen(const WmWindowMus* source, |
| 46 const gfx::Point& point) const; | 45 const gfx::Point& point) const; |
| 47 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, | 46 gfx::Point ConvertPointFromScreen(const WmWindowMus* target, |
| 48 const gfx::Point& point) const; | 47 const gfx::Point& point) const; |
| 49 | 48 |
| 50 const display::Display& GetDisplay() const; | 49 const display::Display& GetDisplay() const; |
| 51 | 50 |
| 52 // WmRootWindowController: | 51 // WmRootWindowController: |
| 53 bool HasShelf() override; | 52 bool HasShelf() override; |
| 54 WmShell* GetShell() override; | 53 WmShell* GetShell() override; |
| 55 wm::WorkspaceWindowState GetWorkspaceWindowState() override; | |
| 56 void SetMaximizeBackdropDelegate( | |
| 57 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate) | |
| 58 override; | |
| 59 AlwaysOnTopController* GetAlwaysOnTopController() override; | 54 AlwaysOnTopController* GetAlwaysOnTopController() override; |
| 60 WmShelf* GetShelf() override; | 55 WmShelf* GetShelf() override; |
| 61 WmWindow* GetWindow() override; | 56 WmWindow* GetWindow() override; |
| 62 void ConfigureWidgetInitParamsForContainer( | 57 void ConfigureWidgetInitParamsForContainer( |
| 63 views::Widget* widget, | 58 views::Widget* widget, |
| 64 int shell_container_id, | 59 int shell_container_id, |
| 65 views::Widget::InitParams* init_params) override; | 60 views::Widget::InitParams* init_params) override; |
| 66 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; | 61 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; |
| 67 gfx::Point GetLastMouseLocationInRoot() override; | 62 gfx::Point GetLastMouseLocationInRoot() override; |
| 68 void AddObserver(WmRootWindowControllerObserver* observer) override; | |
| 69 void RemoveObserver(WmRootWindowControllerObserver* observer) override; | |
| 70 | 63 |
| 71 private: | 64 private: |
| 65 friend class RootWindowController; | |
|
msw
2016/08/30 21:26:46
q: is this needed?
sky
2016/08/30 22:02:56
Yes, as RootWindowController calls CreateContainer
| |
| 66 | |
| 72 WmShellMus* shell_; | 67 WmShellMus* shell_; |
| 73 RootWindowController* root_window_controller_; | 68 RootWindowController* root_window_controller_; |
| 74 base::ObserverList<WmRootWindowControllerObserver> observers_; | 69 base::ObserverList<WmRootWindowControllerObserver> observers_; |
| 75 | 70 |
| 76 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); | 71 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); |
| 77 }; | 72 }; |
| 78 | 73 |
| 79 } // namespace mus | 74 } // namespace mus |
| 80 } // namespace ash | 75 } // namespace ash |
| 81 | 76 |
| 82 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ | 77 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ |
| OLD | NEW |