| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class ScopedCaptureClient; | 49 class ScopedCaptureClient; |
| 50 } | 50 } |
| 51 | 51 |
| 52 namespace ash { | 52 namespace ash { |
| 53 class AshWindowTreeHost; | 53 class AshWindowTreeHost; |
| 54 class AlwaysOnTopController; | 54 class AlwaysOnTopController; |
| 55 class AnimatingDesktopController; | 55 class AnimatingDesktopController; |
| 56 class DesktopBackgroundWidgetController; | 56 class DesktopBackgroundWidgetController; |
| 57 class DockedWindowLayoutManager; | 57 class DockedWindowLayoutManager; |
| 58 class PanelLayoutManager; | 58 class PanelLayoutManager; |
| 59 class RootWindowControllerCommon; |
| 59 class RootWindowLayoutManager; | 60 class RootWindowLayoutManager; |
| 60 class ShelfLayoutManager; | 61 class ShelfLayoutManager; |
| 61 class ShelfWidget; | 62 class ShelfWidget; |
| 62 class StackingController; | 63 class StackingController; |
| 63 class StatusAreaWidget; | 64 class StatusAreaWidget; |
| 64 class SystemBackgroundController; | 65 class SystemBackgroundController; |
| 65 class SystemModalContainerLayoutManager; | 66 class SystemModalContainerLayoutManager; |
| 66 class SystemTray; | 67 class SystemTray; |
| 67 class TouchHudDebug; | 68 class TouchHudDebug; |
| 68 class TouchHudProjection; | 69 class TouchHudProjection; |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // the controller is for primary display. |first_run_after_boot| is | 245 // the controller is for primary display. |first_run_after_boot| is |
| 245 // set to true only for primary root window after boot. | 246 // set to true only for primary root window after boot. |
| 246 void Init(RootWindowType root_window_type, bool first_run_after_boot); | 247 void Init(RootWindowType root_window_type, bool first_run_after_boot); |
| 247 | 248 |
| 248 void InitLayoutManagers(); | 249 void InitLayoutManagers(); |
| 249 | 250 |
| 250 // Initializes |system_background_| and possibly also |boot_splash_screen_|. | 251 // Initializes |system_background_| and possibly also |boot_splash_screen_|. |
| 251 // |is_first_run_after_boot| determines the background's initial color. | 252 // |is_first_run_after_boot| determines the background's initial color. |
| 252 void CreateSystemBackground(bool is_first_run_after_boot); | 253 void CreateSystemBackground(bool is_first_run_after_boot); |
| 253 | 254 |
| 254 // Creates each of the special window containers that holds windows of various | |
| 255 // types in the shell UI. | |
| 256 void CreateContainersInRootWindow(wm::WmWindow* root_window); | |
| 257 | |
| 258 // Enables projection touch HUD. | 255 // Enables projection touch HUD. |
| 259 void EnableTouchHudProjection(); | 256 void EnableTouchHudProjection(); |
| 260 | 257 |
| 261 // Disables projection touch HUD. | 258 // Disables projection touch HUD. |
| 262 void DisableTouchHudProjection(); | 259 void DisableTouchHudProjection(); |
| 263 | 260 |
| 264 // Callback for MenuModelAdapter. | 261 // Callback for MenuModelAdapter. |
| 265 void OnMenuClosed(); | 262 void OnMenuClosed(); |
| 266 | 263 |
| 267 // Overridden from ShellObserver. | 264 // Overridden from ShellObserver. |
| 268 void OnLoginStateChanged(user::LoginStatus status) override; | 265 void OnLoginStateChanged(user::LoginStatus status) override; |
| 269 void OnTouchHudProjectionToggled(bool enabled) override; | 266 void OnTouchHudProjectionToggled(bool enabled) override; |
| 270 | 267 |
| 271 std::unique_ptr<AshWindowTreeHost> ash_host_; | 268 std::unique_ptr<AshWindowTreeHost> ash_host_; |
| 269 |
| 270 std::unique_ptr<RootWindowControllerCommon> root_window_controller_common_; |
| 271 |
| 272 RootWindowLayoutManager* root_window_layout_; | 272 RootWindowLayoutManager* root_window_layout_; |
| 273 | 273 |
| 274 std::unique_ptr<StackingController> stacking_controller_; | 274 std::unique_ptr<StackingController> stacking_controller_; |
| 275 | 275 |
| 276 // The shelf widget for this root window. | 276 // The shelf widget for this root window. |
| 277 std::unique_ptr<ShelfWidget> shelf_widget_; | 277 std::unique_ptr<ShelfWidget> shelf_widget_; |
| 278 | 278 |
| 279 // An invisible/empty window used as a event target for | 279 // An invisible/empty window used as a event target for |
| 280 // |MouseCursorEventFilter| before a user logs in. | 280 // |MouseCursorEventFilter| before a user logs in. |
| 281 // (crbug.com/266987) | 281 // (crbug.com/266987) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 // On classic ash, returns the RootWindowController for the given |root_window|. | 324 // On classic ash, returns the RootWindowController for the given |root_window|. |
| 325 // On mus ash, returns the RootWindowController for the primary display. | 325 // On mus ash, returns the RootWindowController for the primary display. |
| 326 // See RootWindowController class comment above. | 326 // See RootWindowController class comment above. |
| 327 ASH_EXPORT RootWindowController* GetRootWindowController( | 327 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 328 const aura::Window* root_window); | 328 const aura::Window* root_window); |
| 329 | 329 |
| 330 } // namespace ash | 330 } // namespace ash |
| 331 | 331 |
| 332 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 332 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |