| 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 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 class StatusAreaWidget; | 61 class StatusAreaWidget; |
| 62 class SystemBackgroundController; | 62 class SystemBackgroundController; |
| 63 class SystemModalContainerLayoutManager; | 63 class SystemModalContainerLayoutManager; |
| 64 class SystemTray; | 64 class SystemTray; |
| 65 class TouchHudDebug; | 65 class TouchHudDebug; |
| 66 class TouchHudProjection; | 66 class TouchHudProjection; |
| 67 class WorkspaceController; | 67 class WorkspaceController; |
| 68 | 68 |
| 69 #if defined(OS_CHROMEOS) | 69 #if defined(OS_CHROMEOS) |
| 70 class BootSplashScreen; | 70 class BootSplashScreen; |
| 71 class CrosAccessibilityObserver; |
| 71 #endif | 72 #endif |
| 72 | 73 |
| 73 // This class maintains the per root window state for ash. This class | 74 // This class maintains the per root window state for ash. This class |
| 74 // owns the root window and other dependent objects that should be | 75 // owns the root window and other dependent objects that should be |
| 75 // deleted upon the deletion of the root window. This object is | 76 // deleted upon the deletion of the root window. This object is |
| 76 // indirectly owned and deleted by |DisplayController|. | 77 // indirectly owned and deleted by |DisplayController|. |
| 77 // The RootWindowController for particular root window is stored in | 78 // The RootWindowController for particular root window is stored in |
| 78 // its property (RootWindowSettings) and can be obtained using | 79 // its property (RootWindowSettings) and can be obtained using |
| 79 // |GetRootWindowController(aura::WindowEventDispatcher*)| function. | 80 // |GetRootWindowController(aura::WindowEventDispatcher*)| function. |
| 80 class ASH_EXPORT RootWindowController : public ShellObserver { | 81 class ASH_EXPORT RootWindowController : public ShellObserver { |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // this must be deleted before the container is deleted. | 287 // this must be deleted before the container is deleted. |
| 287 scoped_ptr<aura::Window> mouse_event_target_; | 288 scoped_ptr<aura::Window> mouse_event_target_; |
| 288 | 289 |
| 289 // Manages layout of docked windows. Owned by DockedContainer. | 290 // Manages layout of docked windows. Owned by DockedContainer. |
| 290 DockedWindowLayoutManager* docked_layout_manager_; | 291 DockedWindowLayoutManager* docked_layout_manager_; |
| 291 | 292 |
| 292 // Manages layout of panels. Owned by PanelContainer. | 293 // Manages layout of panels. Owned by PanelContainer. |
| 293 PanelLayoutManager* panel_layout_manager_; | 294 PanelLayoutManager* panel_layout_manager_; |
| 294 | 295 |
| 295 scoped_ptr<SystemBackgroundController> system_background_; | 296 scoped_ptr<SystemBackgroundController> system_background_; |
| 297 |
| 296 #if defined(OS_CHROMEOS) | 298 #if defined(OS_CHROMEOS) |
| 297 scoped_ptr<BootSplashScreen> boot_splash_screen_; | 299 scoped_ptr<BootSplashScreen> boot_splash_screen_; |
| 300 // Responsible for initializing TouchExplorationController when spoken |
| 301 // feedback is on. |
| 302 scoped_ptr<CrosAccessibilityObserver> cros_accessibility_observer_; |
| 298 #endif | 303 #endif |
| 299 | 304 |
| 300 scoped_ptr<ScreenDimmer> screen_dimmer_; | 305 scoped_ptr<ScreenDimmer> screen_dimmer_; |
| 301 scoped_ptr<WorkspaceController> workspace_controller_; | 306 scoped_ptr<WorkspaceController> workspace_controller_; |
| 302 scoped_ptr<AlwaysOnTopController> always_on_top_controller_; | 307 scoped_ptr<AlwaysOnTopController> always_on_top_controller_; |
| 303 | 308 |
| 304 // Heads-up displays for touch events. These HUDs are not owned by the root | 309 // Heads-up displays for touch events. These HUDs are not owned by the root |
| 305 // window controller and manage their own lifetimes. | 310 // window controller and manage their own lifetimes. |
| 306 TouchHudDebug* touch_hud_debug_; | 311 TouchHudDebug* touch_hud_debug_; |
| 307 TouchHudProjection* touch_hud_projection_; | 312 TouchHudProjection* touch_hud_projection_; |
| 308 | 313 |
| 309 // Handles double clicks on the panel window header. | 314 // Handles double clicks on the panel window header. |
| 310 scoped_ptr<ui::EventHandler> panel_container_handler_; | 315 scoped_ptr<ui::EventHandler> panel_container_handler_; |
| 311 | 316 |
| 312 scoped_ptr<DesktopBackgroundWidgetController> wallpaper_controller_; | 317 scoped_ptr<DesktopBackgroundWidgetController> wallpaper_controller_; |
| 313 scoped_ptr<AnimatingDesktopController> animating_wallpaper_controller_; | 318 scoped_ptr<AnimatingDesktopController> animating_wallpaper_controller_; |
| 314 scoped_ptr< ::wm::ScopedCaptureClient> capture_client_; | 319 scoped_ptr< ::wm::ScopedCaptureClient> capture_client_; |
| 315 | 320 |
| 316 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 321 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
| 317 }; | 322 }; |
| 318 | 323 |
| 319 | 324 |
| 320 // Gets the RootWindowController for |root_window|. | 325 // Gets the RootWindowController for |root_window|. |
| 321 ASH_EXPORT RootWindowController* GetRootWindowController( | 326 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 322 const aura::Window* root_window); | 327 const aura::Window* root_window); |
| 323 | 328 |
| 324 } // ash | 329 } // ash |
| 325 | 330 |
| 326 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 331 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |