| 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 #include <vector> | 10 #include <vector> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 const WmWindow* GetWindow() const; | 132 const WmWindow* GetWindow() const; |
| 133 | 133 |
| 134 WorkspaceController* workspace_controller() { | 134 WorkspaceController* workspace_controller() { |
| 135 return workspace_controller_.get(); | 135 return workspace_controller_.get(); |
| 136 } | 136 } |
| 137 | 137 |
| 138 wm::WorkspaceWindowState GetWorkspaceWindowState(); | 138 wm::WorkspaceWindowState GetWorkspaceWindowState(); |
| 139 | 139 |
| 140 WmShelf* wm_shelf() const { return wm_shelf_.get(); } | 140 WmShelf* wm_shelf() const { return wm_shelf_.get(); } |
| 141 // TODO(jamescook): Eliminate in favor of wm_shelf(). |
| 142 WmShelf* GetShelf() const { return wm_shelf_.get(); } |
| 141 | 143 |
| 142 bool HasShelf(); | 144 // Initializes the shelf for this root window and notifies observers. |
| 143 | 145 void InitializeShelf(); |
| 144 WmShelf* GetShelf(); | |
| 145 | |
| 146 // Creates the shelf view for this root window and notifies observers. | |
| 147 void CreateShelfView(); | |
| 148 | 146 |
| 149 // Get touch HUDs associated with this root window controller. | 147 // Get touch HUDs associated with this root window controller. |
| 150 TouchHudDebug* touch_hud_debug() const { return touch_hud_debug_; } | 148 TouchHudDebug* touch_hud_debug() const { return touch_hud_debug_; } |
| 151 TouchHudProjection* touch_hud_projection() const { | 149 TouchHudProjection* touch_hud_projection() const { |
| 152 return touch_hud_projection_; | 150 return touch_hud_projection_; |
| 153 } | 151 } |
| 154 | 152 |
| 155 // Set touch HUDs for this root window controller. The root window controller | 153 // Set touch HUDs for this root window controller. The root window controller |
| 156 // will not own the HUDs; their lifetimes are managed by themselves. Whenever | 154 // will not own the HUDs; their lifetimes are managed by themselves. Whenever |
| 157 // the widget showing a HUD is being destroyed (e.g. because of detaching a | 155 // the widget showing a HUD is being destroyed (e.g. because of detaching a |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; | 343 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; |
| 346 std::unique_ptr<views::MenuRunner> menu_runner_; | 344 std::unique_ptr<views::MenuRunner> menu_runner_; |
| 347 | 345 |
| 348 std::unique_ptr<StackingController> stacking_controller_; | 346 std::unique_ptr<StackingController> stacking_controller_; |
| 349 | 347 |
| 350 // The shelf controller for this root window. Exists for the entire lifetime | 348 // The shelf controller for this root window. Exists for the entire lifetime |
| 351 // of the RootWindowController so that it is safe for observers to be added | 349 // of the RootWindowController so that it is safe for observers to be added |
| 352 // to it during construction of the shelf widget and status tray. | 350 // to it during construction of the shelf widget and status tray. |
| 353 std::unique_ptr<WmShelf> wm_shelf_; | 351 std::unique_ptr<WmShelf> wm_shelf_; |
| 354 | 352 |
| 353 // TODO(jamescook): Eliminate this. It is left over from legacy shelf code and |
| 354 // doesn't mean anything in particular. |
| 355 bool shelf_initialized_ = false; |
| 356 |
| 355 std::unique_ptr<SystemWallpaperController> system_wallpaper_; | 357 std::unique_ptr<SystemWallpaperController> system_wallpaper_; |
| 356 | 358 |
| 357 std::unique_ptr<BootSplashScreen> boot_splash_screen_; | 359 std::unique_ptr<BootSplashScreen> boot_splash_screen_; |
| 358 // Responsible for initializing TouchExplorationController when spoken | 360 // Responsible for initializing TouchExplorationController when spoken |
| 359 // feedback is on. | 361 // feedback is on. |
| 360 std::unique_ptr<AshTouchExplorationManager> touch_exploration_manager_; | 362 std::unique_ptr<AshTouchExplorationManager> touch_exploration_manager_; |
| 361 | 363 |
| 362 // Heads-up displays for touch events. These HUDs are not owned by the root | 364 // Heads-up displays for touch events. These HUDs are not owned by the root |
| 363 // window controller and manage their own lifetimes. | 365 // window controller and manage their own lifetimes. |
| 364 TouchHudDebug* touch_hud_debug_ = nullptr; | 366 TouchHudDebug* touch_hud_debug_ = nullptr; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 376 | 378 |
| 377 // On classic ash, returns the RootWindowController for the given |root_window|. | 379 // On classic ash, returns the RootWindowController for the given |root_window|. |
| 378 // On mus ash, returns the RootWindowController for the primary display. | 380 // On mus ash, returns the RootWindowController for the primary display. |
| 379 // See RootWindowController class comment above. | 381 // See RootWindowController class comment above. |
| 380 ASH_EXPORT RootWindowController* GetRootWindowController( | 382 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 381 const aura::Window* root_window); | 383 const aura::Window* root_window); |
| 382 | 384 |
| 383 } // namespace ash | 385 } // namespace ash |
| 384 | 386 |
| 385 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 387 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |