[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ |
| 6 | #define ASH_ROOT_WINDOW_CONTROLLER_H_ |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 7 | |
[email protected] | 2b8a9bb | 2013-07-01 22:43:40 | [diff] [blame] | 8 | #include <map> |
| 9 | |
[email protected] | c0ce80e | 2012-10-05 23:28:27 | [diff] [blame] | 10 | #include "ash/ash_export.h" |
[email protected] | 478c6c3 | 2013-03-09 02:50:58 | [diff] [blame] | 11 | #include "ash/shelf/shelf_types.h" |
[email protected] | d141b92 | 2013-07-09 08:13:17 | [diff] [blame] | 12 | #include "ash/shell_observer.h" |
[email protected] | 16059276d | 2012-10-22 18:59:50 | [diff] [blame] | 13 | #include "ash/system/user/login_status.h" |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 14 | #include "base/basictypes.h" |
| 15 | #include "base/memory/scoped_ptr.h" |
[email protected] | 41baaed | 2013-11-09 04:18:26 | [diff] [blame] | 16 | #include "ui/aura/root_window.h" |
[email protected] | f7c05b2 | 2013-11-12 21:07:24 | [diff] [blame] | 17 | #include "ui/aura/window.h" |
[email protected] | 940fb1c | 2013-06-18 16:54:28 | [diff] [blame] | 18 | #include "ui/base/ui_base_types.h" |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 19 | |
| 20 | class SkBitmap; |
| 21 | |
| 22 | namespace aura { |
| 23 | class EventFilter; |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 24 | class Window; |
[email protected] | 4a59e4e | 2012-11-12 21:15:40 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | namespace gfx { |
| 28 | class Point; |
| 29 | } |
| 30 | |
| 31 | namespace views { |
[email protected] | 0bf6173 | 2013-07-02 04:35:10 | [diff] [blame] | 32 | class Widget; |
| 33 | |
[email protected] | 4a59e4e | 2012-11-12 21:15:40 | [diff] [blame] | 34 | namespace corewm { |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 35 | class InputMethodEventFilter; |
| 36 | class RootWindowEventFilter; |
[email protected] | 23a2dc8 | 2013-08-22 15:04:22 | [diff] [blame] | 37 | class ScopedCaptureClient; |
[email protected] | 4a59e4e | 2012-11-12 21:15:40 | [diff] [blame] | 38 | } |
| 39 | } |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 40 | |
[email protected] | 86459e2c | 2013-04-10 13:39:24 | [diff] [blame] | 41 | namespace keyboard { |
| 42 | class KeyboardController; |
| 43 | } |
| 44 | |
[email protected] | 3537d47 | 2014-01-15 05:45:31 | [diff] [blame] | 45 | namespace ui { |
| 46 | class EventHandler; |
| 47 | } |
| 48 | |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 49 | namespace ash { |
[email protected] | 478c6c3 | 2013-03-09 02:50:58 | [diff] [blame] | 50 | class ShelfWidget; |
[email protected] | 97decb5 | 2013-11-14 02:27:50 | [diff] [blame] | 51 | class StackingController; |
[email protected] | a0afeb1 | 2012-12-10 22:57:09 | [diff] [blame] | 52 | class SystemTray; |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 53 | |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 54 | namespace internal { |
| 55 | |
[email protected] | 80549c15 | 2013-07-02 01:42:47 | [diff] [blame] | 56 | class AlwaysOnTopController; |
[email protected] | 0bf6173 | 2013-07-02 04:35:10 | [diff] [blame] | 57 | class AnimatingDesktopController; |
[email protected] | 0bf6173 | 2013-07-02 04:35:10 | [diff] [blame] | 58 | class DesktopBackgroundWidgetController; |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame] | 59 | class DockedWindowLayoutManager; |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 60 | class PanelLayoutManager; |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 61 | class RootWindowLayoutManager; |
| 62 | class ScreenDimmer; |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 63 | class ShelfLayoutManager; |
| 64 | class StatusAreaWidget; |
| 65 | class SystemBackgroundController; |
[email protected] | c0ce80e | 2012-10-05 23:28:27 | [diff] [blame] | 66 | class SystemModalContainerLayoutManager; |
[email protected] | 2b8a9bb | 2013-07-01 22:43:40 | [diff] [blame] | 67 | class TouchHudDebug; |
| 68 | class TouchHudProjection; |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 69 | class WorkspaceController; |
| 70 | |
[email protected] | 438cbdf0 | 2013-10-07 23:41:09 | [diff] [blame] | 71 | #if defined(OS_CHROMEOS) |
[email protected] | 252eb23 | 2013-08-14 22:09:27 | [diff] [blame] | 72 | class BootSplashScreen; |
| 73 | #endif |
| 74 | |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 75 | // This class maintains the per root window state for ash. This class |
| 76 | // owns the root window and other dependent objects that should be |
[email protected] | a273d33a | 2013-10-17 12:41:21 | [diff] [blame] | 77 | // deleted upon the deletion of the root window. This object is |
| 78 | // indirectly owned and deleted by |DisplayController|. |
| 79 | // The RootWindowController for particular root window is stored in |
| 80 | // its property (RootWindowSettings) and can be obtained using |
[email protected] | 056ce05 | 2014-02-21 05:19:32 | [diff] [blame^] | 81 | // |GetRootWindowController(aura::WindowEventDispatcher*)| function. |
[email protected] | d141b92 | 2013-07-09 08:13:17 | [diff] [blame] | 82 | class ASH_EXPORT RootWindowController : public ShellObserver { |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 83 | public: |
[email protected] | a273d33a | 2013-10-17 12:41:21 | [diff] [blame] | 84 | |
| 85 | // Creates and Initialize the RootWindowController for primary display. |
[email protected] | 056ce05 | 2014-02-21 05:19:32 | [diff] [blame^] | 86 | static void CreateForPrimaryDisplay(aura::WindowEventDispatcher* dispatcher); |
[email protected] | a273d33a | 2013-10-17 12:41:21 | [diff] [blame] | 87 | |
| 88 | // Creates and Initialize the RootWindowController for secondary displays. |
[email protected] | 056ce05 | 2014-02-21 05:19:32 | [diff] [blame^] | 89 | static void CreateForSecondaryDisplay( |
| 90 | aura::WindowEventDispatcher* dispatcher); |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 91 | |
[email protected] | 608de6c | 2013-10-29 00:14:28 | [diff] [blame] | 92 | // Creates and Initialize the RootWindowController for virtual |
| 93 | // keyboard displays. |
[email protected] | 056ce05 | 2014-02-21 05:19:32 | [diff] [blame^] | 94 | static void CreateForVirtualKeyboardDisplay( |
| 95 | aura::WindowEventDispatcher* dispatcher); |
[email protected] | 608de6c | 2013-10-29 00:14:28 | [diff] [blame] | 96 | |
[email protected] | 864b5855 | 2013-12-19 04:19:38 | [diff] [blame] | 97 | // Returns a RootWindowController that has a shelf for given |
[email protected] | 88d7112 | 2012-10-18 07:11:01 | [diff] [blame] | 98 | // |window|. This returns the RootWindowController for the |window|'s |
[email protected] | 864b5855 | 2013-12-19 04:19:38 | [diff] [blame] | 99 | // root window when multiple shelf mode is enabled, or the primary |
[email protected] | 88d7112 | 2012-10-18 07:11:01 | [diff] [blame] | 100 | // RootWindowController otherwise. |
[email protected] | 864b5855 | 2013-12-19 04:19:38 | [diff] [blame] | 101 | static RootWindowController* ForShelf(aura::Window* window); |
[email protected] | 88d7112 | 2012-10-18 07:11:01 | [diff] [blame] | 102 | |
[email protected] | a0afeb1 | 2012-12-10 22:57:09 | [diff] [blame] | 103 | // Returns a RootWindowController of the window's root window. |
[email protected] | ccff3d7 | 2013-02-06 04:26:28 | [diff] [blame] | 104 | static RootWindowController* ForWindow(const aura::Window* window); |
[email protected] | a0afeb1 | 2012-12-10 22:57:09 | [diff] [blame] | 105 | |
[email protected] | d17642d | 2013-09-12 23:44:38 | [diff] [blame] | 106 | // Returns the RootWindowController of the target root window. |
| 107 | static internal::RootWindowController* ForTargetRootWindow(); |
[email protected] | a0afeb1 | 2012-12-10 22:57:09 | [diff] [blame] | 108 | |
[email protected] | a5c7880 | 2013-12-12 22:07:01 | [diff] [blame] | 109 | // Returns container which contains a given |window|. |
| 110 | static aura::Window* GetContainerForWindow(aura::Window* window); |
| 111 | |
[email protected] | a273d33a | 2013-10-17 12:41:21 | [diff] [blame] | 112 | virtual ~RootWindowController(); |
| 113 | |
[email protected] | 41baaed | 2013-11-09 04:18:26 | [diff] [blame] | 114 | aura::Window* root_window() { return dispatcher()->window(); } |
[email protected] | 056ce05 | 2014-02-21 05:19:32 | [diff] [blame^] | 115 | aura::WindowEventDispatcher* dispatcher() { return dispatcher_.get(); } |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 116 | |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 117 | RootWindowLayoutManager* root_window_layout() { return root_window_layout_; } |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 118 | |
[email protected] | c0ce80e | 2012-10-05 23:28:27 | [diff] [blame] | 119 | WorkspaceController* workspace_controller() { |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 120 | return workspace_controller_.get(); |
| 121 | } |
| 122 | |
[email protected] | 80549c15 | 2013-07-02 01:42:47 | [diff] [blame] | 123 | AlwaysOnTopController* always_on_top_controller() { |
| 124 | return always_on_top_controller_.get(); |
| 125 | } |
| 126 | |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 127 | ScreenDimmer* screen_dimmer() { return screen_dimmer_.get(); } |
| 128 | |
[email protected] | 478c6c3 | 2013-03-09 02:50:58 | [diff] [blame] | 129 | // Access the shelf associated with this root window controller, |
| 130 | // NULL if no such shelf exists. |
| 131 | ShelfWidget* shelf() { return shelf_.get(); } |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 132 | |
[email protected] | 2b8a9bb | 2013-07-01 22:43:40 | [diff] [blame] | 133 | // Get touch HUDs associated with this root window controller. |
| 134 | TouchHudDebug* touch_hud_debug() const { |
| 135 | return touch_hud_debug_; |
[email protected] | bff1755 | 2013-04-25 04:44:55 | [diff] [blame] | 136 | } |
[email protected] | 2b8a9bb | 2013-07-01 22:43:40 | [diff] [blame] | 137 | TouchHudProjection* touch_hud_projection() const { |
| 138 | return touch_hud_projection_; |
| 139 | } |
| 140 | |
| 141 | // Set touch HUDs for this root window controller. The root window controller |
| 142 | // will not own the HUDs; their lifetimes are managed by themselves. Whenever |
| 143 | // the widget showing a HUD is being destroyed (e.g. because of detaching a |
| 144 | // display), the HUD deletes itself. |
| 145 | void set_touch_hud_debug(TouchHudDebug* hud) { |
| 146 | touch_hud_debug_ = hud; |
| 147 | } |
| 148 | void set_touch_hud_projection(TouchHudProjection* hud) { |
| 149 | touch_hud_projection_ = hud; |
| 150 | } |
| 151 | |
[email protected] | 0bf6173 | 2013-07-02 04:35:10 | [diff] [blame] | 152 | DesktopBackgroundWidgetController* wallpaper_controller() { |
| 153 | return wallpaper_controller_.get(); |
| 154 | } |
| 155 | void SetWallpaperController(DesktopBackgroundWidgetController* controller); |
| 156 | AnimatingDesktopController* animating_wallpaper_controller() { |
| 157 | return animating_wallpaper_controller_.get(); |
| 158 | } |
| 159 | void SetAnimatingWallpaperController(AnimatingDesktopController* controller); |
| 160 | |
[email protected] | 478c6c3 | 2013-03-09 02:50:58 | [diff] [blame] | 161 | // Access the shelf layout manager associated with this root |
| 162 | // window controller, NULL if no such shelf exists. |
| 163 | ShelfLayoutManager* GetShelfLayoutManager(); |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 164 | |
[email protected] | a0afeb1 | 2012-12-10 22:57:09 | [diff] [blame] | 165 | // Returns the system tray on this root window. Note that |
[email protected] | 864b5855 | 2013-12-19 04:19:38 | [diff] [blame] | 166 | // calling this on the root window that doesn't have a shelf will |
[email protected] | a0afeb1 | 2012-12-10 22:57:09 | [diff] [blame] | 167 | // lead to a crash. |
| 168 | SystemTray* GetSystemTray(); |
| 169 | |
[email protected] | 431552c | 2012-10-23 00:38:33 | [diff] [blame] | 170 | // Shows context menu at the |location_in_screen|. This uses |
| 171 | // |ShellDelegate::CreateContextMenu| to define the content of the menu. |
[email protected] | 940fb1c | 2013-06-18 16:54:28 | [diff] [blame] | 172 | void ShowContextMenu(const gfx::Point& location_in_screen, |
| 173 | ui::MenuSourceType source_type); |
[email protected] | 431552c | 2012-10-23 00:38:33 | [diff] [blame] | 174 | |
[email protected] | 8674b31 | 2012-10-12 19:02:44 | [diff] [blame] | 175 | // Returns the layout-manager for the appropriate modal-container. If the |
| 176 | // window is inside the lockscreen modal container, then the layout manager |
| 177 | // for that is returned. Otherwise the layout manager for the default modal |
| 178 | // container is returned. |
| 179 | // If no window is specified (i.e. |window| is NULL), then the lockscreen |
| 180 | // modal container is used if the screen is currently locked. Otherwise, the |
| 181 | // default modal container is used. |
| 182 | SystemModalContainerLayoutManager* GetSystemModalLayoutManager( |
| 183 | aura::Window* window); |
[email protected] | c0ce80e | 2012-10-05 23:28:27 | [diff] [blame] | 184 | |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 185 | aura::Window* GetContainer(int container_id); |
[email protected] | d8a2495 | 2013-08-05 20:05:05 | [diff] [blame] | 186 | const aura::Window* GetContainer(int container_id) const; |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 187 | |
[email protected] | 864b5855 | 2013-12-19 04:19:38 | [diff] [blame] | 188 | // Show shelf view if it was created hidden (before session has started). |
| 189 | void ShowShelf(); |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 190 | |
[email protected] | 864b5855 | 2013-12-19 04:19:38 | [diff] [blame] | 191 | // Called when the shelf associated with this root window is created. |
| 192 | void OnShelfCreated(); |
[email protected] | 478c6c3 | 2013-03-09 02:50:58 | [diff] [blame] | 193 | |
[email protected] | 16059276d | 2012-10-22 18:59:50 | [diff] [blame] | 194 | // Called when the login status changes after login (such as lock/unlock). |
| 195 | // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. |
| 196 | void UpdateAfterLoginStatusChange(user::LoginStatus status); |
| 197 | |
[email protected] | bca9a7e | 2012-11-10 06:25:49 | [diff] [blame] | 198 | // Called when the brightness/grayscale animation from white to the login |
| 199 | // desktop background image has started. Starts |boot_splash_screen_|'s |
| 200 | // hiding animation (if the screen is non-NULL). |
| 201 | void HandleInitialDesktopBackgroundAnimationStarted(); |
| 202 | |
[email protected] | 0bf6173 | 2013-07-02 04:35:10 | [diff] [blame] | 203 | // Called when the wallpaper ainmation is finished. Updates |background_| |
| 204 | // to be black and drops |boot_splash_screen_| and moves the wallpaper |
| 205 | // controller into the root window controller. |widget| holds the wallpaper |
| 206 | // image, or NULL if the background is a solid color. |
| 207 | void OnWallpaperAnimationFinished(views::Widget* widget); |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 208 | |
[email protected] | 6675e1c | 2012-09-11 09:15:45 | [diff] [blame] | 209 | // Deletes associated objects and clears the state, but doesn't delete |
| 210 | // the root window yet. This is used to delete a secondary displays' |
| 211 | // root window safely when the display disconnect signal is received, |
| 212 | // which may come while we're in the nested message loop. |
| 213 | void Shutdown(); |
| 214 | |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 215 | // Deletes all child windows and performs necessary cleanup. |
| 216 | void CloseChildWindows(); |
| 217 | |
[email protected] | f185312 | 2012-06-27 16:21:26 | [diff] [blame] | 218 | // Moves child windows to |dest|. |
[email protected] | bf9cdb36 | 2013-10-25 19:22:45 | [diff] [blame] | 219 | void MoveWindowsTo(aura::Window* dest); |
[email protected] | f185312 | 2012-06-27 16:21:26 | [diff] [blame] | 220 | |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 221 | // Force the shelf to query for it's current visibility state. |
| 222 | void UpdateShelfVisibility(); |
| 223 | |
[email protected] | 2b8a9bb | 2013-07-01 22:43:40 | [diff] [blame] | 224 | // Initialize touch HUDs if necessary. |
| 225 | void InitTouchHuds(); |
| 226 | |
[email protected] | 2c9171d2 | 2013-12-10 21:55:10 | [diff] [blame] | 227 | // Returns the topmost window or one of its transient parents, if any of them |
| 228 | // are in fullscreen mode. |
| 229 | const aura::Window* GetWindowForFullscreenMode() const; |
[email protected] | 2ee2f5d | 2013-01-10 23:37:16 | [diff] [blame] | 230 | |
[email protected] | b6ba05d90 | 2013-10-04 21:38:45 | [diff] [blame] | 231 | // Activate virtual keyboard on current root window controller. |
| 232 | void ActivateKeyboard(keyboard::KeyboardController* keyboard_controller); |
| 233 | |
| 234 | // Deactivate virtual keyboard on current root window controller. |
| 235 | void DeactivateKeyboard(keyboard::KeyboardController* keyboard_controller); |
| 236 | |
[email protected] | 431552c | 2012-10-23 00:38:33 | [diff] [blame] | 237 | private: |
[email protected] | 056ce05 | 2014-02-21 05:19:32 | [diff] [blame^] | 238 | explicit RootWindowController(aura::WindowEventDispatcher* dispatcher); |
[email protected] | 608de6c | 2013-10-29 00:14:28 | [diff] [blame] | 239 | enum RootWindowType { |
| 240 | PRIMARY, |
| 241 | SECONDARY, |
| 242 | VIRTUAL_KEYBOARD |
| 243 | }; |
[email protected] | a273d33a | 2013-10-17 12:41:21 | [diff] [blame] | 244 | |
| 245 | // Initializes the RootWindowController. |is_primary| is true if |
| 246 | // the controller is for primary display. |first_run_after_boot| is |
| 247 | // set to true only for primary root window after boot. |
[email protected] | 608de6c | 2013-10-29 00:14:28 | [diff] [blame] | 248 | void Init(RootWindowType root_window_type, bool first_run_after_boot); |
[email protected] | a273d33a | 2013-10-17 12:41:21 | [diff] [blame] | 249 | |
[email protected] | 756bda1 | 2013-07-03 08:17:06 | [diff] [blame] | 250 | void InitLayoutManagers(); |
| 251 | |
| 252 | // Initializes |system_background_| and possibly also |boot_splash_screen_|. |
| 253 | // |is_first_run_after_boot| determines the background's initial color. |
| 254 | void CreateSystemBackground(bool is_first_run_after_boot); |
| 255 | |
[email protected] | a4cd6d3 | 2012-09-12 03:42:13 | [diff] [blame] | 256 | // Creates each of the special window containers that holds windows of various |
| 257 | // types in the shell UI. |
[email protected] | 41baaed | 2013-11-09 04:18:26 | [diff] [blame] | 258 | void CreateContainersInRootWindow(aura::Window* root_window); |
[email protected] | a4cd6d3 | 2012-09-12 03:42:13 | [diff] [blame] | 259 | |
[email protected] | d141b92 | 2013-07-09 08:13:17 | [diff] [blame] | 260 | // Enables projection touch HUD. |
| 261 | void EnableTouchHudProjection(); |
| 262 | |
| 263 | // Disables projection touch HUD. |
| 264 | void DisableTouchHudProjection(); |
| 265 | |
| 266 | // Overridden from ShellObserver. |
| 267 | virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE; |
| 268 | virtual void OnTouchHudProjectionToggled(bool enabled) OVERRIDE; |
| 269 | |
[email protected] | 056ce05 | 2014-02-21 05:19:32 | [diff] [blame^] | 270 | scoped_ptr<aura::WindowEventDispatcher> dispatcher_; |
[email protected] | c0ce80e | 2012-10-05 23:28:27 | [diff] [blame] | 271 | RootWindowLayoutManager* root_window_layout_; |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 272 | |
[email protected] | 2a2caa0 | 2013-01-22 20:50:36 | [diff] [blame] | 273 | scoped_ptr<StackingController> stacking_controller_; |
| 274 | |
[email protected] | 864b5855 | 2013-12-19 04:19:38 | [diff] [blame] | 275 | // The shelf for managing the shelf and the status widget. |
[email protected] | 478c6c3 | 2013-03-09 02:50:58 | [diff] [blame] | 276 | scoped_ptr<ShelfWidget> shelf_; |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 277 | |
[email protected] | cf6fea2 | 2013-08-07 14:24:01 | [diff] [blame] | 278 | // An invisible/empty window used as a event target for |
| 279 | // |MouseCursorEventFilter| before a user logs in. |
| 280 | // (crbug.com/266987) |
| 281 | // Its container is |LockScreenBackgroundContainer| and |
| 282 | // this must be deleted before the container is deleted. |
| 283 | scoped_ptr<aura::Window> mouse_event_target_; |
| 284 | |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame] | 285 | // Manages layout of docked windows. Owned by DockedContainer. |
| 286 | DockedWindowLayoutManager* docked_layout_manager_; |
| 287 | |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 288 | // Manages layout of panels. Owned by PanelContainer. |
[email protected] | 88d7112 | 2012-10-18 07:11:01 | [diff] [blame] | 289 | PanelLayoutManager* panel_layout_manager_; |
[email protected] | e74aaf0a | 2012-10-12 18:42:28 | [diff] [blame] | 290 | |
[email protected] | e6e41d2f | 2012-10-29 19:22:19 | [diff] [blame] | 291 | scoped_ptr<SystemBackgroundController> system_background_; |
[email protected] | 438cbdf0 | 2013-10-07 23:41:09 | [diff] [blame] | 292 | #if defined(OS_CHROMEOS) |
[email protected] | bca9a7e | 2012-11-10 06:25:49 | [diff] [blame] | 293 | scoped_ptr<BootSplashScreen> boot_splash_screen_; |
[email protected] | 252eb23 | 2013-08-14 22:09:27 | [diff] [blame] | 294 | #endif |
[email protected] | 697f04c | 2012-10-03 01:15:10 | [diff] [blame] | 295 | |
[email protected] | c0ce80e | 2012-10-05 23:28:27 | [diff] [blame] | 296 | scoped_ptr<ScreenDimmer> screen_dimmer_; |
| 297 | scoped_ptr<WorkspaceController> workspace_controller_; |
[email protected] | 80549c15 | 2013-07-02 01:42:47 | [diff] [blame] | 298 | scoped_ptr<AlwaysOnTopController> always_on_top_controller_; |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 299 | |
[email protected] | 2b8a9bb | 2013-07-01 22:43:40 | [diff] [blame] | 300 | // Heads-up displays for touch events. These HUDs are not owned by the root |
| 301 | // window controller and manage their own lifetimes. |
| 302 | TouchHudDebug* touch_hud_debug_; |
| 303 | TouchHudProjection* touch_hud_projection_; |
[email protected] | 5817504 | 2013-04-01 19:27:13 | [diff] [blame] | 304 | |
[email protected] | 3537d47 | 2014-01-15 05:45:31 | [diff] [blame] | 305 | // Handles double clicks on the panel window header. |
| 306 | scoped_ptr<ui::EventHandler> panel_container_handler_; |
[email protected] | a4cd6d3 | 2012-09-12 03:42:13 | [diff] [blame] | 307 | |
[email protected] | 0bf6173 | 2013-07-02 04:35:10 | [diff] [blame] | 308 | scoped_ptr<DesktopBackgroundWidgetController> wallpaper_controller_; |
| 309 | scoped_ptr<AnimatingDesktopController> animating_wallpaper_controller_; |
[email protected] | 23a2dc8 | 2013-08-22 15:04:22 | [diff] [blame] | 310 | scoped_ptr<views::corewm::ScopedCaptureClient> capture_client_; |
[email protected] | 0bf6173 | 2013-07-02 04:35:10 | [diff] [blame] | 311 | |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 312 | DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
| 313 | }; |
| 314 | |
[email protected] | 6b2d4a0b | 2013-09-06 06:29:54 | [diff] [blame] | 315 | |
| 316 | // Gets the RootWindowController for |root_window|. |
| 317 | ASH_EXPORT RootWindowController* GetRootWindowController( |
[email protected] | bf9cdb36 | 2013-10-25 19:22:45 | [diff] [blame] | 318 | const aura::Window* root_window); |
[email protected] | 6b2d4a0b | 2013-09-06 06:29:54 | [diff] [blame] | 319 | |
[email protected] | d90b839 | 2012-06-13 09:34:56 | [diff] [blame] | 320 | } // namespace internal |
| 321 | } // ash |
| 322 | |
| 323 | #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |