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_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ |
6 #define ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/wm/workspace/workspace_types.h" | 9 #include "ash/common/wm/workspace/workspace_types.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 virtual bool HasShelf() = 0; | 94 virtual bool HasShelf() = 0; |
95 | 95 |
96 virtual WmShell* GetShell() = 0; | 96 virtual WmShell* GetShell() = 0; |
97 | 97 |
98 virtual WmShelf* GetShelf() = 0; | 98 virtual WmShelf* GetShelf() = 0; |
99 | 99 |
100 // Creates the shelf for this root window and notifies observers. | 100 // Creates the shelf for this root window and notifies observers. |
101 void CreateShelf(); | 101 void CreateShelf(); |
102 | 102 |
103 // Show shelf view if it was created hidden (before session has started). | |
104 // TODO(jamescook): Eliminate this and handle show via Shelf. | |
105 void ShowShelf(); | |
106 | |
107 // Returns the system tray controller. May be null for external displays. | 103 // Returns the system tray controller. May be null for external displays. |
108 SystemTray* GetSystemTray(); | 104 SystemTray* GetSystemTray(); |
109 | 105 |
110 // Returns the window associated with this WmRootWindowController. | 106 // Returns the window associated with this WmRootWindowController. |
111 virtual WmWindow* GetWindow() = 0; | 107 virtual WmWindow* GetWindow() = 0; |
112 | 108 |
113 // Gets the WmWindow whose shell window id is |container_id|. | 109 // Gets the WmWindow whose shell window id is |container_id|. |
114 WmWindow* GetContainer(int container_id); | 110 WmWindow* GetContainer(int container_id); |
115 const WmWindow* GetContainer(int container_id) const; | 111 const WmWindow* GetContainer(int container_id) const; |
116 | 112 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 std::unique_ptr<ui::MenuModel> menu_model_; | 185 std::unique_ptr<ui::MenuModel> menu_model_; |
190 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; | 186 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; |
191 std::unique_ptr<views::MenuRunner> menu_runner_; | 187 std::unique_ptr<views::MenuRunner> menu_runner_; |
192 | 188 |
193 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController); | 189 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController); |
194 }; | 190 }; |
195 | 191 |
196 } // namespace ash | 192 } // namespace ash |
197 | 193 |
198 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ | 194 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |