| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 enum class LoginStatus; | 45 enum class LoginStatus; |
| 46 class PanelLayoutManager; | 46 class PanelLayoutManager; |
| 47 class ShelfLayoutManager; | 47 class ShelfLayoutManager; |
| 48 class StackingController; | 48 class StackingController; |
| 49 class StatusAreaWidget; | 49 class StatusAreaWidget; |
| 50 class SystemTray; | 50 class SystemTray; |
| 51 class SystemWallpaperController; | 51 class SystemWallpaperController; |
| 52 class TouchHudDebug; | 52 class TouchHudDebug; |
| 53 class TouchHudProjection; | 53 class TouchHudProjection; |
| 54 class WmRootWindowControllerAura; | 54 class WmRootWindowControllerAura; |
| 55 class WmShelfAura; | 55 class WmShelf; |
| 56 class WorkspaceController; | 56 class WorkspaceController; |
| 57 | 57 |
| 58 #if defined(OS_CHROMEOS) | 58 #if defined(OS_CHROMEOS) |
| 59 class BootSplashScreen; | 59 class BootSplashScreen; |
| 60 class AshTouchExplorationManager; | 60 class AshTouchExplorationManager; |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 // This class maintains the per root window state for ash. This class | 63 // This class maintains the per root window state for ash. This class |
| 64 // owns the root window and other dependent objects that should be | 64 // owns the root window and other dependent objects that should be |
| 65 // deleted upon the deletion of the root window. This object is | 65 // deleted upon the deletion of the root window. This object is |
| (...skipping 24 matching lines...) Expand all Loading... |
| 90 AshWindowTreeHost* ash_host() { return ash_host_.get(); } | 90 AshWindowTreeHost* ash_host() { return ash_host_.get(); } |
| 91 const AshWindowTreeHost* ash_host() const { return ash_host_.get(); } | 91 const AshWindowTreeHost* ash_host() const { return ash_host_.get(); } |
| 92 | 92 |
| 93 aura::WindowTreeHost* GetHost(); | 93 aura::WindowTreeHost* GetHost(); |
| 94 const aura::WindowTreeHost* GetHost() const; | 94 const aura::WindowTreeHost* GetHost() const; |
| 95 aura::Window* GetRootWindow(); | 95 aura::Window* GetRootWindow(); |
| 96 const aura::Window* GetRootWindow() const; | 96 const aura::Window* GetRootWindow() const; |
| 97 | 97 |
| 98 WorkspaceController* workspace_controller(); | 98 WorkspaceController* workspace_controller(); |
| 99 | 99 |
| 100 WmShelfAura* wm_shelf_aura() const { return wm_shelf_aura_.get(); } | 100 WmShelf* wm_shelf() const { return wm_shelf_.get(); } |
| 101 | 101 |
| 102 WmRootWindowControllerAura* wm_root_window_controller() { | 102 WmRootWindowControllerAura* wm_root_window_controller() { |
| 103 return wm_root_window_controller_; | 103 return wm_root_window_controller_; |
| 104 } | 104 } |
| 105 | 105 |
| 106 // Get touch HUDs associated with this root window controller. | 106 // Get touch HUDs associated with this root window controller. |
| 107 TouchHudDebug* touch_hud_debug() const { return touch_hud_debug_; } | 107 TouchHudDebug* touch_hud_debug() const { return touch_hud_debug_; } |
| 108 TouchHudProjection* touch_hud_projection() const { | 108 TouchHudProjection* touch_hud_projection() const { |
| 109 return touch_hud_projection_; | 109 return touch_hud_projection_; |
| 110 } | 110 } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 std::unique_ptr<AshWindowTreeHost> ash_host_; | 212 std::unique_ptr<AshWindowTreeHost> ash_host_; |
| 213 | 213 |
| 214 // Owned by the root window. | 214 // Owned by the root window. |
| 215 WmRootWindowControllerAura* wm_root_window_controller_ = nullptr; | 215 WmRootWindowControllerAura* wm_root_window_controller_ = nullptr; |
| 216 | 216 |
| 217 std::unique_ptr<StackingController> stacking_controller_; | 217 std::unique_ptr<StackingController> stacking_controller_; |
| 218 | 218 |
| 219 // The shelf controller for this root window. Exists for the entire lifetime | 219 // The shelf controller for this root window. Exists for the entire lifetime |
| 220 // of the RootWindowController so that it is safe for observers to be added | 220 // of the RootWindowController so that it is safe for observers to be added |
| 221 // to it during construction of the shelf widget and status tray. | 221 // to it during construction of the shelf widget and status tray. |
| 222 std::unique_ptr<WmShelfAura> wm_shelf_aura_; | 222 std::unique_ptr<WmShelf> wm_shelf_; |
| 223 | 223 |
| 224 std::unique_ptr<SystemWallpaperController> system_wallpaper_; | 224 std::unique_ptr<SystemWallpaperController> system_wallpaper_; |
| 225 | 225 |
| 226 #if defined(OS_CHROMEOS) | 226 #if defined(OS_CHROMEOS) |
| 227 std::unique_ptr<BootSplashScreen> boot_splash_screen_; | 227 std::unique_ptr<BootSplashScreen> boot_splash_screen_; |
| 228 // Responsible for initializing TouchExplorationController when spoken | 228 // Responsible for initializing TouchExplorationController when spoken |
| 229 // feedback is on. | 229 // feedback is on. |
| 230 std::unique_ptr<AshTouchExplorationManager> touch_exploration_manager_; | 230 std::unique_ptr<AshTouchExplorationManager> touch_exploration_manager_; |
| 231 #endif | 231 #endif |
| 232 | 232 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 245 | 245 |
| 246 // On classic ash, returns the RootWindowController for the given |root_window|. | 246 // On classic ash, returns the RootWindowController for the given |root_window|. |
| 247 // On mus ash, returns the RootWindowController for the primary display. | 247 // On mus ash, returns the RootWindowController for the primary display. |
| 248 // See RootWindowController class comment above. | 248 // See RootWindowController class comment above. |
| 249 ASH_EXPORT RootWindowController* GetRootWindowController( | 249 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 250 const aura::Window* root_window); | 250 const aura::Window* root_window); |
| 251 | 251 |
| 252 } // namespace ash | 252 } // namespace ash |
| 253 | 253 |
| 254 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 254 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |