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.
11 #include "ash/ash_export.h"
12 #include "ash/metrics/user_metrics_recorder.h"
13 #include "ash/shelf/shelf_types.h"
14 #include "ash/system/user/login_status.h"
15 #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"
20 #include "base/memory/weak_ptr.h"
21 #include "base/observer_list.h"
22 #include "ui/aura/client/activation_change_observer.h"
23 #include "ui/aura/window.h"
24 #include "ui/base/ui_base_types.h"
25 #include "ui/events/event_target.h"
26 #include "ui/gfx/insets.h"
27 #include "ui/gfx/screen.h"
28 #include "ui/gfx/size.h"
29 #include "ui/views/corewm/cursor_manager.h"
41 class ActivationClient
;
43 class UserActionClient
;
47 class OutputConfigurator
;
57 class KeyboardController
;
64 class NonClientFrameView
;
67 class CompoundEventFilter
;
68 class InputMethodEventFilter
;
69 class ShadowController
;
70 class TooltipController
;
71 class VisibilityController
;
72 class WindowModalityController
;
78 class AcceleratorController
;
79 class AccessibilityDelegate
;
80 class AshNativeCursorManager
;
81 class AutoclickController
;
82 class CapsLockDelegate
;
83 class DesktopBackgroundController
;
84 class DisplayController
;
87 class HighContrastController
;
88 class LockStateController
;
89 class MagnificationController
;
90 class MagnifierKeyScroller
;
92 class MruWindowTracker
;
93 class NestedDispatcherController
;
94 class NewWindowDelegate
;
95 class PartialMagnificationController
;
96 class PowerButtonController
;
97 class WindowTreeHostFactory
;
99 class SessionStateDelegate
;
102 class ShelfItemDelegateManager
;
106 class StickyKeysController
;
108 class SystemTrayDelegate
;
109 class SystemTrayNotifier
;
110 class ToplevelWindowEventHandler
;
111 class UserActivityDetector
;
112 class UserWallpaperDelegate
;
114 class WebNotificationTray
;
115 class WindowCycleController
;
116 class WindowPositioner
;
117 class WindowSelectorController
;
120 class AcceleratorFilter
;
121 class AppListController
;
122 class CaptureController
;
123 class DisplayChangeObserver
;
124 class DisplayErrorObserver
;
125 class DisplayManager
;
126 class DragDropController
;
127 class EventClientImpl
;
128 class EventRewriterEventFilter
;
129 class EventTransformationHandler
;
131 class KeyboardUMAEventFilter
;
132 class LocaleNotificationController
;
133 class MouseCursorEventFilter
;
134 class OutputConfiguratorAnimation
;
135 class OverlayEventFilter
;
136 class PowerEventObserver
;
137 class ProjectingObserver
;
138 class ResizeShadowController
;
139 class ResolutionNotificationController
;
140 class RootWindowController
;
141 class ScopedTargetRootWindow
;
142 class ScreenPositionController
;
143 class ShelfWindowWatcher
;
144 class SlowAnimationEventFilter
;
145 class StatusAreaWidget
;
146 class SystemGestureEventFilter
;
147 class SystemModalContainerEventFilter
;
148 class TouchObserverHUD
;
149 class UserActivityNotifier
;
150 class VideoActivityNotifier
;
161 // Shell is a singleton object that presents the Shell API and implements the
162 // RootWindow's delegate interface.
164 // Upon creation, the Shell sets itself as the RootWindow's delegate, which
165 // takes ownership of the Shell.
166 class ASH_EXPORT Shell
167 : public internal::SystemModalContainerEventFilterDelegate
,
168 public ui::EventTarget
,
169 public aura::client::ActivationChangeObserver
{
171 typedef std::vector
<internal::RootWindowController
*> RootWindowControllerList
;
178 // 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).
180 // Takes ownership of |delegate|.
181 static Shell
* CreateInstance(ShellDelegate
* delegate
);
183 // Should never be called before |CreateInstance()|.
184 static Shell
* GetInstance();
186 // Returns true if the ash shell has been instantiated.
187 static bool HasInstance();
189 static void DeleteInstance();
191 // Returns the root window controller for the primary root window.
192 // TODO(oshima): move this to |RootWindowController|
193 static internal::RootWindowController
* GetPrimaryRootWindowController();
195 // Returns all root window controllers.
196 // TODO(oshima): move this to |RootWindowController|
197 static RootWindowControllerList
GetAllRootWindowControllers();
199 // Returns the primary root Window. The primary root Window is the one that
201 static aura::Window
* GetPrimaryRootWindow();
203 // Returns a root Window when used as a target when creating a new window.
204 // The root window of the active window is used in most cases, but can
205 // be overridden by using ScopedTargetRootWindow().
206 // If you want to get the root Window of the active window, just use
207 // |wm::GetActiveWindow()->GetRootWindow()|.
208 static aura::Window
* GetTargetRootWindow();
210 // Returns the global Screen object that's always active in ash.
211 static gfx::Screen
* GetScreen();
213 // Returns all root windows.
214 static aura::Window::Windows
GetAllRootWindows();
216 static aura::Window
* GetContainer(aura::Window
* root_window
,
218 static const aura::Window
* GetContainer(const aura::Window
* root_window
,
221 // Returns the list of containers that match |container_id| in
222 // 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(
226 aura::Window
* priority_root
);
228 void set_target_root_window(aura::Window
* target_root_window
) {
229 target_root_window_
= target_root_window
;
232 // Shows the context menu for the background and launcher at
233 // |location_in_screen| (in screen coordinates).
234 void ShowContextMenu(const gfx::Point
& location_in_screen
,
235 ui::MenuSourceType source_type
);
237 // Toggles the app list. |window| specifies in which display the app
238 // list should be shown. If this is NULL, the active root window
240 void ToggleAppList(aura::Window
* anchor
);
242 // Returns app list target visibility.
243 bool GetAppListTargetVisibility() const;
245 // Returns app list window or NULL if it is not visible.
246 aura::Window
* GetAppListWindow();
248 // Returns app list view or NULL if it is not visible.
249 app_list::AppListView
* GetAppListView();
251 // Returns true if a system-modal dialog window is currently open.
252 bool IsSystemModalWindowOpen() const;
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
;
259 // Creates a default views::NonClientFrameView for use by windows in the
261 views::NonClientFrameView
* CreateDefaultNonClientFrameView(
262 views::Widget
* widget
);
264 // Rotates focus through containers that can receive focus.
265 void RotateFocus(Direction direction
);
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.
271 void SetDisplayWorkAreaInsets(aura::Window
* window
,
272 const gfx::Insets
& insets
);
274 // Called when the user logs in.
275 void OnLoginStateChanged(user::LoginStatus status
);
277 // Called after the logged-in user's profile is ready.
278 void OnLoginUserProfilePrepared();
280 // Called when the login status changes.
281 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|.
282 void UpdateAfterLoginStatusChange(user::LoginStatus status
);
284 // Called when the application is exiting.
285 void OnAppTerminating();
287 // Called when the screen is locked (after the lock window is visible) or
289 void OnLockStateChanged(bool locked
);
291 // Called when a casting session is started or stopped.
292 void OnCastingSessionStartedOrStopped(bool started
);
294 // Initializes |shelf_|. Does nothing if it's already initialized.
297 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already
299 void CreateKeyboard();
301 // Deactivates the virtual keyboard.
302 void DeactivateKeyboard();
304 // Show shelf view if it was created hidden (before session has started).
307 // Adds/removes observer.
308 void AddShellObserver(ShellObserver
* observer
);
309 void RemoveShellObserver(ShellObserver
* observer
);
311 keyboard::KeyboardController
* keyboard_controller() {
312 return keyboard_controller_
.get();
315 AcceleratorController
* accelerator_controller() {
316 return accelerator_controller_
.get();
319 internal::DisplayManager
* display_manager() {
320 return display_manager_
.get();
322 views::corewm::InputMethodEventFilter
* input_method_filter() {
323 return input_method_filter_
.get();
325 views::corewm::CompoundEventFilter
* env_filter() {
326 return env_filter_
.get();
328 views::corewm::TooltipController
* tooltip_controller() {
329 return tooltip_controller_
.get();
331 internal::EventRewriterEventFilter
* event_rewriter_filter() {
332 return event_rewriter_filter_
.get();
334 internal::OverlayEventFilter
* overlay_filter() {
335 return overlay_filter_
.get();
337 DesktopBackgroundController
* desktop_background_controller() {
338 return desktop_background_controller_
.get();
340 PowerButtonController
* power_button_controller() {
341 return power_button_controller_
.get();
343 LockStateController
* lock_state_controller() {
344 return lock_state_controller_
.get();
346 MruWindowTracker
* mru_window_tracker() {
347 return mru_window_tracker_
.get();
349 UserActivityDetector
* user_activity_detector() {
350 return user_activity_detector_
.get();
352 VideoDetector
* video_detector() {
353 return video_detector_
.get();
355 WindowCycleController
* window_cycle_controller() {
356 return window_cycle_controller_
.get();
358 WindowSelectorController
* window_selector_controller() {
359 return window_selector_controller_
.get();
361 internal::FocusCycler
* focus_cycler() {
362 return focus_cycler_
.get();
364 DisplayController
* display_controller() {
365 return display_controller_
.get();
367 internal::MouseCursorEventFilter
* mouse_cursor_filter() {
368 return mouse_cursor_filter_
.get();
370 internal::EventTransformationHandler
* event_transformation_handler() {
371 return event_transformation_handler_
.get();
373 views::corewm::CursorManager
* cursor_manager() { return &cursor_manager_
; }
375 ShellDelegate
* delegate() { return delegate_
.get(); }
377 UserWallpaperDelegate
* user_wallpaper_delegate() {
378 return user_wallpaper_delegate_
.get();
381 CapsLockDelegate
* caps_lock_delegate() {
382 return caps_lock_delegate_
.get();
385 SessionStateDelegate
* session_state_delegate() {
386 return session_state_delegate_
.get();
389 AccessibilityDelegate
* accessibility_delegate() {
390 return accessibility_delegate_
.get();
393 NewWindowDelegate
* new_window_delegate() {
394 return new_window_delegate_
.get();
397 MediaDelegate
* media_delegate() {
398 return media_delegate_
.get();
401 HighContrastController
* high_contrast_controller() {
402 return high_contrast_controller_
.get();
405 MagnificationController
* magnification_controller() {
406 return magnification_controller_
.get();
409 PartialMagnificationController
* partial_magnification_controller() {
410 return partial_magnification_controller_
.get();
413 AutoclickController
* autoclick_controller() {
414 return autoclick_controller_
.get();
417 aura::client::ActivationClient
* activation_client() {
418 return activation_client_
;
421 ShelfItemDelegateManager
* shelf_item_delegate_manager() {
422 return shelf_item_delegate_manager_
.get();
425 // Force the shelf to query for it's current visibility state.
426 void UpdateShelfVisibility();
428 // TODO(oshima): Define an interface to access shelf/launcher
429 // state, or just use Launcher.
431 // Sets/gets the shelf auto-hide behavior on |root_window|.
432 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior
,
433 aura::Window
* root_window
);
434 ShelfAutoHideBehavior
GetShelfAutoHideBehavior(
435 aura::Window
* root_window
) const;
437 // Sets/gets shelf's alignment on |root_window|.
438 void SetShelfAlignment(ShelfAlignment alignment
,
439 aura::Window
* root_window
);
440 ShelfAlignment
GetShelfAlignment(aura::Window
* root_window
);
442 // Dims or undims the screen.
443 void SetDimming(bool should_dim
);
445 // Notifies |observers_| when entering or exiting fullscreen mode in
447 void NotifyFullscreenStateChange(bool is_fullscreen
,
448 aura::Window
* root_window
);
450 // Creates a modal background (a partially-opaque fullscreen window)
451 // on all displays for |window|.
452 void CreateModalBackground(aura::Window
* window
);
454 // Called when a modal window is removed. It will activate
455 // another modal window if any, or remove modal screens
457 void OnModalWindowRemoved(aura::Window
* removed
);
459 // Returns WebNotificationTray on the primary root window.
460 WebNotificationTray
* GetWebNotificationTray();
462 // Does the primary display have status area?
463 bool HasPrimaryStatusArea();
465 // Returns the system tray on primary display.
466 SystemTray
* GetPrimarySystemTray();
468 SystemTrayDelegate
* system_tray_delegate() {
469 return system_tray_delegate_
.get();
472 SystemTrayNotifier
* system_tray_notifier() {
473 return system_tray_notifier_
.get();
476 static void set_initially_hide_cursor(bool hide
) {
477 initially_hide_cursor_
= hide
;
480 internal::ResizeShadowController
* resize_shadow_controller() {
481 return resize_shadow_controller_
.get();
484 // Made available for tests.
485 views::corewm::ShadowController
* shadow_controller() {
486 return shadow_controller_
.get();
489 // Starts the animation that occurs on first login.
490 void DoInitialWorkspaceAnimation();
492 #if defined(OS_CHROMEOS)
494 // TODO(oshima): Move these objects to DisplayController.
495 chromeos::OutputConfigurator
* output_configurator() {
496 return output_configurator_
.get();
498 internal::OutputConfiguratorAnimation
* output_configurator_animation() {
499 return output_configurator_animation_
.get();
501 internal::DisplayErrorObserver
* display_error_observer() {
502 return display_error_observer_
.get();
504 #endif // defined(USE_X11)
506 internal::ResolutionNotificationController
*
507 resolution_notification_controller() {
508 return resolution_notification_controller_
.get();
510 #endif // defined(OS_CHROMEOS)
512 WindowTreeHostFactory
* root_window_host_factory() {
513 return root_window_host_factory_
.get();
516 ShelfModel
* shelf_model() {
517 return shelf_model_
.get();
520 WindowPositioner
* window_positioner() {
521 return window_positioner_
.get();
524 // Returns the launcher delegate, creating if necesary.
525 ShelfDelegate
* GetShelfDelegate();
527 UserMetricsRecorder
* metrics() {
528 return user_metrics_recorder_
.get();
531 void SetTouchHudProjectionEnabled(bool enabled
);
533 bool is_touch_hud_projection_enabled() const {
534 return is_touch_hud_projection_enabled_
;
537 #if defined(OS_CHROMEOS)
538 // Creates instance of FirstRunHelper. Caller is responsible for deleting
540 ash::FirstRunHelper
* CreateFirstRunHelper();
542 // Toggles cursor compositing on/off. Native cursor is disabled when cursor
543 // compositing is enabled, and vice versa.
544 void SetCursorCompositingEnabled(bool enabled
);
546 StickyKeysController
* sticky_keys_controller() {
547 return sticky_keys_controller_
.get();
549 #endif // defined(OS_CHROMEOS)
551 GPUSupport
* gpu_support() { return gpu_support_
.get(); }
554 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest
, TestCursor
);
555 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest
, MouseEventCursors
);
556 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest
, TransformActivate
);
557 friend class internal::RootWindowController
;
558 friend class internal::ScopedTargetRootWindow
;
559 friend class test::ShellTestApi
;
560 friend class shell::WindowWatcher
;
562 typedef std::pair
<aura::Window
*, gfx::Rect
> WindowAndBoundsPair
;
564 // Takes ownership of |delegate|.
565 explicit Shell(ShellDelegate
* delegate
);
570 // Initializes virtual keyboard controller.
573 // Initializes the root window so that it can host browser windows.
574 void InitRootWindow(aura::Window
* root_window
);
576 // ash::internal::SystemModalContainerEventFilterDelegate overrides:
577 virtual bool CanWindowReceiveEvents(aura::Window
* window
) OVERRIDE
;
579 // Overridden from ui::EventTarget:
580 virtual bool CanAcceptEvent(const ui::Event
& event
) OVERRIDE
;
581 virtual EventTarget
* GetParentTarget() OVERRIDE
;
582 virtual scoped_ptr
<ui::EventTargetIterator
> GetChildIterator() const OVERRIDE
;
583 virtual ui::EventTargeter
* GetEventTargeter() OVERRIDE
;
584 virtual void OnEvent(ui::Event
* event
) OVERRIDE
;
586 // Overridden from aura::client::ActivationChangeObserver:
587 virtual void OnWindowActivated(aura::Window
* gained_active
,
588 aura::Window
* lost_active
) OVERRIDE
;
590 static Shell
* instance_
;
592 // If set before the Shell is initialized, the mouse cursor will be hidden
593 // when the screen is initially created.
594 static bool initially_hide_cursor_
;
596 // When no explicit target display/RootWindow is given, new windows are
597 // created on |scoped_target_root_window_| , unless NULL in
598 // which case they are created on |target_root_window_|.
599 // |target_root_window_| never becomes NULL during the session.
600 aura::Window
* target_root_window_
;
601 aura::Window
* scoped_target_root_window_
;
603 // The CompoundEventFilter owned by aura::Env object.
604 scoped_ptr
<views::corewm::CompoundEventFilter
> env_filter_
;
606 std::vector
<WindowAndBoundsPair
> to_restore_
;
608 scoped_ptr
<UserMetricsRecorder
> user_metrics_recorder_
;
609 scoped_ptr
<keyboard::KeyboardController
> keyboard_controller_
;
610 scoped_ptr
<NestedDispatcherController
> nested_dispatcher_controller_
;
611 scoped_ptr
<AcceleratorController
> accelerator_controller_
;
612 scoped_ptr
<ShellDelegate
> delegate_
;
613 scoped_ptr
<SystemTrayDelegate
> system_tray_delegate_
;
614 scoped_ptr
<SystemTrayNotifier
> system_tray_notifier_
;
615 scoped_ptr
<UserWallpaperDelegate
> user_wallpaper_delegate_
;
616 scoped_ptr
<CapsLockDelegate
> caps_lock_delegate_
;
617 scoped_ptr
<SessionStateDelegate
> session_state_delegate_
;
618 scoped_ptr
<AccessibilityDelegate
> accessibility_delegate_
;
619 scoped_ptr
<NewWindowDelegate
> new_window_delegate_
;
620 scoped_ptr
<MediaDelegate
> media_delegate_
;
621 scoped_ptr
<ShelfDelegate
> shelf_delegate_
;
622 scoped_ptr
<ShelfItemDelegateManager
> shelf_item_delegate_manager_
;
623 scoped_ptr
<internal::ShelfWindowWatcher
> shelf_window_watcher_
;
625 scoped_ptr
<ShelfModel
> shelf_model_
;
626 scoped_ptr
<WindowPositioner
> window_positioner_
;
628 scoped_ptr
<internal::AppListController
> app_list_controller_
;
630 scoped_ptr
<internal::DragDropController
> drag_drop_controller_
;
631 scoped_ptr
<internal::ResizeShadowController
> resize_shadow_controller_
;
632 scoped_ptr
<views::corewm::ShadowController
> shadow_controller_
;
633 scoped_ptr
<views::corewm::VisibilityController
> visibility_controller_
;
634 scoped_ptr
<views::corewm::WindowModalityController
>
635 window_modality_controller_
;
636 scoped_ptr
<views::corewm::TooltipController
> tooltip_controller_
;
637 scoped_ptr
<DesktopBackgroundController
> desktop_background_controller_
;
638 scoped_ptr
<PowerButtonController
> power_button_controller_
;
639 scoped_ptr
<LockStateController
> lock_state_controller_
;
640 scoped_ptr
<MruWindowTracker
> mru_window_tracker_
;
641 scoped_ptr
<UserActivityDetector
> user_activity_detector_
;
642 scoped_ptr
<VideoDetector
> video_detector_
;
643 scoped_ptr
<WindowCycleController
> window_cycle_controller_
;
644 scoped_ptr
<WindowSelectorController
> window_selector_controller_
;
645 scoped_ptr
<internal::FocusCycler
> focus_cycler_
;
646 scoped_ptr
<DisplayController
> display_controller_
;
647 scoped_ptr
<HighContrastController
> high_contrast_controller_
;
648 scoped_ptr
<MagnificationController
> magnification_controller_
;
649 scoped_ptr
<PartialMagnificationController
> partial_magnification_controller_
;
650 scoped_ptr
<AutoclickController
> autoclick_controller_
;
651 scoped_ptr
<aura::client::FocusClient
> focus_client_
;
652 scoped_ptr
<aura::client::UserActionClient
> user_action_client_
;
653 aura::client::ActivationClient
* activation_client_
;
654 scoped_ptr
<internal::MouseCursorEventFilter
> mouse_cursor_filter_
;
655 scoped_ptr
<internal::ScreenPositionController
> screen_position_controller_
;
656 scoped_ptr
<internal::SystemModalContainerEventFilter
> modality_filter_
;
657 scoped_ptr
<internal::EventClientImpl
> event_client_
;
658 scoped_ptr
<internal::EventTransformationHandler
>
659 event_transformation_handler_
;
660 scoped_ptr
<WindowTreeHostFactory
> root_window_host_factory_
;
662 // An event filter that rewrites or drops an event.
663 scoped_ptr
<internal::EventRewriterEventFilter
> event_rewriter_filter_
;
665 // An event filter that pre-handles key events while the partial
666 // screenshot UI or the keyboard overlay is active.
667 scoped_ptr
<internal::OverlayEventFilter
> overlay_filter_
;
669 // An event filter for logging keyboard-related metrics.
670 scoped_ptr
<internal::KeyboardUMAEventFilter
> keyboard_metrics_filter_
;
672 // An event filter which handles moving and resizing windows.
673 scoped_ptr
<ToplevelWindowEventHandler
> toplevel_window_event_handler_
;
675 // An event filter which handles system level gestures
676 scoped_ptr
<internal::SystemGestureEventFilter
> system_gesture_filter_
;
678 // An event filter that pre-handles global accelerators.
679 scoped_ptr
<internal::AcceleratorFilter
> accelerator_filter_
;
681 // An event filter that pre-handles all key events to send them to an IME.
682 scoped_ptr
<views::corewm::InputMethodEventFilter
> input_method_filter_
;
684 scoped_ptr
<internal::DisplayManager
> display_manager_
;
685 scoped_ptr
<base::WeakPtrFactory
<internal::DisplayManager
> >
686 weak_display_manager_factory_
;
688 scoped_ptr
<internal::LocaleNotificationController
>
689 locale_notification_controller_
;
691 #if defined(OS_CHROMEOS)
692 scoped_ptr
<internal::PowerEventObserver
> power_event_observer_
;
693 scoped_ptr
<internal::UserActivityNotifier
> user_activity_notifier_
;
694 scoped_ptr
<internal::VideoActivityNotifier
> video_activity_notifier_
;
695 scoped_ptr
<StickyKeysController
> sticky_keys_controller_
;
696 scoped_ptr
<internal::ResolutionNotificationController
>
697 resolution_notification_controller_
;
699 // Controls video output device state.
700 scoped_ptr
<chromeos::OutputConfigurator
> output_configurator_
;
701 scoped_ptr
<internal::OutputConfiguratorAnimation
>
702 output_configurator_animation_
;
703 scoped_ptr
<internal::DisplayErrorObserver
> display_error_observer_
;
704 scoped_ptr
<internal::ProjectingObserver
> projecting_observer_
;
706 // Listens for output changes and updates the display manager.
707 scoped_ptr
<internal::DisplayChangeObserver
> display_change_observer_
;
709 scoped_ptr
<MagnifierKeyScroller
> magnifier_key_scroller_
;
710 #endif // defined(USE_X11)
711 #endif // defined(OS_CHROMEOS)
713 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
714 // pointer to vend to test code.
715 AshNativeCursorManager
* native_cursor_manager_
;
716 views::corewm::CursorManager cursor_manager_
;
718 ObserverList
<ShellObserver
> observers_
;
720 // For testing only: simulate that a modal window is open
721 bool simulate_modal_window_open_for_testing_
;
723 bool is_touch_hud_projection_enabled_
;
725 // Injected content::GPUDataManager support.
726 scoped_ptr
<GPUSupport
> gpu_support_
;
728 DISALLOW_COPY_AND_ASSIGN(Shell
);
733 #endif // ASH_SHELL_H_