OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ |
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 class SystemTray; | 66 class SystemTray; |
67 class TouchHudDebug; | 67 class TouchHudDebug; |
68 class TouchHudProjection; | 68 class TouchHudProjection; |
69 class WorkspaceController; | 69 class WorkspaceController; |
70 | 70 |
71 #if defined(OS_CHROMEOS) | 71 #if defined(OS_CHROMEOS) |
72 class BootSplashScreen; | 72 class BootSplashScreen; |
73 class AshTouchExplorationManager; | 73 class AshTouchExplorationManager; |
74 #endif | 74 #endif |
75 | 75 |
| 76 namespace wm { |
| 77 class WmWindow; |
| 78 } |
| 79 |
76 // This class maintains the per root window state for ash. This class | 80 // This class maintains the per root window state for ash. This class |
77 // owns the root window and other dependent objects that should be | 81 // owns the root window and other dependent objects that should be |
78 // deleted upon the deletion of the root window. This object is | 82 // deleted upon the deletion of the root window. This object is |
79 // indirectly owned and deleted by |WindowTreeHostManager|. | 83 // indirectly owned and deleted by |WindowTreeHostManager|. |
80 // The RootWindowController for particular root window is stored in | 84 // The RootWindowController for particular root window is stored in |
81 // its property (RootWindowSettings) and can be obtained using | 85 // its property (RootWindowSettings) and can be obtained using |
82 // |GetRootWindowController(aura::WindowEventDispatcher*)| function. | 86 // |GetRootWindowController(aura::WindowEventDispatcher*)| function. |
83 // | 87 // |
84 // NOTE: In classic ash there is one RootWindow per display, so every RootWindow | 88 // NOTE: In classic ash there is one RootWindow per display, so every RootWindow |
85 // has a RootWindowController. In mus/mash there is one RootWindow per top-level | 89 // has a RootWindowController. In mus/mash there is one RootWindow per top-level |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 void Init(RootWindowType root_window_type, bool first_run_after_boot); | 246 void Init(RootWindowType root_window_type, bool first_run_after_boot); |
243 | 247 |
244 void InitLayoutManagers(); | 248 void InitLayoutManagers(); |
245 | 249 |
246 // Initializes |system_background_| and possibly also |boot_splash_screen_|. | 250 // Initializes |system_background_| and possibly also |boot_splash_screen_|. |
247 // |is_first_run_after_boot| determines the background's initial color. | 251 // |is_first_run_after_boot| determines the background's initial color. |
248 void CreateSystemBackground(bool is_first_run_after_boot); | 252 void CreateSystemBackground(bool is_first_run_after_boot); |
249 | 253 |
250 // Creates each of the special window containers that holds windows of various | 254 // Creates each of the special window containers that holds windows of various |
251 // types in the shell UI. | 255 // types in the shell UI. |
252 void CreateContainersInRootWindow(aura::Window* root_window); | 256 void CreateContainersInRootWindow(wm::WmWindow* root_window); |
253 | 257 |
254 // Enables projection touch HUD. | 258 // Enables projection touch HUD. |
255 void EnableTouchHudProjection(); | 259 void EnableTouchHudProjection(); |
256 | 260 |
257 // Disables projection touch HUD. | 261 // Disables projection touch HUD. |
258 void DisableTouchHudProjection(); | 262 void DisableTouchHudProjection(); |
259 | 263 |
260 // Callback for MenuModelAdapter. | 264 // Callback for MenuModelAdapter. |
261 void OnMenuClosed(); | 265 void OnMenuClosed(); |
262 | 266 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 323 |
320 // On classic ash, returns the RootWindowController for the given |root_window|. | 324 // On classic ash, returns the RootWindowController for the given |root_window|. |
321 // On mus ash, returns the RootWindowController for the primary display. | 325 // On mus ash, returns the RootWindowController for the primary display. |
322 // See RootWindowController class comment above. | 326 // See RootWindowController class comment above. |
323 ASH_EXPORT RootWindowController* GetRootWindowController( | 327 ASH_EXPORT RootWindowController* GetRootWindowController( |
324 const aura::Window* root_window); | 328 const aura::Window* root_window); |
325 | 329 |
326 } // namespace ash | 330 } // namespace ash |
327 | 331 |
328 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 332 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |