blob: 57b9a143f9703e10706b1ec8078a8cbf6d7d226d [file] [log] [blame]
[email protected]e0d22e82012-01-04 00:46:571// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]87b0d82e2011-10-07 21:02:592// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]b65bdda2011-12-23 23:35:315#ifndef ASH_SHELL_H_
6#define ASH_SHELL_H_
[email protected]87b0d82e2011-10-07 21:02:597
[email protected]cac10fc62011-10-07 23:22:568#include <utility>
9#include <vector>
10
[email protected]b65bdda2011-12-23 23:35:3111#include "ash/ash_export.h"
[email protected]5d2ea362013-12-13 08:10:1812#include "ash/metrics/user_metrics_recorder.h"
[email protected]478c6c32013-03-09 02:50:5813#include "ash/shelf/shelf_types.h"
[email protected]82d3954ae2012-04-20 09:02:2214#include "ash/system/user/login_status.h"
[email protected]c0ce80e2012-10-05 23:28:2715#include "ash/wm/system_modal_container_event_filter_delegate.h"
[email protected]87b0d82e2011-10-07 21:02:5916#include "base/basictypes.h"
[email protected]c45fdc72012-02-22 22:59:1217#include "base/compiler_specific.h"
[email protected]b0639282011-12-22 21:12:2718#include "base/gtest_prod_util.h"
[email protected]2b99f8c2011-10-11 19:42:2419#include "base/memory/scoped_ptr.h"
[email protected]6f67df52013-10-29 01:07:1520#include "base/memory/weak_ptr.h"
[email protected]1a2145b2012-03-13 21:09:1721#include "base/observer_list.h"
[email protected]1ae361652012-12-12 22:39:5122#include "ui/aura/client/activation_change_observer.h"
[email protected]c9390bd2013-11-08 20:33:1323#include "ui/aura/window.h"
[email protected]940fb1c2013-06-18 16:54:2824#include "ui/base/ui_base_types.h"
[email protected]86ccbd42013-09-18 18:11:5425#include "ui/events/event_target.h"
[email protected]2eb6b892012-05-31 13:28:2126#include "ui/gfx/insets.h"
[email protected]ffabb1e2012-10-12 19:51:1727#include "ui/gfx/screen.h"
[email protected]9ec0f452012-05-31 15:58:5328#include "ui/gfx/size.h"
[email protected]ee3ed10772014-03-11 22:02:0129#include "ui/wm/core/cursor_manager.h"
[email protected]87b0d82e2011-10-07 21:02:5930
[email protected]b0639282011-12-22 21:12:2731class CommandLine;
32
[email protected]59ccade2013-10-17 17:56:4033namespace app_list {
34class AppListView;
35}
[email protected]87b0d82e2011-10-07 21:02:5936namespace aura {
[email protected]e29014c2011-11-16 18:25:5137class EventFilter;
[email protected]35304ce2011-12-14 23:21:0138class RootWindow;
[email protected]87b0d82e2011-10-07 21:02:5939class Window;
[email protected]c28853612012-05-31 22:43:4440namespace client {
[email protected]39718b52012-12-03 17:24:5641class ActivationClient;
[email protected]8cfb6722012-11-28 03:28:4642class FocusClient;
[email protected]c28853612012-05-31 22:43:4443}
[email protected]87b0d82e2011-10-07 21:02:5944}
[email protected]70b3e7d52012-06-02 22:12:2545namespace chromeos {
46class OutputConfigurator;
47}
[email protected]fa4a45832012-04-12 21:32:4848
[email protected]2b99f8c2011-10-11 19:42:2449namespace gfx {
[email protected]9ec0f452012-05-31 15:58:5350class ImageSkia;
[email protected]b5f30602012-01-30 15:16:5751class Point;
[email protected]cac10fc62011-10-07 23:22:5652class Rect;
53}
[email protected]b6ba05d902013-10-04 21:38:4554
55namespace keyboard {
56class KeyboardController;
57}
58
[email protected]a8bd1cb2012-02-17 23:05:5459namespace ui {
60class Layer;
61}
[email protected]57b8bb352012-01-11 05:11:4662namespace views {
63class NonClientFrameView;
64class Widget;
[email protected]4a59e4e92012-11-12 21:15:4065namespace corewm {
66class CompoundEventFilter;
67class InputMethodEventFilter;
[email protected]86f2b5e2012-11-14 20:37:0068class ShadowController;
[email protected]1bb2aa702014-03-12 22:54:1769class TooltipController;
[email protected]b5756e22012-11-30 01:32:0270class VisibilityController;
[email protected]0c2dc012012-12-02 00:00:2371class WindowModalityController;
[email protected]4a59e4e92012-11-12 21:15:4072}
[email protected]1bb2aa702014-03-12 22:54:1773}
[email protected]87b0d82e2011-10-07 21:02:5974
[email protected]55f593352011-12-24 05:42:4675namespace ash {
[email protected]87b0d82e2011-10-07 21:02:5976
[email protected]2f744282011-12-23 22:40:5277class AcceleratorController;
[email protected]f3ab6eff52013-10-24 03:29:3878class AccessibilityDelegate;
[email protected]c0ff0342013-02-27 00:41:2979class AshNativeCursorManager;
[email protected]55398d2c2013-10-10 19:49:2080class AutoclickController;
[email protected]e70cf0ed2012-03-15 16:24:4781class DesktopBackgroundController;
[email protected]edbfb8d2012-09-03 08:33:4382class DisplayController;
[email protected]59ccade2013-10-17 17:56:4083class FirstRunHelper;
[email protected]1d2a7212014-01-16 06:09:4884class GPUSupport;
[email protected]f48075d2012-05-24 11:06:5185class HighContrastController;
[email protected]47686c42013-10-25 01:49:1786class LockStateController;
[email protected]77f7c132012-11-15 06:52:5487class MagnificationController;
[email protected]efc897f72013-11-01 11:43:0788class MediaDelegate;
[email protected]66c5c4112013-07-31 07:10:5989class MruWindowTracker;
[email protected]8f80db0f2012-02-07 14:44:5390class NestedDispatcherController;
[email protected]47686c42013-10-25 01:49:1791class NewWindowDelegate;
[email protected]77f7c132012-11-15 06:52:5492class PartialMagnificationController;
[email protected]e0d22e82012-01-04 00:46:5793class PowerButtonController;
[email protected]641dcfd2014-01-08 16:41:2394class WindowTreeHostFactory;
[email protected]1a2145b2012-03-13 21:09:1795class ScreenAsh;
[email protected]fcb123d2013-04-17 15:58:4996class SessionStateDelegate;
[email protected]864b58552013-12-19 04:19:3897class Shelf;
98class ShelfDelegate;
[email protected]c25ff502013-12-04 13:52:4899class ShelfItemDelegateManager;
[email protected]64936bf2013-11-14 19:48:36100class ShelfModel;
[email protected]2b99f8c2011-10-11 19:42:24101class ShellDelegate;
[email protected]1a2145b2012-03-13 21:09:17102class ShellObserver;
[email protected]08bdabed2013-12-20 07:52:28103class StickyKeysController;
[email protected]bfb411312012-02-27 20:59:27104class SystemTray;
[email protected]51ed5992012-11-07 10:14:39105class SystemTrayDelegate;
[email protected]83b2b84c2012-11-14 01:11:00106class SystemTrayNotifier;
[email protected]3537d472014-01-15 05:45:31107class ToplevelWindowEventHandler;
[email protected]c16b9422012-06-06 21:51:11108class UserActivityDetector;
[email protected]10b22612012-03-22 17:07:55109class UserWallpaperDelegate;
[email protected]6aa614a2012-01-19 22:13:38110class VideoDetector;
[email protected]88d71122012-10-18 07:11:01111class WebNotificationTray;
[email protected]40c4cbb2012-01-10 23:26:07112class WindowCycleController;
[email protected]e9a71312013-10-04 03:20:01113class WindowPositioner;
[email protected]d24ce2c2013-08-01 15:14:19114class WindowSelectorController;
[email protected]60fa9bba2011-10-28 21:21:51115
116namespace internal {
[email protected]2f744282011-12-23 22:40:52117class AcceleratorFilter;
[email protected]0039db92012-05-09 04:11:45118class AppListController;
[email protected]b31427252014-03-04 06:59:50119class BluetoothNotificationController;
[email protected]60a978b72012-06-08 00:29:18120class CaptureController;
[email protected]c1234a42013-08-20 09:35:40121class DisplayChangeObserver;
[email protected]18b21b2e2013-03-01 20:56:23122class DisplayErrorObserver;
[email protected]6bdf7952012-11-14 10:10:58123class DisplayManager;
[email protected]084b6bb2011-11-17 05:18:16124class DragDropController;
[email protected]e67291f12012-10-10 05:52:38125class EventClientImpl;
[email protected]b9d224c2012-07-13 01:09:03126class EventRewriterEventFilter;
[email protected]682990f2013-01-10 06:49:11127class EventTransformationHandler;
[email protected]3d29912a2012-02-07 07:41:51128class FocusCycler;
[email protected]7a80cdd2013-09-26 09:20:53129class KeyboardUMAEventFilter;
[email protected]a9a40462013-07-31 06:22:56130class LocaleNotificationController;
[email protected]7b3f91ee2014-03-06 11:41:40131class LogoutConfirmationController;
[email protected]e55b73452014-02-20 13:18:04132class MaximizeModeWindowManager;
[email protected]78d9630c2012-06-22 00:58:07133class MouseCursorEventFilter;
[email protected]196e9452012-08-01 06:42:51134class OutputConfiguratorAnimation;
[email protected]9ae32df2012-07-26 03:25:18135class OverlayEventFilter;
[email protected]51625052013-10-10 01:40:16136class PowerEventObserver;
[email protected]72bce522014-02-10 21:11:26137class ProjectingObserver;
[email protected]e4a181cc2012-03-17 02:20:57138class ResizeShadowController;
[email protected]6ef71d72013-08-10 18:13:44139class ResolutionNotificationController;
[email protected]d90b8392012-06-13 09:34:56140class RootWindowController;
[email protected]b42910f2013-08-01 11:45:29141class ScopedTargetRootWindow;
[email protected]8d625fb2012-07-18 16:40:06142class ScreenPositionController;
[email protected]055a56d2013-12-06 12:13:36143class ShelfWindowWatcher;
[email protected]9861f1752012-06-01 07:16:14144class SlowAnimationEventFilter;
[email protected]6d6546e2012-05-30 23:12:02145class StatusAreaWidget;
[email protected]9ae32df2012-07-26 03:25:18146class SystemGestureEventFilter;
[email protected]c0ce80e2012-10-05 23:28:27147class SystemModalContainerEventFilter;
[email protected]73074742012-05-17 01:44:41148class TouchObserverHUD;
[email protected]ded58fd2013-10-09 07:56:55149class UserActivityNotifier;
150class VideoActivityNotifier;
[email protected]60fa9bba2011-10-28 21:21:51151}
[email protected]2b99f8c2011-10-11 19:42:24152
[email protected]0af58042012-12-13 03:21:35153namespace shell {
154class WindowWatcher;
155}
156
[email protected]0c68e892012-12-08 16:54:53157namespace test {
158class ShellTestApi;
159}
160
[email protected]87b0d82e2011-10-07 21:02:59161// Shell is a singleton object that presents the Shell API and implements the
[email protected]99f07e02011-12-07 00:02:59162// RootWindow's delegate interface.
[email protected]b0079a92012-01-25 20:13:38163//
164// Upon creation, the Shell sets itself as the RootWindow's delegate, which
165// takes ownership of the Shell.
[email protected]1ae361652012-12-12 22:39:51166class ASH_EXPORT Shell
167 : public internal::SystemModalContainerEventFilterDelegate,
168 public ui::EventTarget,
169 public aura::client::ActivationChangeObserver {
[email protected]87b0d82e2011-10-07 21:02:59170 public:
[email protected]be65be362012-06-15 07:38:23171 typedef std::vector<internal::RootWindowController*> RootWindowControllerList;
172
[email protected]3d29912a2012-02-07 07:41:51173 enum Direction {
174 FORWARD,
175 BACKWARD
176 };
177
[email protected]3266c2b92011-11-14 00:06:08178 // A shell must be explicitly created so that it can call |Init()| with the
179 // delegate set. |delegate| can be NULL (if not required for initialization).
[email protected]09464c72013-04-26 07:31:28180 // Takes ownership of |delegate|.
[email protected]3266c2b92011-11-14 00:06:08181 static Shell* CreateInstance(ShellDelegate* delegate);
182
183 // Should never be called before |CreateInstance()|.
[email protected]cac10fc62011-10-07 23:22:56184 static Shell* GetInstance();
[email protected]3266c2b92011-11-14 00:06:08185
[email protected]b3b7bcd2012-03-06 19:35:45186 // Returns true if the ash shell has been instantiated.
187 static bool HasInstance();
188
[email protected]ef589af2011-12-03 01:07:15189 static void DeleteInstance();
[email protected]cac10fc62011-10-07 23:22:56190
[email protected]d90b8392012-06-13 09:34:56191 // Returns the root window controller for the primary root window.
[email protected]a0afeb12012-12-10 22:57:09192 // TODO(oshima): move this to |RootWindowController|
[email protected]d90b8392012-06-13 09:34:56193 static internal::RootWindowController* GetPrimaryRootWindowController();
194
[email protected]cf1c70e2012-08-30 01:13:02195 // Returns all root window controllers.
[email protected]a0afeb12012-12-10 22:57:09196 // TODO(oshima): move this to |RootWindowController|
[email protected]be65be362012-06-15 07:38:23197 static RootWindowControllerList GetAllRootWindowControllers();
198
[email protected]bf9cdb362013-10-25 19:22:45199 // Returns the primary root Window. The primary root Window is the one that
200 // has a launcher.
201 static aura::Window* GetPrimaryRootWindow();
[email protected]e73bd7802012-02-17 20:10:34202
[email protected]bf9cdb362013-10-25 19:22:45203 // Returns a root Window when used as a target when creating a new window.
[email protected]b42910f2013-08-01 11:45:29204 // The root window of the active window is used in most cases, but can
205 // be overridden by using ScopedTargetRootWindow().
[email protected]bf9cdb362013-10-25 19:22:45206 // If you want to get the root Window of the active window, just use
[email protected]b42910f2013-08-01 11:45:29207 // |wm::GetActiveWindow()->GetRootWindow()|.
[email protected]bf9cdb362013-10-25 19:22:45208 static aura::Window* GetTargetRootWindow();
[email protected]a857dbe2012-05-30 22:10:14209
[email protected]ffabb1e2012-10-12 19:51:17210 // Returns the global Screen object that's always active in ash.
211 static gfx::Screen* GetScreen();
212
[email protected]cf1c70e2012-08-30 01:13:02213 // Returns all root windows.
[email protected]c9390bd2013-11-08 20:33:13214 static aura::Window::Windows GetAllRootWindows();
[email protected]be65be362012-06-15 07:38:23215
[email protected]bf9cdb362013-10-25 19:22:45216 static aura::Window* GetContainer(aura::Window* root_window,
[email protected]7b0f7502012-06-11 00:12:39217 int container_id);
[email protected]bf9cdb362013-10-25 19:22:45218 static const aura::Window* GetContainer(const aura::Window* root_window,
[email protected]e67291f12012-10-10 05:52:38219 int container_id);
[email protected]7b0f7502012-06-11 00:12:39220
221 // Returns the list of containers that match |container_id| in
[email protected]429433f2012-12-28 20:14:46222 // all root windows. If |priority_root| is given, the container
223 // in the |priority_root| will be inserted at the top of the list.
224 static std::vector<aura::Window*> GetContainersFromAllRootWindows(
225 int container_id,
[email protected]bf9cdb362013-10-25 19:22:45226 aura::Window* priority_root);
[email protected]7b0f7502012-06-11 00:12:39227
[email protected]bf9cdb362013-10-25 19:22:45228 void set_target_root_window(aura::Window* target_root_window) {
[email protected]b42910f2013-08-01 11:45:29229 target_root_window_ = target_root_window;
[email protected]a857dbe2012-05-30 22:10:14230 }
231
[email protected]cb054f972012-10-11 20:27:28232 // Shows the context menu for the background and launcher at
[email protected]431552c2012-10-23 00:38:33233 // |location_in_screen| (in screen coordinates).
[email protected]940fb1c2013-06-18 16:54:28234 void ShowContextMenu(const gfx::Point& location_in_screen,
235 ui::MenuSourceType source_type);
[email protected]cac10fc62011-10-07 23:22:56236
[email protected]b913a3a2012-12-11 13:07:19237 // Toggles the app list. |window| specifies in which display the app
238 // list should be shown. If this is NULL, the active root window
239 // will be used.
240 void ToggleAppList(aura::Window* anchor);
[email protected]ae4987d2011-11-21 22:52:44241
[email protected]7510d1082012-03-30 21:58:34242 // Returns app list target visibility.
243 bool GetAppListTargetVisibility() const;
244
[email protected]1e51a9d2012-04-09 23:31:11245 // Returns app list window or NULL if it is not visible.
246 aura::Window* GetAppListWindow();
247
[email protected]59ccade2013-10-17 17:56:40248 // Returns app list view or NULL if it is not visible.
249 app_list::AppListView* GetAppListView();
250
[email protected]dc09739372012-11-15 20:17:39251 // Returns true if a system-modal dialog window is currently open.
252 bool IsSystemModalWindowOpen() const;
[email protected]40c4cbb2012-01-10 23:26:07253
[email protected]852a55d2012-10-17 13:30:30254 // For testing only: set simulation that a modal window is open
255 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
256 simulate_modal_window_open_for_testing_ = modal_window_open;
257 }
258
[email protected]57b8bb352012-01-11 05:11:46259 // Creates a default views::NonClientFrameView for use by windows in the
260 // Ash environment.
261 views::NonClientFrameView* CreateDefaultNonClientFrameView(
262 views::Widget* widget);
263
[email protected]d9456cb2012-03-21 16:41:04264 // Rotates focus through containers that can receive focus.
[email protected]3d29912a2012-02-07 07:41:51265 void RotateFocus(Direction direction);
266
[email protected]2e236a52012-06-27 22:21:47267 // Sets the work area insets of the display that contains |window|,
[email protected]8a45c972012-03-14 18:22:44268 // this notifies observers too.
[email protected]27f6af62012-03-21 05:34:40269 // TODO(sky): this no longer really replicates what happens and is unreliable.
270 // Remove this.
[email protected]2e236a52012-06-27 22:21:47271 void SetDisplayWorkAreaInsets(aura::Window* window,
[email protected]8a45c972012-03-14 18:22:44272 const gfx::Insets& insets);
[email protected]1a2145b2012-03-13 21:09:17273
[email protected]82d3954ae2012-04-20 09:02:22274 // Called when the user logs in.
275 void OnLoginStateChanged(user::LoginStatus status);
276
[email protected]51f438112013-11-18 19:32:50277 // Called after the logged-in user's profile is ready.
278 void OnLoginUserProfilePrepared();
279
[email protected]88d71122012-10-18 07:11:01280 // Called when the login status changes.
281 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|.
282 void UpdateAfterLoginStatusChange(user::LoginStatus status);
283
[email protected]82d3954ae2012-04-20 09:02:22284 // Called when the application is exiting.
285 void OnAppTerminating();
286
287 // Called when the screen is locked (after the lock window is visible) or
288 // unlocked.
289 void OnLockStateChanged(bool locked);
290
[email protected]58868abf2014-01-17 23:45:33291 // Called when a casting session is started or stopped.
292 void OnCastingSessionStartedOrStopped(bool started);
293
[email protected]de42bcc2014-03-04 05:17:00294 // Called when the overview mode is about to be started (before the windows
295 // get re-arranged).
296 void OnOverviewModeStarting();
297
298 // Called before the overview mode is ending (before the windows get arranged
299 // to their final position).
300 void OnOverviewModeEnding();
301
[email protected]864b58552013-12-19 04:19:38302 // Initializes |shelf_|. Does nothing if it's already initialized.
303 void CreateShelf();
[email protected]d9456cb2012-03-21 16:41:04304
[email protected]e1b299b2014-01-29 23:53:41305 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already
306 // exists.
[email protected]51f438112013-11-18 19:32:50307 void CreateKeyboard();
308
[email protected]e1b299b2014-01-29 23:53:41309 // Deactivates the virtual keyboard.
310 void DeactivateKeyboard();
311
[email protected]99c5ed82013-10-18 01:30:04312 // Show shelf view if it was created hidden (before session has started).
[email protected]864b58552013-12-19 04:19:38313 void ShowShelf();
[email protected]7e1df2f62012-07-19 19:17:18314
[email protected]d9456cb2012-03-21 16:41:04315 // Adds/removes observer.
[email protected]1a2145b2012-03-13 21:09:17316 void AddShellObserver(ShellObserver* observer);
317 void RemoveShellObserver(ShellObserver* observer);
318
[email protected]e55b73452014-02-20 13:18:04319 // Turn the always maximize mode window manager on or off.
320 void EnableMaximizeModeWindowManager(bool enable);
321
[email protected]b19b09a2014-02-26 05:34:34322 // Test if the MaximizeModeWindowManager is enabled or not.
323 bool IsMaximizeModeWindowManagerEnabled();
324
[email protected]b6ba05d902013-10-04 21:38:45325 keyboard::KeyboardController* keyboard_controller() {
326 return keyboard_controller_.get();
327 }
328
[email protected]2f744282011-12-23 22:40:52329 AcceleratorController* accelerator_controller() {
[email protected]745816be2011-11-22 05:08:30330 return accelerator_controller_.get();
331 }
[email protected]6e9f6aa2012-02-09 04:16:20332
[email protected]6bdf7952012-11-14 10:10:58333 internal::DisplayManager* display_manager() {
334 return display_manager_.get();
335 }
[email protected]1bb2aa702014-03-12 22:54:17336 views::corewm::InputMethodEventFilter* input_method_filter() {
[email protected]f1d5c3a2013-04-23 17:42:56337 return input_method_filter_.get();
338 }
[email protected]1bb2aa702014-03-12 22:54:17339 views::corewm::CompoundEventFilter* env_filter() {
[email protected]492533b32012-09-21 19:06:14340 return env_filter_.get();
[email protected]627a62f2012-02-14 22:59:14341 }
[email protected]a1b7a822013-02-23 19:08:04342 views::corewm::TooltipController* tooltip_controller() {
[email protected]862deef2011-12-15 22:07:33343 return tooltip_controller_.get();
[email protected]4a229e902011-12-01 21:21:11344 }
[email protected]9ae32df2012-07-26 03:25:18345 internal::OverlayEventFilter* overlay_filter() {
346 return overlay_filter_.get();
[email protected]0b0b0742012-02-16 13:23:45347 }
[email protected]e70cf0ed2012-03-15 16:24:47348 DesktopBackgroundController* desktop_background_controller() {
349 return desktop_background_controller_.get();
350 }
[email protected]e0d22e82012-01-04 00:46:57351 PowerButtonController* power_button_controller() {
352 return power_button_controller_.get();
353 }
[email protected]ab4f8c92013-05-30 19:07:47354 LockStateController* lock_state_controller() {
355 return lock_state_controller_.get();
[email protected]222f40c2012-10-18 08:58:13356 }
[email protected]66c5c4112013-07-31 07:10:59357 MruWindowTracker* mru_window_tracker() {
358 return mru_window_tracker_.get();
359 }
[email protected]c16b9422012-06-06 21:51:11360 UserActivityDetector* user_activity_detector() {
361 return user_activity_detector_.get();
362 }
[email protected]6aa614a2012-01-19 22:13:38363 VideoDetector* video_detector() {
364 return video_detector_.get();
365 }
[email protected]d24ce2c2013-08-01 15:14:19366 WindowSelectorController* window_selector_controller() {
367 return window_selector_controller_.get();
368 }
[email protected]2d511542012-03-07 09:13:34369 internal::FocusCycler* focus_cycler() {
370 return focus_cycler_.get();
371 }
[email protected]edbfb8d2012-09-03 08:33:43372 DisplayController* display_controller() {
[email protected]2e236a52012-06-27 22:21:47373 return display_controller_.get();
[email protected]3e1cdd312012-06-07 03:48:41374 }
[email protected]8b7ba87b2012-09-01 00:40:40375 internal::MouseCursorEventFilter* mouse_cursor_filter() {
376 return mouse_cursor_filter_.get();
377 }
[email protected]682990f2013-01-10 06:49:11378 internal::EventTransformationHandler* event_transformation_handler() {
379 return event_transformation_handler_.get();
380 }
[email protected]1bb2aa702014-03-12 22:54:17381 views::corewm::CursorManager* cursor_manager() { return &cursor_manager_; }
[email protected]4a229e902011-12-01 21:21:11382
[email protected]3266c2b92011-11-14 00:06:08383 ShellDelegate* delegate() { return delegate_.get(); }
[email protected]aa54218b2012-06-12 16:51:42384
[email protected]10b22612012-03-22 17:07:55385 UserWallpaperDelegate* user_wallpaper_delegate() {
386 return user_wallpaper_delegate_.get();
387 }
[email protected]35304ce2011-12-14 23:21:01388
[email protected]fcb123d2013-04-17 15:58:49389 SessionStateDelegate* session_state_delegate() {
390 return session_state_delegate_.get();
391 }
392
[email protected]f3ab6eff52013-10-24 03:29:38393 AccessibilityDelegate* accessibility_delegate() {
394 return accessibility_delegate_.get();
395 }
396
[email protected]47686c42013-10-25 01:49:17397 NewWindowDelegate* new_window_delegate() {
398 return new_window_delegate_.get();
399 }
400
[email protected]efc897f72013-11-01 11:43:07401 MediaDelegate* media_delegate() {
402 return media_delegate_.get();
403 }
404
[email protected]f48075d2012-05-24 11:06:51405 HighContrastController* high_contrast_controller() {
406 return high_contrast_controller_.get();
407 }
408
[email protected]77f7c132012-11-15 06:52:54409 MagnificationController* magnification_controller() {
[email protected]c1c670172012-04-26 04:20:26410 return magnification_controller_.get();
411 }
[email protected]f48075d2012-05-24 11:06:51412
[email protected]77f7c132012-11-15 06:52:54413 PartialMagnificationController* partial_magnification_controller() {
414 return partial_magnification_controller_.get();
415 }
[email protected]55398d2c2013-10-10 19:49:20416
417 AutoclickController* autoclick_controller() {
418 return autoclick_controller_.get();
419 }
420
[email protected]d219a192012-12-14 00:08:18421 aura::client::ActivationClient* activation_client() {
422 return activation_client_;
423 }
[email protected]77f7c132012-11-15 06:52:54424
[email protected]c25ff502013-12-04 13:52:48425 ShelfItemDelegateManager* shelf_item_delegate_manager() {
426 return shelf_item_delegate_manager_.get();
[email protected]cc29ba12013-08-28 05:22:34427 }
428
[email protected]c758fbf2012-03-25 22:53:59429 // Force the shelf to query for it's current visibility state.
430 void UpdateShelfVisibility();
431
[email protected]431552c2012-10-23 00:38:33432 // TODO(oshima): Define an interface to access shelf/launcher
433 // state, or just use Launcher.
[email protected]c758fbf2012-03-25 22:53:59434
[email protected]431552c2012-10-23 00:38:33435 // Sets/gets the shelf auto-hide behavior on |root_window|.
436 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior,
[email protected]bf9cdb362013-10-25 19:22:45437 aura::Window* root_window);
[email protected]431552c2012-10-23 00:38:33438 ShelfAutoHideBehavior GetShelfAutoHideBehavior(
[email protected]bf9cdb362013-10-25 19:22:45439 aura::Window* root_window) const;
[email protected]431552c2012-10-23 00:38:33440
[email protected]431552c2012-10-23 00:38:33441 // Sets/gets shelf's alignment on |root_window|.
442 void SetShelfAlignment(ShelfAlignment alignment,
[email protected]bf9cdb362013-10-25 19:22:45443 aura::Window* root_window);
444 ShelfAlignment GetShelfAlignment(aura::Window* root_window);
[email protected]554445062012-05-10 15:43:53445
[email protected]d90b8392012-06-13 09:34:56446 // Dims or undims the screen.
447 void SetDimming(bool should_dim);
448
[email protected]375069e2013-10-04 13:54:31449 // Notifies |observers_| when entering or exiting fullscreen mode in
450 // |root_window|.
451 void NotifyFullscreenStateChange(bool is_fullscreen,
[email protected]bf9cdb362013-10-25 19:22:45452 aura::Window* root_window);
[email protected]375069e2013-10-04 13:54:31453
[email protected]090c4f12012-10-29 18:56:42454 // Creates a modal background (a partially-opaque fullscreen window)
455 // on all displays for |window|.
456 void CreateModalBackground(aura::Window* window);
[email protected]c0ce80e2012-10-05 23:28:27457
458 // Called when a modal window is removed. It will activate
459 // another modal window if any, or remove modal screens
460 // on all displays.
461 void OnModalWindowRemoved(aura::Window* removed);
462
[email protected]88d71122012-10-18 07:11:01463 // Returns WebNotificationTray on the primary root window.
464 WebNotificationTray* GetWebNotificationTray();
[email protected]6d6546e2012-05-30 23:12:02465
[email protected]a0afeb12012-12-10 22:57:09466 // Does the primary display have status area?
467 bool HasPrimaryStatusArea();
468
469 // Returns the system tray on primary display.
470 SystemTray* GetPrimarySystemTray();
[email protected]bfb411312012-02-27 20:59:27471
[email protected]945f9cae2012-12-12 09:54:29472 SystemTrayDelegate* system_tray_delegate() {
[email protected]51ed5992012-11-07 10:14:39473 return system_tray_delegate_.get();
474 }
475
[email protected]83b2b84c2012-11-14 01:11:00476 SystemTrayNotifier* system_tray_notifier() {
477 return system_tray_notifier_.get();
478 }
479
[email protected]9488d4d2012-02-29 18:32:37480 static void set_initially_hide_cursor(bool hide) {
481 initially_hide_cursor_ = hide;
482 }
483
[email protected]e4a181cc2012-03-17 02:20:57484 internal::ResizeShadowController* resize_shadow_controller() {
485 return resize_shadow_controller_.get();
486 }
487
[email protected]a54e65b2011-11-21 22:03:34488 // Made available for tests.
[email protected]1bb2aa702014-03-12 22:54:17489 views::corewm::ShadowController* shadow_controller() {
[email protected]a54e65b2011-11-21 22:03:34490 return shadow_controller_.get();
491 }
492
[email protected]f9466702012-09-17 16:35:27493 // Starts the animation that occurs on first login.
494 void DoInitialWorkspaceAnimation();
495
[email protected]7bc49bd2014-01-22 09:30:34496#if defined(OS_CHROMEOS)
497#if defined(USE_X11)
[email protected]945ece962013-03-21 06:42:39498 // TODO(oshima): Move these objects to DisplayController.
[email protected]70b3e7d52012-06-02 22:12:25499 chromeos::OutputConfigurator* output_configurator() {
500 return output_configurator_.get();
501 }
[email protected]196e9452012-08-01 06:42:51502 internal::OutputConfiguratorAnimation* output_configurator_animation() {
503 return output_configurator_animation_.get();
504 }
[email protected]18b21b2e2013-03-01 20:56:23505 internal::DisplayErrorObserver* display_error_observer() {
506 return display_error_observer_.get();
507 }
[email protected]7bc49bd2014-01-22 09:30:34508#endif // defined(USE_X11)
[email protected]70b3e7d52012-06-02 22:12:25509
[email protected]6ef71d72013-08-10 18:13:44510 internal::ResolutionNotificationController*
511 resolution_notification_controller() {
512 return resolution_notification_controller_.get();
513 }
[email protected]0dc85512014-03-13 13:26:41514
515 internal::LogoutConfirmationController* logout_confirmation_controller() {
516 return logout_confirmation_controller_.get();
517 }
[email protected]7bc49bd2014-01-22 09:30:34518#endif // defined(OS_CHROMEOS)
[email protected]6ef71d72013-08-10 18:13:44519
[email protected]e8cf7332014-02-14 18:54:58520 WindowTreeHostFactory* window_tree_host_factory() {
521 return window_tree_host_factory_.get();
[email protected]8393aa62013-01-23 19:40:10522 }
523
[email protected]64936bf2013-11-14 19:48:36524 ShelfModel* shelf_model() {
525 return shelf_model_.get();
[email protected]478c6c32013-03-09 02:50:58526 }
527
[email protected]e9a71312013-10-04 03:20:01528 WindowPositioner* window_positioner() {
529 return window_positioner_.get();
530 }
531
[email protected]478c6c32013-03-09 02:50:58532 // Returns the launcher delegate, creating if necesary.
[email protected]8b57e942013-12-09 19:39:20533 ShelfDelegate* GetShelfDelegate();
[email protected]478c6c32013-03-09 02:50:58534
[email protected]5d2ea362013-12-13 08:10:18535 UserMetricsRecorder* metrics() {
536 return user_metrics_recorder_.get();
537 }
538
[email protected]2b8a9bb2013-07-01 22:43:40539 void SetTouchHudProjectionEnabled(bool enabled);
540
541 bool is_touch_hud_projection_enabled() const {
542 return is_touch_hud_projection_enabled_;
543 }
544
[email protected]59ccade2013-10-17 17:56:40545#if defined(OS_CHROMEOS)
546 // Creates instance of FirstRunHelper. Caller is responsible for deleting
547 // returned object.
548 ash::FirstRunHelper* CreateFirstRunHelper();
[email protected]f94c6aa2013-11-08 01:18:54549
[email protected]87ec2202014-02-06 06:24:27550 // Toggles cursor compositing on/off. Native cursor is disabled when cursor
551 // compositing is enabled, and vice versa.
552 void SetCursorCompositingEnabled(bool enabled);
553
[email protected]08bdabed2013-12-20 07:52:28554 StickyKeysController* sticky_keys_controller() {
555 return sticky_keys_controller_.get();
[email protected]f94c6aa2013-11-08 01:18:54556 }
[email protected]59ccade2013-10-17 17:56:40557#endif // defined(OS_CHROMEOS)
558
[email protected]1d2a7212014-01-16 06:09:48559 GPUSupport* gpu_support() { return gpu_support_.get(); }
[email protected]1d2a7212014-01-16 06:09:48560
[email protected]2b4cd302012-02-24 20:21:13561 private:
[email protected]c39be8f2012-06-15 22:58:36562 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
[email protected]1aad3322012-06-06 06:37:09563 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
564 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
[email protected]d90b8392012-06-13 09:34:56565 friend class internal::RootWindowController;
[email protected]b42910f2013-08-01 11:45:29566 friend class internal::ScopedTargetRootWindow;
[email protected]0c68e892012-12-08 16:54:53567 friend class test::ShellTestApi;
[email protected]0af58042012-12-13 03:21:35568 friend class shell::WindowWatcher;
[email protected]ad0c8722012-03-02 20:17:45569
[email protected]cac10fc62011-10-07 23:22:56570 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair;
571
[email protected]09464c72013-04-26 07:31:28572 // Takes ownership of |delegate|.
[email protected]3266c2b92011-11-14 00:06:08573 explicit Shell(ShellDelegate* delegate);
574 virtual ~Shell();
575
576 void Init();
[email protected]b0639282011-12-22 21:12:27577
[email protected]51f438112013-11-18 19:32:50578 // Initializes virtual keyboard controller.
579 void InitKeyboard();
[email protected]b6ba05d902013-10-04 21:38:45580
[email protected]a273d33a2013-10-17 12:41:21581 // Initializes the root window so that it can host browser windows.
[email protected]41baaed2013-11-09 04:18:26582 void InitRootWindow(aura::Window* root_window);
[email protected]d90b8392012-06-13 09:34:56583
[email protected]c0ce80e2012-10-05 23:28:27584 // ash::internal::SystemModalContainerEventFilterDelegate overrides:
585 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE;
586
[email protected]5097e69c2012-10-30 22:08:41587 // Overridden from ui::EventTarget:
[email protected]869f6352012-12-06 20:47:17588 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE;
[email protected]5097e69c2012-10-30 22:08:41589 virtual EventTarget* GetParentTarget() OVERRIDE;
[email protected]3e670aa2013-12-02 19:04:32590 virtual scoped_ptr<ui::EventTargetIterator> GetChildIterator() const OVERRIDE;
591 virtual ui::EventTargeter* GetEventTargeter() OVERRIDE;
[email protected]049cf34b2012-12-07 17:15:48592 virtual void OnEvent(ui::Event* event) OVERRIDE;
[email protected]5097e69c2012-10-30 22:08:41593
[email protected]1ae361652012-12-12 22:39:51594 // Overridden from aura::client::ActivationChangeObserver:
595 virtual void OnWindowActivated(aura::Window* gained_active,
596 aura::Window* lost_active) OVERRIDE;
597
[email protected]cac10fc62011-10-07 23:22:56598 static Shell* instance_;
599
[email protected]9488d4d2012-02-29 18:32:37600 // If set before the Shell is initialized, the mouse cursor will be hidden
601 // when the screen is initially created.
602 static bool initially_hide_cursor_;
603
[email protected]b42910f2013-08-01 11:45:29604 // When no explicit target display/RootWindow is given, new windows are
605 // created on |scoped_target_root_window_| , unless NULL in
606 // which case they are created on |target_root_window_|.
607 // |target_root_window_| never becomes NULL during the session.
[email protected]bf9cdb362013-10-25 19:22:45608 aura::Window* target_root_window_;
609 aura::Window* scoped_target_root_window_;
[email protected]a857dbe2012-05-30 22:10:14610
[email protected]1aad3322012-06-06 06:37:09611 // The CompoundEventFilter owned by aura::Env object.
[email protected]1bb2aa702014-03-12 22:54:17612 scoped_ptr<views::corewm::CompoundEventFilter> env_filter_;
[email protected]627a62f2012-02-14 22:59:14613
[email protected]cac10fc62011-10-07 23:22:56614 std::vector<WindowAndBoundsPair> to_restore_;
615
[email protected]5d2ea362013-12-13 08:10:18616 scoped_ptr<UserMetricsRecorder> user_metrics_recorder_;
[email protected]b6ba05d902013-10-04 21:38:45617 scoped_ptr<keyboard::KeyboardController> keyboard_controller_;
[email protected]8f80db0f2012-02-07 14:44:53618 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_;
[email protected]2f744282011-12-23 22:40:52619 scoped_ptr<AcceleratorController> accelerator_controller_;
[email protected]2b99f8c2011-10-11 19:42:24620 scoped_ptr<ShellDelegate> delegate_;
[email protected]51ed5992012-11-07 10:14:39621 scoped_ptr<SystemTrayDelegate> system_tray_delegate_;
[email protected]83b2b84c2012-11-14 01:11:00622 scoped_ptr<SystemTrayNotifier> system_tray_notifier_;
[email protected]10b22612012-03-22 17:07:55623 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
[email protected]fcb123d2013-04-17 15:58:49624 scoped_ptr<SessionStateDelegate> session_state_delegate_;
[email protected]f3ab6eff52013-10-24 03:29:38625 scoped_ptr<AccessibilityDelegate> accessibility_delegate_;
[email protected]47686c42013-10-25 01:49:17626 scoped_ptr<NewWindowDelegate> new_window_delegate_;
[email protected]efc897f72013-11-01 11:43:07627 scoped_ptr<MediaDelegate> media_delegate_;
[email protected]8b57e942013-12-09 19:39:20628 scoped_ptr<ShelfDelegate> shelf_delegate_;
[email protected]c25ff502013-12-04 13:52:48629 scoped_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_;
[email protected]055a56d2013-12-06 12:13:36630 scoped_ptr<internal::ShelfWindowWatcher> shelf_window_watcher_;
[email protected]b913a3a2012-12-11 13:07:19631
[email protected]64936bf2013-11-14 19:48:36632 scoped_ptr<ShelfModel> shelf_model_;
633 scoped_ptr<WindowPositioner> window_positioner_;
[email protected]2b99f8c2011-10-11 19:42:24634
[email protected]0039db92012-05-09 04:11:45635 scoped_ptr<internal::AppListController> app_list_controller_;
[email protected]ae4987d2011-11-21 22:52:44636
[email protected]084b6bb2011-11-17 05:18:16637 scoped_ptr<internal::DragDropController> drag_drop_controller_;
[email protected]e4a181cc2012-03-17 02:20:57638 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_;
[email protected]1bb2aa702014-03-12 22:54:17639 scoped_ptr<views::corewm::ShadowController> shadow_controller_;
640 scoped_ptr<views::corewm::VisibilityController> visibility_controller_;
641 scoped_ptr<views::corewm::WindowModalityController>
642 window_modality_controller_;
[email protected]a1b7a822013-02-23 19:08:04643 scoped_ptr<views::corewm::TooltipController> tooltip_controller_;
[email protected]e70cf0ed2012-03-15 16:24:47644 scoped_ptr<DesktopBackgroundController> desktop_background_controller_;
[email protected]e0d22e82012-01-04 00:46:57645 scoped_ptr<PowerButtonController> power_button_controller_;
[email protected]ab4f8c92013-05-30 19:07:47646 scoped_ptr<LockStateController> lock_state_controller_;
[email protected]66c5c4112013-07-31 07:10:59647 scoped_ptr<MruWindowTracker> mru_window_tracker_;
[email protected]c16b9422012-06-06 21:51:11648 scoped_ptr<UserActivityDetector> user_activity_detector_;
[email protected]6aa614a2012-01-19 22:13:38649 scoped_ptr<VideoDetector> video_detector_;
[email protected]d24ce2c2013-08-01 15:14:19650 scoped_ptr<WindowSelectorController> window_selector_controller_;
[email protected]3d29912a2012-02-07 07:41:51651 scoped_ptr<internal::FocusCycler> focus_cycler_;
[email protected]edbfb8d2012-09-03 08:33:43652 scoped_ptr<DisplayController> display_controller_;
[email protected]f48075d2012-05-24 11:06:51653 scoped_ptr<HighContrastController> high_contrast_controller_;
[email protected]77f7c132012-11-15 06:52:54654 scoped_ptr<MagnificationController> magnification_controller_;
655 scoped_ptr<PartialMagnificationController> partial_magnification_controller_;
[email protected]55398d2c2013-10-10 19:49:20656 scoped_ptr<AutoclickController> autoclick_controller_;
[email protected]8cfb6722012-11-28 03:28:46657 scoped_ptr<aura::client::FocusClient> focus_client_;
[email protected]39718b52012-12-03 17:24:56658 aura::client::ActivationClient* activation_client_;
[email protected]78d9630c2012-06-22 00:58:07659 scoped_ptr<internal::MouseCursorEventFilter> mouse_cursor_filter_;
[email protected]8d625fb2012-07-18 16:40:06660 scoped_ptr<internal::ScreenPositionController> screen_position_controller_;
[email protected]c0ce80e2012-10-05 23:28:27661 scoped_ptr<internal::SystemModalContainerEventFilter> modality_filter_;
[email protected]e67291f12012-10-10 05:52:38662 scoped_ptr<internal::EventClientImpl> event_client_;
[email protected]682990f2013-01-10 06:49:11663 scoped_ptr<internal::EventTransformationHandler>
664 event_transformation_handler_;
[email protected]e8cf7332014-02-14 18:54:58665 scoped_ptr<WindowTreeHostFactory> window_tree_host_factory_;
[email protected]ae18b9112011-11-07 16:59:13666
[email protected]0b0b0742012-02-16 13:23:45667 // An event filter that pre-handles key events while the partial
[email protected]a1584a712012-07-30 21:02:26668 // screenshot UI or the keyboard overlay is active.
[email protected]9ae32df2012-07-26 03:25:18669 scoped_ptr<internal::OverlayEventFilter> overlay_filter_;
[email protected]0b0b0742012-02-16 13:23:45670
[email protected]7a80cdd2013-09-26 09:20:53671 // An event filter for logging keyboard-related metrics.
672 scoped_ptr<internal::KeyboardUMAEventFilter> keyboard_metrics_filter_;
673
[email protected]3537d472014-01-15 05:45:31674 // An event filter which handles moving and resizing windows.
675 scoped_ptr<ToplevelWindowEventHandler> toplevel_window_event_handler_;
676
[email protected]435b212e2012-04-05 19:43:37677 // An event filter which handles system level gestures
678 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_;
679
[email protected]745816be2011-11-22 05:08:30680 // An event filter that pre-handles global accelerators.
[email protected]2f744282011-12-23 22:40:52681 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
[email protected]745816be2011-11-22 05:08:30682
[email protected]42f06f92012-03-27 00:57:57683 // An event filter that pre-handles all key events to send them to an IME.
[email protected]1bb2aa702014-03-12 22:54:17684 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_;
[email protected]42f06f92012-03-27 00:57:57685
[email protected]6bdf7952012-11-14 10:10:58686 scoped_ptr<internal::DisplayManager> display_manager_;
[email protected]6f67df52013-10-29 01:07:15687 scoped_ptr<base::WeakPtrFactory<internal::DisplayManager> >
688 weak_display_manager_factory_;
[email protected]6bdf7952012-11-14 10:10:58689
[email protected]a9a40462013-07-31 06:22:56690 scoped_ptr<internal::LocaleNotificationController>
691 locale_notification_controller_;
692
[email protected]e55b73452014-02-20 13:18:04693 // The maximized window manager (if enabled).
694 scoped_ptr<internal::MaximizeModeWindowManager> maximize_mode_window_manager_;
695
[email protected]ded58fd2013-10-09 07:56:55696#if defined(OS_CHROMEOS)
[email protected]51625052013-10-10 01:40:16697 scoped_ptr<internal::PowerEventObserver> power_event_observer_;
[email protected]ded58fd2013-10-09 07:56:55698 scoped_ptr<internal::UserActivityNotifier> user_activity_notifier_;
699 scoped_ptr<internal::VideoActivityNotifier> video_activity_notifier_;
[email protected]08bdabed2013-12-20 07:52:28700 scoped_ptr<StickyKeysController> sticky_keys_controller_;
[email protected]7bc49bd2014-01-22 09:30:34701 scoped_ptr<internal::ResolutionNotificationController>
702 resolution_notification_controller_;
[email protected]b31427252014-03-04 06:59:50703 scoped_ptr<internal::BluetoothNotificationController>
704 bluetooth_notification_controller_;
[email protected]0dc85512014-03-13 13:26:41705 scoped_ptr<internal::LogoutConfirmationController>
706 logout_confirmation_controller_;
[email protected]ded58fd2013-10-09 07:56:55707#if defined(USE_X11)
[email protected]70b3e7d52012-06-02 22:12:25708 // Controls video output device state.
709 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
[email protected]196e9452012-08-01 06:42:51710 scoped_ptr<internal::OutputConfiguratorAnimation>
711 output_configurator_animation_;
[email protected]18b21b2e2013-03-01 20:56:23712 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_;
[email protected]72bce522014-02-10 21:11:26713 scoped_ptr<internal::ProjectingObserver> projecting_observer_;
[email protected]6bdf7952012-11-14 10:10:58714
[email protected]c1234a42013-08-20 09:35:40715 // Listens for output changes and updates the display manager.
716 scoped_ptr<internal::DisplayChangeObserver> display_change_observer_;
[email protected]3dff2efd2014-02-09 22:50:39717
[email protected]e4ea52362014-02-15 03:21:06718 scoped_ptr<ui::EventHandler> magnifier_key_scroll_handler_;
719 scoped_ptr<ui::EventHandler> speech_feedback_handler_;
[email protected]ded58fd2013-10-09 07:56:55720#endif // defined(USE_X11)
721#endif // defined(OS_CHROMEOS)
[email protected]70b3e7d52012-06-02 22:12:25722
[email protected]c0ff0342013-02-27 00:41:29723 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
724 // pointer to vend to test code.
725 AshNativeCursorManager* native_cursor_manager_;
[email protected]1bb2aa702014-03-12 22:54:17726 views::corewm::CursorManager cursor_manager_;
[email protected]4b8003c2012-07-26 00:54:19727
[email protected]1a2145b2012-03-13 21:09:17728 ObserverList<ShellObserver> observers_;
729
[email protected]852a55d2012-10-17 13:30:30730 // For testing only: simulate that a modal window is open
731 bool simulate_modal_window_open_for_testing_;
732
[email protected]2b8a9bb2013-07-01 22:43:40733 bool is_touch_hud_projection_enabled_;
734
[email protected]1d2a7212014-01-16 06:09:48735 // Injected content::GPUDataManager support.
736 scoped_ptr<GPUSupport> gpu_support_;
737
[email protected]87b0d82e2011-10-07 21:02:59738 DISALLOW_COPY_AND_ASSIGN(Shell);
739};
740
[email protected]55f593352011-12-24 05:42:46741} // namespace ash
[email protected]87b0d82e2011-10-07 21:02:59742
[email protected]b65bdda2011-12-23 23:35:31743#endif // ASH_SHELL_H_