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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // default modal container is used. | 87 // default modal container is used. |
88 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( | 88 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( |
89 WmWindow* window); | 89 WmWindow* window); |
90 | 90 |
91 virtual bool HasShelf() = 0; | 91 virtual bool HasShelf() = 0; |
92 | 92 |
93 virtual WmShell* GetShell() = 0; | 93 virtual WmShell* GetShell() = 0; |
94 | 94 |
95 virtual WmShelf* GetShelf() = 0; | 95 virtual WmShelf* GetShelf() = 0; |
96 | 96 |
| 97 // Show shelf view if it was created hidden (before session has started). |
| 98 // TODO(jamescook): Eliminate this and handle show via Shelf. |
| 99 void ShowShelf(); |
| 100 |
97 // Returns the window associated with this WmRootWindowController. | 101 // Returns the window associated with this WmRootWindowController. |
98 virtual WmWindow* GetWindow() = 0; | 102 virtual WmWindow* GetWindow() = 0; |
99 | 103 |
100 // Gets the WmWindow whose shell window id is |container_id|. | 104 // Gets the WmWindow whose shell window id is |container_id|. |
101 WmWindow* GetContainer(int container_id); | 105 WmWindow* GetContainer(int container_id); |
102 const WmWindow* GetContainer(int container_id) const; | 106 const WmWindow* GetContainer(int container_id) const; |
103 | 107 |
104 // Configures |init_params| prior to initializing |widget|. | 108 // Configures |init_params| prior to initializing |widget|. |
105 // |shell_container_id| is the id of the container to parent |widget| to. | 109 // |shell_container_id| is the id of the container to parent |widget| to. |
106 virtual void ConfigureWidgetInitParamsForContainer( | 110 virtual void ConfigureWidgetInitParamsForContainer( |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 std::unique_ptr<ui::MenuModel> menu_model_; | 176 std::unique_ptr<ui::MenuModel> menu_model_; |
173 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; | 177 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; |
174 std::unique_ptr<views::MenuRunner> menu_runner_; | 178 std::unique_ptr<views::MenuRunner> menu_runner_; |
175 | 179 |
176 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController); | 180 DISALLOW_COPY_AND_ASSIGN(WmRootWindowController); |
177 }; | 181 }; |
178 | 182 |
179 } // namespace ash | 183 } // namespace ash |
180 | 184 |
181 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ | 185 #endif // ASH_COMMON_WM_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |