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/wm/core/cursor_manager.h"
41 class ActivationClient
;
46 class OutputConfigurator
;
56 class KeyboardController
;
63 class NonClientFrameView
;
66 class CompoundEventFilter
;
67 class InputMethodEventFilter
;
68 class ShadowController
;
69 class TooltipController
;
70 class VisibilityController
;
71 class WindowModalityController
;
77 class AcceleratorController
;
78 class AccessibilityDelegate
;
79 class AshNativeCursorManager
;
80 class AutoclickController
;
81 class DesktopBackgroundController
;
82 class DisplayController
;
85 class HighContrastController
;
86 class LockStateController
;
87 class MagnificationController
;
89 class MruWindowTracker
;
90 class NestedDispatcherController
;
91 class NewWindowDelegate
;
92 class PartialMagnificationController
;
93 class PowerButtonController
;
94 class WindowTreeHostFactory
;
96 class SessionStateDelegate
;
99 class ShelfItemDelegateManager
;
103 class StickyKeysController
;
105 class SystemTrayDelegate
;
106 class SystemTrayNotifier
;
107 class ToplevelWindowEventHandler
;
108 class UserActivityDetector
;
109 class UserWallpaperDelegate
;
111 class WebNotificationTray
;
112 class WindowCycleController
;
113 class WindowPositioner
;
114 class WindowSelectorController
;
117 class AcceleratorFilter
;
118 class AppListController
;
119 class BluetoothNotificationController
;
120 class CaptureController
;
121 class DisplayChangeObserver
;
122 class DisplayErrorObserver
;
123 class DisplayManager
;
124 class DragDropController
;
125 class EventClientImpl
;
126 class EventRewriterEventFilter
;
127 class EventTransformationHandler
;
129 class KeyboardUMAEventFilter
;
130 class LocaleNotificationController
;
131 class LogoutConfirmationController
;
132 class MaximizeModeWindowManager
;
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 // Called when the overview mode is about to be started (before the windows
296 void OnOverviewModeStarting();
298 // Called before the overview mode is ending (before the windows get arranged
299 // to their final position).
300 void OnOverviewModeEnding();
302 // Initializes |shelf_|. Does nothing if it's already initialized.
305 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already
307 void CreateKeyboard();
309 // Deactivates the virtual keyboard.
310 void DeactivateKeyboard();
312 // Show shelf view if it was created hidden (before session has started).
315 // Adds/removes observer.
316 void AddShellObserver(ShellObserver
* observer
);
317 void RemoveShellObserver(ShellObserver
* observer
);
319 // Turn the always maximize mode window manager on or off.
320 void EnableMaximizeModeWindowManager(bool enable
);
322 // Test if the MaximizeModeWindowManager is enabled or not.
323 bool IsMaximizeModeWindowManagerEnabled();
325 keyboard::KeyboardController
* keyboard_controller() {
326 return keyboard_controller_
.get();
329 AcceleratorController
* accelerator_controller() {
330 return accelerator_controller_
.get();
333 internal::DisplayManager
* display_manager() {
334 return display_manager_
.get();
336 views::corewm::InputMethodEventFilter
* input_method_filter() {
337 return input_method_filter_
.get();
339 views::corewm::CompoundEventFilter
* env_filter() {
340 return env_filter_
.get();
342 views::corewm::TooltipController
* tooltip_controller() {
343 return tooltip_controller_
.get();
345 internal::OverlayEventFilter
* overlay_filter() {
346 return overlay_filter_
.get();
348 DesktopBackgroundController
* desktop_background_controller() {
349 return desktop_background_controller_
.get();
351 PowerButtonController
* power_button_controller() {
352 return power_button_controller_
.get();
354 LockStateController
* lock_state_controller() {
355 return lock_state_controller_
.get();
357 MruWindowTracker
* mru_window_tracker() {
358 return mru_window_tracker_
.get();
360 UserActivityDetector
* user_activity_detector() {
361 return user_activity_detector_
.get();
363 VideoDetector
* video_detector() {
364 return video_detector_
.get();
366 WindowSelectorController
* window_selector_controller() {
367 return window_selector_controller_
.get();
369 internal::FocusCycler
* focus_cycler() {
370 return focus_cycler_
.get();
372 DisplayController
* display_controller() {
373 return display_controller_
.get();
375 internal::MouseCursorEventFilter
* mouse_cursor_filter() {
376 return mouse_cursor_filter_
.get();
378 internal::EventTransformationHandler
* event_transformation_handler() {
379 return event_transformation_handler_
.get();
381 views::corewm::CursorManager
* cursor_manager() { return &cursor_manager_
; }
383 ShellDelegate
* delegate() { return delegate_
.get(); }
385 UserWallpaperDelegate
* user_wallpaper_delegate() {
386 return user_wallpaper_delegate_
.get();
389 SessionStateDelegate
* session_state_delegate() {
390 return session_state_delegate_
.get();
393 AccessibilityDelegate
* accessibility_delegate() {
394 return accessibility_delegate_
.get();
397 NewWindowDelegate
* new_window_delegate() {
398 return new_window_delegate_
.get();
401 MediaDelegate
* media_delegate() {
402 return media_delegate_
.get();
405 HighContrastController
* high_contrast_controller() {
406 return high_contrast_controller_
.get();
409 MagnificationController
* magnification_controller() {
410 return magnification_controller_
.get();
413 PartialMagnificationController
* partial_magnification_controller() {
414 return partial_magnification_controller_
.get();
417 AutoclickController
* autoclick_controller() {
418 return autoclick_controller_
.get();
421 aura::client::ActivationClient
* activation_client() {
422 return activation_client_
;
425 ShelfItemDelegateManager
* shelf_item_delegate_manager() {
426 return shelf_item_delegate_manager_
.get();
429 // Force the shelf to query for it's current visibility state.
430 void UpdateShelfVisibility();
432 // TODO(oshima): Define an interface to access shelf/launcher
433 // state, or just use Launcher.
435 // Sets/gets the shelf auto-hide behavior on |root_window|.
436 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior
,
437 aura::Window
* root_window
);
438 ShelfAutoHideBehavior
GetShelfAutoHideBehavior(
439 aura::Window
* root_window
) const;
441 // Sets/gets shelf's alignment on |root_window|.
442 void SetShelfAlignment(ShelfAlignment alignment
,
443 aura::Window
* root_window
);
444 ShelfAlignment
GetShelfAlignment(aura::Window
* root_window
);
446 // Dims or undims the screen.
447 void SetDimming(bool should_dim
);
449 // Notifies |observers_| when entering or exiting fullscreen mode in
451 void NotifyFullscreenStateChange(bool is_fullscreen
,
452 aura::Window
* root_window
);
454 // Creates a modal background (a partially-opaque fullscreen window)
455 // on all displays for |window|.
456 void CreateModalBackground(aura::Window
* window
);
458 // Called when a modal window is removed. It will activate
459 // another modal window if any, or remove modal screens
461 void OnModalWindowRemoved(aura::Window
* removed
);
463 // Returns WebNotificationTray on the primary root window.
464 WebNotificationTray
* GetWebNotificationTray();
466 // Does the primary display have status area?
467 bool HasPrimaryStatusArea();
469 // Returns the system tray on primary display.
470 SystemTray
* GetPrimarySystemTray();
472 SystemTrayDelegate
* system_tray_delegate() {
473 return system_tray_delegate_
.get();
476 SystemTrayNotifier
* system_tray_notifier() {
477 return system_tray_notifier_
.get();
480 static void set_initially_hide_cursor(bool hide
) {
481 initially_hide_cursor_
= hide
;
484 internal::ResizeShadowController
* resize_shadow_controller() {
485 return resize_shadow_controller_
.get();
488 // Made available for tests.
489 views::corewm::ShadowController
* shadow_controller() {
490 return shadow_controller_
.get();
493 // Starts the animation that occurs on first login.
494 void DoInitialWorkspaceAnimation();
496 #if defined(OS_CHROMEOS)
498 // TODO(oshima): Move these objects to DisplayController.
499 chromeos::OutputConfigurator
* output_configurator() {
500 return output_configurator_
.get();
502 internal::OutputConfiguratorAnimation
* output_configurator_animation() {
503 return output_configurator_animation_
.get();
505 internal::DisplayErrorObserver
* display_error_observer() {
506 return display_error_observer_
.get();
508 #endif // defined(USE_X11)
510 internal::ResolutionNotificationController
*
511 resolution_notification_controller() {
512 return resolution_notification_controller_
.get();
515 internal::LogoutConfirmationController
* logout_confirmation_controller() {
516 return logout_confirmation_controller_
.get();
518 #endif // defined(OS_CHROMEOS)
520 WindowTreeHostFactory
* window_tree_host_factory() {
521 return window_tree_host_factory_
.get();
524 ShelfModel
* shelf_model() {
525 return shelf_model_
.get();
528 WindowPositioner
* window_positioner() {
529 return window_positioner_
.get();
532 // Returns the launcher delegate, creating if necesary.
533 ShelfDelegate
* GetShelfDelegate();
535 UserMetricsRecorder
* metrics() {
536 return user_metrics_recorder_
.get();
539 void SetTouchHudProjectionEnabled(bool enabled
);
541 bool is_touch_hud_projection_enabled() const {
542 return is_touch_hud_projection_enabled_
;
545 #if defined(OS_CHROMEOS)
546 // Creates instance of FirstRunHelper. Caller is responsible for deleting
548 ash::FirstRunHelper
* CreateFirstRunHelper();
550 // Toggles cursor compositing on/off. Native cursor is disabled when cursor
551 // compositing is enabled, and vice versa.
552 void SetCursorCompositingEnabled(bool enabled
);
554 StickyKeysController
* sticky_keys_controller() {
555 return sticky_keys_controller_
.get();
557 #endif // defined(OS_CHROMEOS)
559 GPUSupport
* gpu_support() { return gpu_support_
.get(); }
562 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest
, TestCursor
);
563 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest
, MouseEventCursors
);
564 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest
, TransformActivate
);
565 friend class internal::RootWindowController
;
566 friend class internal::ScopedTargetRootWindow
;
567 friend class test::ShellTestApi
;
568 friend class shell::WindowWatcher
;
570 typedef std::pair
<aura::Window
*, gfx::Rect
> WindowAndBoundsPair
;
572 // Takes ownership of |delegate|.
573 explicit Shell(ShellDelegate
* delegate
);
578 // Initializes virtual keyboard controller.
581 // Initializes the root window so that it can host browser windows.
582 void InitRootWindow(aura::Window
* root_window
);
584 // ash::internal::SystemModalContainerEventFilterDelegate overrides:
585 virtual bool CanWindowReceiveEvents(aura::Window
* window
) OVERRIDE
;
587 // Overridden from ui::EventTarget:
588 virtual bool CanAcceptEvent(const ui::Event
& event
) OVERRIDE
;
589 virtual EventTarget
* GetParentTarget() OVERRIDE
;
590 virtual scoped_ptr
<ui::EventTargetIterator
> GetChildIterator() const OVERRIDE
;
591 virtual ui::EventTargeter
* GetEventTargeter() OVERRIDE
;
592 virtual void OnEvent(ui::Event
* event
) OVERRIDE
;
594 // Overridden from aura::client::ActivationChangeObserver:
595 virtual void OnWindowActivated(aura::Window
* gained_active
,
596 aura::Window
* lost_active
) OVERRIDE
;
598 static Shell
* instance_
;
600 // 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_
;
604 // 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.
608 aura::Window
* target_root_window_
;
609 aura::Window
* scoped_target_root_window_
;
611 // The CompoundEventFilter owned by aura::Env object.
612 scoped_ptr
<views::corewm::CompoundEventFilter
> env_filter_
;
614 std::vector
<WindowAndBoundsPair
> to_restore_
;
616 scoped_ptr
<UserMetricsRecorder
> user_metrics_recorder_
;
617 scoped_ptr
<keyboard::KeyboardController
> keyboard_controller_
;
618 scoped_ptr
<NestedDispatcherController
> nested_dispatcher_controller_
;
619 scoped_ptr
<AcceleratorController
> accelerator_controller_
;
620 scoped_ptr
<ShellDelegate
> delegate_
;
621 scoped_ptr
<SystemTrayDelegate
> system_tray_delegate_
;
622 scoped_ptr
<SystemTrayNotifier
> system_tray_notifier_
;
623 scoped_ptr
<UserWallpaperDelegate
> user_wallpaper_delegate_
;
624 scoped_ptr
<SessionStateDelegate
> session_state_delegate_
;
625 scoped_ptr
<AccessibilityDelegate
> accessibility_delegate_
;
626 scoped_ptr
<NewWindowDelegate
> new_window_delegate_
;
627 scoped_ptr
<MediaDelegate
> media_delegate_
;
628 scoped_ptr
<ShelfDelegate
> shelf_delegate_
;
629 scoped_ptr
<ShelfItemDelegateManager
> shelf_item_delegate_manager_
;
630 scoped_ptr
<internal::ShelfWindowWatcher
> shelf_window_watcher_
;
632 scoped_ptr
<ShelfModel
> shelf_model_
;
633 scoped_ptr
<WindowPositioner
> window_positioner_
;
635 scoped_ptr
<internal::AppListController
> app_list_controller_
;
637 scoped_ptr
<internal::DragDropController
> drag_drop_controller_
;
638 scoped_ptr
<internal::ResizeShadowController
> resize_shadow_controller_
;
639 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_
;
643 scoped_ptr
<views::corewm::TooltipController
> tooltip_controller_
;
644 scoped_ptr
<DesktopBackgroundController
> desktop_background_controller_
;
645 scoped_ptr
<PowerButtonController
> power_button_controller_
;
646 scoped_ptr
<LockStateController
> lock_state_controller_
;
647 scoped_ptr
<MruWindowTracker
> mru_window_tracker_
;
648 scoped_ptr
<UserActivityDetector
> user_activity_detector_
;
649 scoped_ptr
<VideoDetector
> video_detector_
;
650 scoped_ptr
<WindowSelectorController
> window_selector_controller_
;
651 scoped_ptr
<internal::FocusCycler
> focus_cycler_
;
652 scoped_ptr
<DisplayController
> display_controller_
;
653 scoped_ptr
<HighContrastController
> high_contrast_controller_
;
654 scoped_ptr
<MagnificationController
> magnification_controller_
;
655 scoped_ptr
<PartialMagnificationController
> partial_magnification_controller_
;
656 scoped_ptr
<AutoclickController
> autoclick_controller_
;
657 scoped_ptr
<aura::client::FocusClient
> focus_client_
;
658 aura::client::ActivationClient
* activation_client_
;
659 scoped_ptr
<internal::MouseCursorEventFilter
> mouse_cursor_filter_
;
660 scoped_ptr
<internal::ScreenPositionController
> screen_position_controller_
;
661 scoped_ptr
<internal::SystemModalContainerEventFilter
> modality_filter_
;
662 scoped_ptr
<internal::EventClientImpl
> event_client_
;
663 scoped_ptr
<internal::EventTransformationHandler
>
664 event_transformation_handler_
;
665 scoped_ptr
<WindowTreeHostFactory
> window_tree_host_factory_
;
667 // An event filter that pre-handles key events while the partial
668 // screenshot UI or the keyboard overlay is active.
669 scoped_ptr
<internal::OverlayEventFilter
> overlay_filter_
;
671 // An event filter for logging keyboard-related metrics.
672 scoped_ptr
<internal::KeyboardUMAEventFilter
> keyboard_metrics_filter_
;
674 // An event filter which handles moving and resizing windows.
675 scoped_ptr
<ToplevelWindowEventHandler
> toplevel_window_event_handler_
;
677 // An event filter which handles system level gestures
678 scoped_ptr
<internal::SystemGestureEventFilter
> system_gesture_filter_
;
680 // An event filter that pre-handles global accelerators.
681 scoped_ptr
<internal::AcceleratorFilter
> accelerator_filter_
;
683 // An event filter that pre-handles all key events to send them to an IME.
684 scoped_ptr
<views::corewm::InputMethodEventFilter
> input_method_filter_
;
686 scoped_ptr
<internal::DisplayManager
> display_manager_
;
687 scoped_ptr
<base::WeakPtrFactory
<internal::DisplayManager
> >
688 weak_display_manager_factory_
;
690 scoped_ptr
<internal::LocaleNotificationController
>
691 locale_notification_controller_
;
693 // The maximized window manager (if enabled).
694 scoped_ptr
<internal::MaximizeModeWindowManager
> maximize_mode_window_manager_
;
696 #if defined(OS_CHROMEOS)
697 scoped_ptr
<internal::PowerEventObserver
> power_event_observer_
;
698 scoped_ptr
<internal::UserActivityNotifier
> user_activity_notifier_
;
699 scoped_ptr
<internal::VideoActivityNotifier
> video_activity_notifier_
;
700 scoped_ptr
<StickyKeysController
> sticky_keys_controller_
;
701 scoped_ptr
<internal::ResolutionNotificationController
>
702 resolution_notification_controller_
;
703 scoped_ptr
<internal::BluetoothNotificationController
>
704 bluetooth_notification_controller_
;
705 scoped_ptr
<internal::LogoutConfirmationController
>
706 logout_confirmation_controller_
;
708 // Controls video output device state.
709 scoped_ptr
<chromeos::OutputConfigurator
> output_configurator_
;
710 scoped_ptr
<internal::OutputConfiguratorAnimation
>
711 output_configurator_animation_
;
712 scoped_ptr
<internal::DisplayErrorObserver
> display_error_observer_
;
713 scoped_ptr
<internal::ProjectingObserver
> projecting_observer_
;
715 // Listens for output changes and updates the display manager.
716 scoped_ptr
<internal::DisplayChangeObserver
> display_change_observer_
;
718 scoped_ptr
<ui::EventHandler
> magnifier_key_scroll_handler_
;
719 scoped_ptr
<ui::EventHandler
> speech_feedback_handler_
;
720 #endif // defined(USE_X11)
721 #endif // defined(OS_CHROMEOS)
723 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
724 // pointer to vend to test code.
725 AshNativeCursorManager
* native_cursor_manager_
;
726 views::corewm::CursorManager cursor_manager_
;
728 ObserverList
<ShellObserver
> observers_
;
730 // For testing only: simulate that a modal window is open
731 bool simulate_modal_window_open_for_testing_
;
733 bool is_touch_hud_projection_enabled_
;
735 // Injected content::GPUDataManager support.
736 scoped_ptr
<GPUSupport
> gpu_support_
;
738 DISALLOW_COPY_AND_ASSIGN(Shell
);
743 #endif // ASH_SHELL_H_