blob: 1f511db436fbf81cfc344bdddd8e7017b4dad195 [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001// 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_SHELL_H_
6#define ASH_SHELL_H_
7
8#include <utility>
9#include <vector>
10
11#include "ash/ash_export.h"
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000012#include "ash/metrics/user_metrics_recorder.h"
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000013#include "ash/shelf/shelf_types.h"
Torne (Richard Coles)58218062012-11-14 11:43:16 +000014#include "ash/system/user/login_status.h"
Torne (Richard Coles)58218062012-11-14 11:43:16 +000015#include "ash/wm/system_modal_container_event_filter_delegate.h"
16#include "base/basictypes.h"
17#include "base/compiler_specific.h"
18#include "base/gtest_prod_util.h"
19#include "base/memory/scoped_ptr.h"
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +000020#include "base/memory/weak_ptr.h"
Torne (Richard Coles)58218062012-11-14 11:43:16 +000021#include "base/observer_list.h"
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +000022#include "ui/aura/window.h"
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010023#include "ui/base/ui_base_types.h"
Torne (Richard Coles)d0247b12013-09-19 22:36:51 +010024#include "ui/events/event_target.h"
Torne (Richard Coles)58218062012-11-14 11:43:16 +000025#include "ui/gfx/insets.h"
26#include "ui/gfx/screen.h"
27#include "ui/gfx/size.h"
Torne (Richard Coles)a1401312014-03-18 10:20:56 +000028#include "ui/wm/core/cursor_manager.h"
Ben Murdocheffb81e2014-03-31 11:51:25 +010029#include "ui/wm/public/activation_change_observer.h"
Torne (Richard Coles)58218062012-11-14 11:43:16 +000030
Torne (Richard Coles)8bcbed82013-10-22 16:41:35 +010031namespace app_list {
32class AppListView;
33}
Torne (Richard Coles)58218062012-11-14 11:43:16 +000034namespace aura {
35class EventFilter;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000036class RootWindow;
37class Window;
38namespace client {
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000039class ActivationClient;
40class FocusClient;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000041}
Torne (Richard Coles)58218062012-11-14 11:43:16 +000042}
Torne (Richard Coles)58218062012-11-14 11:43:16 +000043
44namespace gfx {
45class ImageSkia;
46class Point;
47class Rect;
48}
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +010049
50namespace keyboard {
51class KeyboardController;
52}
53
Torne (Richard Coles)58218062012-11-14 11:43:16 +000054namespace ui {
55class Layer;
Torne (Richard Coles)a1401312014-03-18 10:20:56 +000056class OutputConfigurator;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000057}
58namespace views {
59class NonClientFrameView;
60class Widget;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000061namespace corewm {
Torne (Richard Coles)a1401312014-03-18 10:20:56 +000062class TooltipController;
63}
64}
65
66namespace wm {
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000067class CompoundEventFilter;
68class InputMethodEventFilter;
69class ShadowController;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000070class VisibilityController;
71class WindowModalityController;
72}
Torne (Richard Coles)58218062012-11-14 11:43:16 +000073
74namespace ash {
75
76class AcceleratorController;
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +000077class AccessibilityDelegate;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000078class AshNativeCursorManager;
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +010079class AutoclickController;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000080class DesktopBackgroundController;
81class DisplayController;
Torne (Richard Coles)8bcbed82013-10-22 16:41:35 +010082class FirstRunHelper;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000083class GPUSupport;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000084class HighContrastController;
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +000085class LockStateController;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000086class MagnificationController;
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +000087class MediaDelegate;
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +010088class MruWindowTracker;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000089class NestedDispatcherController;
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +000090class NewWindowDelegate;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000091class PartialMagnificationController;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000092class PowerButtonController;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000093class WindowTreeHostFactory;
Torne (Richard Coles)58218062012-11-14 11:43:16 +000094class ScreenAsh;
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010095class SessionStateDelegate;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +000096class Shelf;
97class ShelfDelegate;
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +000098class ShelfItemDelegateManager;
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +000099class ShelfModel;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000100class ShellDelegate;
101class ShellObserver;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000102class StickyKeysController;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000103class SystemTray;
104class SystemTrayDelegate;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000105class SystemTrayNotifier;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000106class ToplevelWindowEventHandler;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000107class UserActivityDetector;
108class UserWallpaperDelegate;
109class VideoDetector;
110class WebNotificationTray;
111class WindowCycleController;
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100112class WindowPositioner;
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100113class WindowSelectorController;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000114
115namespace internal {
116class AcceleratorFilter;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000117class AppListController;
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000118class BluetoothNotificationController;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000119class CaptureController;
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100120class DisplayChangeObserver;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000121class DisplayErrorObserver;
122class DisplayManager;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000123class DragDropController;
124class EventClientImpl;
125class EventRewriterEventFilter;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000126class EventTransformationHandler;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000127class FocusCycler;
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100128class KeyboardUMAEventFilter;
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000129class LastWindowClosedLogoutReminder;
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100130class LocaleNotificationController;
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000131class LogoutConfirmationController;
132class MaximizeModeWindowManager;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000133class MouseCursorEventFilter;
134class OutputConfiguratorAnimation;
135class OverlayEventFilter;
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100136class PowerEventObserver;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000137class ProjectingObserver;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000138class ResizeShadowController;
Ben Murdochba5b9a62013-08-12 14:20:17 +0100139class ResolutionNotificationController;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000140class RootWindowController;
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100141class ScopedTargetRootWindow;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000142class ScreenPositionController;
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000143class ShelfWindowWatcher;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000144class SlowAnimationEventFilter;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000145class StatusAreaWidget;
146class SystemGestureEventFilter;
147class SystemModalContainerEventFilter;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000148class TouchObserverHUD;
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100149class UserActivityNotifier;
150class VideoActivityNotifier;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000151}
152
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000153namespace shell {
154class WindowWatcher;
155}
156
157namespace test {
158class ShellTestApi;
159}
160
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000161// Shell is a singleton object that presents the Shell API and implements the
162// RootWindow's delegate interface.
163//
164// Upon creation, the Shell sets itself as the RootWindow's delegate, which
165// takes ownership of the Shell.
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000166class ASH_EXPORT Shell
167 : public internal::SystemModalContainerEventFilterDelegate,
168 public ui::EventTarget,
169 public aura::client::ActivationChangeObserver {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000170 public:
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000171 typedef std::vector<internal::RootWindowController*> RootWindowControllerList;
172
173 enum Direction {
174 FORWARD,
175 BACKWARD
176 };
177
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000178 // 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).
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100180 // Takes ownership of |delegate|.
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000181 static Shell* CreateInstance(ShellDelegate* delegate);
182
183 // Should never be called before |CreateInstance()|.
184 static Shell* GetInstance();
185
186 // Returns true if the ash shell has been instantiated.
187 static bool HasInstance();
188
189 static void DeleteInstance();
190
191 // Returns the root window controller for the primary root window.
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000192 // TODO(oshima): move this to |RootWindowController|
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000193 static internal::RootWindowController* GetPrimaryRootWindowController();
194
195 // Returns all root window controllers.
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000196 // TODO(oshima): move this to |RootWindowController|
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000197 static RootWindowControllerList GetAllRootWindowControllers();
198
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000199 // Returns the primary root Window. The primary root Window is the one that
200 // has a launcher.
201 static aura::Window* GetPrimaryRootWindow();
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000202
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000203 // Returns a root Window when used as a target when creating a new window.
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100204 // The root window of the active window is used in most cases, but can
205 // be overridden by using ScopedTargetRootWindow().
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000206 // If you want to get the root Window of the active window, just use
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100207 // |wm::GetActiveWindow()->GetRootWindow()|.
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000208 static aura::Window* GetTargetRootWindow();
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000209
210 // Returns the global Screen object that's always active in ash.
211 static gfx::Screen* GetScreen();
212
213 // Returns all root windows.
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000214 static aura::Window::Windows GetAllRootWindows();
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000215
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000216 static aura::Window* GetContainer(aura::Window* root_window,
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000217 int container_id);
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000218 static const aura::Window* GetContainer(const aura::Window* root_window,
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000219 int container_id);
220
221 // Returns the list of containers that match |container_id| in
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000222 // 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,
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000226 aura::Window* priority_root);
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000227
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000228 void set_target_root_window(aura::Window* target_root_window) {
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100229 target_root_window_ = target_root_window;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000230 }
231
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000232 // Shows the context menu for the background and launcher at
233 // |location_in_screen| (in screen coordinates).
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100234 void ShowContextMenu(const gfx::Point& location_in_screen,
235 ui::MenuSourceType source_type);
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000236
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000237 // 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);
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000241
242 // Returns app list target visibility.
243 bool GetAppListTargetVisibility() const;
244
245 // Returns app list window or NULL if it is not visible.
246 aura::Window* GetAppListWindow();
247
Torne (Richard Coles)8bcbed82013-10-22 16:41:35 +0100248 // Returns app list view or NULL if it is not visible.
249 app_list::AppListView* GetAppListView();
250
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000251 // Returns true if a system-modal dialog window is currently open.
252 bool IsSystemModalWindowOpen() const;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000253
254 // 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
259 // Creates a default views::NonClientFrameView for use by windows in the
260 // Ash environment.
261 views::NonClientFrameView* CreateDefaultNonClientFrameView(
262 views::Widget* widget);
263
264 // Rotates focus through containers that can receive focus.
265 void RotateFocus(Direction direction);
266
267 // Sets the work area insets of the display that contains |window|,
268 // this notifies observers too.
269 // TODO(sky): this no longer really replicates what happens and is unreliable.
270 // Remove this.
271 void SetDisplayWorkAreaInsets(aura::Window* window,
272 const gfx::Insets& insets);
273
274 // Called when the user logs in.
275 void OnLoginStateChanged(user::LoginStatus status);
276
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000277 // Called after the logged-in user's profile is ready.
278 void OnLoginUserProfilePrepared();
279
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000280 // Called when the login status changes.
281 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|.
282 void UpdateAfterLoginStatusChange(user::LoginStatus status);
283
284 // 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
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000291 // Called when a casting session is started or stopped.
292 void OnCastingSessionStartedOrStopped(bool started);
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000293
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000294 // 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
302 // Called after maximize mode has started, windows might still animate though.
303 void OnMaximizeModeStarted();
304
305 // Called after maximize mode has ended, windows might still be returning to
306 // their original position.
307 void OnMaximizeModeEnded();
308
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000309 // Initializes |shelf_|. Does nothing if it's already initialized.
310 void CreateShelf();
311
312 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already
313 // exists.
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000314 void CreateKeyboard();
315
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000316 // Deactivates the virtual keyboard.
317 void DeactivateKeyboard();
318
Torne (Richard Coles)8bcbed82013-10-22 16:41:35 +0100319 // Show shelf view if it was created hidden (before session has started).
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000320 void ShowShelf();
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000321
322 // Adds/removes observer.
323 void AddShellObserver(ShellObserver* observer);
324 void RemoveShellObserver(ShellObserver* observer);
325
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000326 // Turn the always maximize mode window manager on or off.
327 void EnableMaximizeModeWindowManager(bool enable);
328
329 // Test if the MaximizeModeWindowManager is enabled or not.
330 bool IsMaximizeModeWindowManagerEnabled();
331
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100332 keyboard::KeyboardController* keyboard_controller() {
333 return keyboard_controller_.get();
334 }
335
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000336 AcceleratorController* accelerator_controller() {
337 return accelerator_controller_.get();
338 }
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000339
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000340 internal::DisplayManager* display_manager() {
341 return display_manager_.get();
342 }
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000343 ::wm::InputMethodEventFilter* input_method_filter() {
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100344 return input_method_filter_.get();
345 }
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000346 ::wm::CompoundEventFilter* env_filter() {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000347 return env_filter_.get();
348 }
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000349 views::corewm::TooltipController* tooltip_controller() {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000350 return tooltip_controller_.get();
351 }
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000352 internal::OverlayEventFilter* overlay_filter() {
353 return overlay_filter_.get();
354 }
355 DesktopBackgroundController* desktop_background_controller() {
356 return desktop_background_controller_.get();
357 }
358 PowerButtonController* power_button_controller() {
359 return power_button_controller_.get();
360 }
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100361 LockStateController* lock_state_controller() {
362 return lock_state_controller_.get();
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000363 }
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100364 MruWindowTracker* mru_window_tracker() {
365 return mru_window_tracker_.get();
366 }
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000367 UserActivityDetector* user_activity_detector() {
368 return user_activity_detector_.get();
369 }
370 VideoDetector* video_detector() {
371 return video_detector_.get();
372 }
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100373 WindowSelectorController* window_selector_controller() {
374 return window_selector_controller_.get();
375 }
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000376 internal::FocusCycler* focus_cycler() {
377 return focus_cycler_.get();
378 }
379 DisplayController* display_controller() {
380 return display_controller_.get();
381 }
382 internal::MouseCursorEventFilter* mouse_cursor_filter() {
383 return mouse_cursor_filter_.get();
384 }
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000385 internal::EventTransformationHandler* event_transformation_handler() {
386 return event_transformation_handler_.get();
387 }
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000388 ::wm::CursorManager* cursor_manager() { return &cursor_manager_; }
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000389
390 ShellDelegate* delegate() { return delegate_.get(); }
391
392 UserWallpaperDelegate* user_wallpaper_delegate() {
393 return user_wallpaper_delegate_.get();
394 }
395
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100396 SessionStateDelegate* session_state_delegate() {
397 return session_state_delegate_.get();
398 }
399
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000400 AccessibilityDelegate* accessibility_delegate() {
401 return accessibility_delegate_.get();
402 }
403
404 NewWindowDelegate* new_window_delegate() {
405 return new_window_delegate_.get();
406 }
407
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +0000408 MediaDelegate* media_delegate() {
409 return media_delegate_.get();
410 }
411
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000412 HighContrastController* high_contrast_controller() {
413 return high_contrast_controller_.get();
414 }
415
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000416 MagnificationController* magnification_controller() {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000417 return magnification_controller_.get();
418 }
419
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000420 PartialMagnificationController* partial_magnification_controller() {
421 return partial_magnification_controller_.get();
422 }
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100423
424 AutoclickController* autoclick_controller() {
425 return autoclick_controller_.get();
426 }
427
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000428 aura::client::ActivationClient* activation_client() {
429 return activation_client_;
430 }
431
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000432 ShelfItemDelegateManager* shelf_item_delegate_manager() {
433 return shelf_item_delegate_manager_.get();
Torne (Richard Coles)424c4d72013-08-30 15:14:49 +0100434 }
435
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000436 // Force the shelf to query for it's current visibility state.
437 void UpdateShelfVisibility();
438
439 // TODO(oshima): Define an interface to access shelf/launcher
440 // state, or just use Launcher.
441
442 // Sets/gets the shelf auto-hide behavior on |root_window|.
443 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior,
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000444 aura::Window* root_window);
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000445 ShelfAutoHideBehavior GetShelfAutoHideBehavior(
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000446 aura::Window* root_window) const;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000447
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000448 // Sets/gets shelf's alignment on |root_window|.
449 void SetShelfAlignment(ShelfAlignment alignment,
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000450 aura::Window* root_window);
451 ShelfAlignment GetShelfAlignment(aura::Window* root_window);
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000452
453 // Dims or undims the screen.
454 void SetDimming(bool should_dim);
455
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100456 // Notifies |observers_| when entering or exiting fullscreen mode in
457 // |root_window|.
458 void NotifyFullscreenStateChange(bool is_fullscreen,
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000459 aura::Window* root_window);
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100460
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000461 // Creates a modal background (a partially-opaque fullscreen window)
462 // on all displays for |window|.
463 void CreateModalBackground(aura::Window* window);
464
465 // Called when a modal window is removed. It will activate
466 // another modal window if any, or remove modal screens
467 // on all displays.
468 void OnModalWindowRemoved(aura::Window* removed);
469
470 // Returns WebNotificationTray on the primary root window.
471 WebNotificationTray* GetWebNotificationTray();
472
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000473 // Does the primary display have status area?
474 bool HasPrimaryStatusArea();
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000475
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000476 // Returns the system tray on primary display.
477 SystemTray* GetPrimarySystemTray();
478
479 SystemTrayDelegate* system_tray_delegate() {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000480 return system_tray_delegate_.get();
481 }
482
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000483 SystemTrayNotifier* system_tray_notifier() {
484 return system_tray_notifier_.get();
485 }
486
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000487 static void set_initially_hide_cursor(bool hide) {
488 initially_hide_cursor_ = hide;
489 }
490
491 internal::ResizeShadowController* resize_shadow_controller() {
492 return resize_shadow_controller_.get();
493 }
494
495 // Made available for tests.
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000496 ::wm::ShadowController* shadow_controller() {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000497 return shadow_controller_.get();
498 }
499
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000500 // Starts the animation that occurs on first login.
501 void DoInitialWorkspaceAnimation();
502
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000503#if defined(OS_CHROMEOS)
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000504 // TODO(oshima): Move these objects to DisplayController.
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000505 ui::OutputConfigurator* output_configurator() {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000506 return output_configurator_.get();
507 }
508 internal::OutputConfiguratorAnimation* output_configurator_animation() {
509 return output_configurator_animation_.get();
510 }
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000511 internal::DisplayErrorObserver* display_error_observer() {
512 return display_error_observer_.get();
513 }
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000514
Ben Murdochba5b9a62013-08-12 14:20:17 +0100515 internal::ResolutionNotificationController*
516 resolution_notification_controller() {
517 return resolution_notification_controller_.get();
518 }
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000519
520 internal::LogoutConfirmationController* logout_confirmation_controller() {
521 return logout_confirmation_controller_.get();
522 }
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000523#endif // defined(OS_CHROMEOS)
Ben Murdochba5b9a62013-08-12 14:20:17 +0100524
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000525 WindowTreeHostFactory* window_tree_host_factory() {
526 return window_tree_host_factory_.get();
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000527 }
528
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000529 ShelfModel* shelf_model() {
530 return shelf_model_.get();
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000531 }
532
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100533 WindowPositioner* window_positioner() {
534 return window_positioner_.get();
535 }
536
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000537 // Returns the launcher delegate, creating if necesary.
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000538 ShelfDelegate* GetShelfDelegate();
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000539
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000540 UserMetricsRecorder* metrics() {
541 return user_metrics_recorder_.get();
542 }
543
Ben Murdocheb525c52013-07-10 11:40:50 +0100544 void SetTouchHudProjectionEnabled(bool enabled);
545
546 bool is_touch_hud_projection_enabled() const {
547 return is_touch_hud_projection_enabled_;
548 }
549
Torne (Richard Coles)8bcbed82013-10-22 16:41:35 +0100550#if defined(OS_CHROMEOS)
551 // Creates instance of FirstRunHelper. Caller is responsible for deleting
552 // returned object.
553 ash::FirstRunHelper* CreateFirstRunHelper();
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000554
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000555 // Toggles cursor compositing on/off. Native cursor is disabled when cursor
556 // compositing is enabled, and vice versa.
557 void SetCursorCompositingEnabled(bool enabled);
558
559 StickyKeysController* sticky_keys_controller() {
560 return sticky_keys_controller_.get();
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000561 }
Torne (Richard Coles)8bcbed82013-10-22 16:41:35 +0100562#endif // defined(OS_CHROMEOS)
563
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000564 GPUSupport* gpu_support() { return gpu_support_.get(); }
565
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000566 private:
567 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
568 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
569 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
570 friend class internal::RootWindowController;
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100571 friend class internal::ScopedTargetRootWindow;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000572 friend class test::ShellTestApi;
573 friend class shell::WindowWatcher;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000574
575 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair;
576
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100577 // Takes ownership of |delegate|.
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000578 explicit Shell(ShellDelegate* delegate);
579 virtual ~Shell();
580
581 void Init();
582
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000583 // Initializes virtual keyboard controller.
584 void InitKeyboard();
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100585
Torne (Richard Coles)8bcbed82013-10-22 16:41:35 +0100586 // Initializes the root window so that it can host browser windows.
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000587 void InitRootWindow(aura::Window* root_window);
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000588
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000589 // ash::internal::SystemModalContainerEventFilterDelegate overrides:
590 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE;
591
592 // Overridden from ui::EventTarget:
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000593 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000594 virtual EventTarget* GetParentTarget() OVERRIDE;
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000595 virtual scoped_ptr<ui::EventTargetIterator> GetChildIterator() const OVERRIDE;
596 virtual ui::EventTargeter* GetEventTargeter() OVERRIDE;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000597 virtual void OnEvent(ui::Event* event) OVERRIDE;
598
599 // Overridden from aura::client::ActivationChangeObserver:
600 virtual void OnWindowActivated(aura::Window* gained_active,
601 aura::Window* lost_active) OVERRIDE;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000602
603 static Shell* instance_;
604
605 // If set before the Shell is initialized, the mouse cursor will be hidden
606 // when the screen is initially created.
607 static bool initially_hide_cursor_;
608
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100609 // When no explicit target display/RootWindow is given, new windows are
610 // created on |scoped_target_root_window_| , unless NULL in
611 // which case they are created on |target_root_window_|.
612 // |target_root_window_| never becomes NULL during the session.
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000613 aura::Window* target_root_window_;
614 aura::Window* scoped_target_root_window_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000615
616 // The CompoundEventFilter owned by aura::Env object.
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000617 scoped_ptr< ::wm::CompoundEventFilter> env_filter_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000618
619 std::vector<WindowAndBoundsPair> to_restore_;
620
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000621 scoped_ptr<UserMetricsRecorder> user_metrics_recorder_;
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100622 scoped_ptr<keyboard::KeyboardController> keyboard_controller_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000623 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000624 scoped_ptr<AcceleratorController> accelerator_controller_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000625 scoped_ptr<ShellDelegate> delegate_;
626 scoped_ptr<SystemTrayDelegate> system_tray_delegate_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000627 scoped_ptr<SystemTrayNotifier> system_tray_notifier_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000628 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100629 scoped_ptr<SessionStateDelegate> session_state_delegate_;
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000630 scoped_ptr<AccessibilityDelegate> accessibility_delegate_;
631 scoped_ptr<NewWindowDelegate> new_window_delegate_;
Torne (Richard Coles)0f1bc082013-11-06 12:27:47 +0000632 scoped_ptr<MediaDelegate> media_delegate_;
Torne (Richard Coles)a3f6a492013-12-18 16:25:09 +0000633 scoped_ptr<ShelfDelegate> shelf_delegate_;
634 scoped_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_;
635 scoped_ptr<internal::ShelfWindowWatcher> shelf_window_watcher_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000636
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000637 scoped_ptr<ShelfModel> shelf_model_;
638 scoped_ptr<WindowPositioner> window_positioner_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000639
640 scoped_ptr<internal::AppListController> app_list_controller_;
641
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000642 scoped_ptr<internal::DragDropController> drag_drop_controller_;
643 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_;
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000644 scoped_ptr< ::wm::ShadowController> shadow_controller_;
645 scoped_ptr< ::wm::VisibilityController> visibility_controller_;
646 scoped_ptr< ::wm::WindowModalityController> window_modality_controller_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000647 scoped_ptr<views::corewm::TooltipController> tooltip_controller_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000648 scoped_ptr<DesktopBackgroundController> desktop_background_controller_;
649 scoped_ptr<PowerButtonController> power_button_controller_;
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100650 scoped_ptr<LockStateController> lock_state_controller_;
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100651 scoped_ptr<MruWindowTracker> mru_window_tracker_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000652 scoped_ptr<UserActivityDetector> user_activity_detector_;
653 scoped_ptr<VideoDetector> video_detector_;
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100654 scoped_ptr<WindowSelectorController> window_selector_controller_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000655 scoped_ptr<internal::FocusCycler> focus_cycler_;
656 scoped_ptr<DisplayController> display_controller_;
657 scoped_ptr<HighContrastController> high_contrast_controller_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000658 scoped_ptr<MagnificationController> magnification_controller_;
659 scoped_ptr<PartialMagnificationController> partial_magnification_controller_;
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100660 scoped_ptr<AutoclickController> autoclick_controller_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000661 scoped_ptr<aura::client::FocusClient> focus_client_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000662 aura::client::ActivationClient* activation_client_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000663 scoped_ptr<internal::MouseCursorEventFilter> mouse_cursor_filter_;
664 scoped_ptr<internal::ScreenPositionController> screen_position_controller_;
665 scoped_ptr<internal::SystemModalContainerEventFilter> modality_filter_;
666 scoped_ptr<internal::EventClientImpl> event_client_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000667 scoped_ptr<internal::EventTransformationHandler>
668 event_transformation_handler_;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000669 scoped_ptr<WindowTreeHostFactory> window_tree_host_factory_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000670
671 // An event filter that pre-handles key events while the partial
672 // screenshot UI or the keyboard overlay is active.
673 scoped_ptr<internal::OverlayEventFilter> overlay_filter_;
674
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100675 // An event filter for logging keyboard-related metrics.
676 scoped_ptr<internal::KeyboardUMAEventFilter> keyboard_metrics_filter_;
677
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000678 // An event filter which handles moving and resizing windows.
679 scoped_ptr<ToplevelWindowEventHandler> toplevel_window_event_handler_;
680
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000681 // An event filter which handles system level gestures
682 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_;
683
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000684 // An event filter that pre-handles global accelerators.
685 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000686
687 // An event filter that pre-handles all key events to send them to an IME.
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000688 scoped_ptr< ::wm::InputMethodEventFilter> input_method_filter_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000689
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000690 scoped_ptr<internal::DisplayManager> display_manager_;
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000691 scoped_ptr<base::WeakPtrFactory<internal::DisplayManager> >
692 weak_display_manager_factory_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000693
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100694 scoped_ptr<internal::LocaleNotificationController>
695 locale_notification_controller_;
696
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000697 // The maximized window manager (if enabled).
698 scoped_ptr<internal::MaximizeModeWindowManager> maximize_mode_window_manager_;
699
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100700#if defined(OS_CHROMEOS)
701 scoped_ptr<internal::PowerEventObserver> power_event_observer_;
702 scoped_ptr<internal::UserActivityNotifier> user_activity_notifier_;
703 scoped_ptr<internal::VideoActivityNotifier> video_activity_notifier_;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000704 scoped_ptr<StickyKeysController> sticky_keys_controller_;
705 scoped_ptr<internal::ResolutionNotificationController>
706 resolution_notification_controller_;
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000707 scoped_ptr<internal::BluetoothNotificationController>
708 bluetooth_notification_controller_;
709 scoped_ptr<internal::LogoutConfirmationController>
710 logout_confirmation_controller_;
711 scoped_ptr<internal::LastWindowClosedLogoutReminder>
712 last_window_closed_logout_reminder_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000713 // Controls video output device state.
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000714 scoped_ptr<ui::OutputConfigurator> output_configurator_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000715 scoped_ptr<internal::OutputConfiguratorAnimation>
716 output_configurator_animation_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000717 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000718 scoped_ptr<internal::ProjectingObserver> projecting_observer_;
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000719
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +0100720 // Listens for output changes and updates the display manager.
721 scoped_ptr<internal::DisplayChangeObserver> display_change_observer_;
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000722
Ben Murdocheffb81e2014-03-31 11:51:25 +0100723#if defined(USE_X11)
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000724 scoped_ptr<ui::EventHandler> magnifier_key_scroll_handler_;
725 scoped_ptr<ui::EventHandler> speech_feedback_handler_;
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +0100726#endif // defined(USE_X11)
727#endif // defined(OS_CHROMEOS)
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000728
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000729 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
730 // pointer to vend to test code.
731 AshNativeCursorManager* native_cursor_manager_;
Torne (Richard Coles)a1401312014-03-18 10:20:56 +0000732 ::wm::CursorManager cursor_manager_;
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000733
734 ObserverList<ShellObserver> observers_;
735
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000736 // For testing only: simulate that a modal window is open
737 bool simulate_modal_window_open_for_testing_;
738
Ben Murdocheb525c52013-07-10 11:40:50 +0100739 bool is_touch_hud_projection_enabled_;
740
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +0000741 // Injected content::GPUDataManager support.
742 scoped_ptr<GPUSupport> gpu_support_;
743
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000744 DISALLOW_COPY_AND_ASSIGN(Shell);
745};
746
747} // namespace ash
748
749#endif // ASH_SHELL_H_