Adding a LaunchApp command to Chromedriver using the Chrome management API in the...
[chromium-blink-merge.git] / ash / shell.h
blobff58e66372b4a004ad81c46deec72f43d585fe14
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.
5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_
8 #include <utility>
9 #include <vector>
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"
31 class CommandLine;
33 namespace app_list {
34 class AppListView;
36 namespace aura {
37 class EventFilter;
38 class RootWindow;
39 class Window;
40 namespace client {
41 class ActivationClient;
42 class FocusClient;
43 class UserActionClient;
46 namespace chromeos {
47 class OutputConfigurator;
50 namespace gfx {
51 class ImageSkia;
52 class Point;
53 class Rect;
56 namespace keyboard {
57 class KeyboardController;
60 namespace ui {
61 class Layer;
63 namespace views {
64 class NonClientFrameView;
65 class Widget;
66 namespace corewm {
67 class CompoundEventFilter;
68 class InputMethodEventFilter;
69 class ShadowController;
70 class TooltipController;
71 class VisibilityController;
72 class WindowModalityController;
76 namespace ash {
78 class AcceleratorController;
79 class AccessibilityDelegate;
80 class AshNativeCursorManager;
81 class AutoclickController;
82 class CapsLockDelegate;
83 class DesktopBackgroundController;
84 class DisplayController;
85 class FirstRunHelper;
86 class GPUSupport;
87 class HighContrastController;
88 class LockStateController;
89 class MagnificationController;
90 class MediaDelegate;
91 class MruWindowTracker;
92 class NestedDispatcherController;
93 class NewWindowDelegate;
94 class PartialMagnificationController;
95 class PowerButtonController;
96 class WindowTreeHostFactory;
97 class ScreenAsh;
98 class SessionStateDelegate;
99 class Shelf;
100 class ShelfDelegate;
101 class ShelfItemDelegateManager;
102 class ShelfModel;
103 class ShellDelegate;
104 class ShellObserver;
105 class StickyKeysController;
106 class SystemTray;
107 class SystemTrayDelegate;
108 class SystemTrayNotifier;
109 class ToplevelWindowEventHandler;
110 class UserActivityDetector;
111 class UserWallpaperDelegate;
112 class VideoDetector;
113 class WebNotificationTray;
114 class WindowCycleController;
115 class WindowPositioner;
116 class WindowSelectorController;
118 namespace internal {
119 class AcceleratorFilter;
120 class AppListController;
121 class CaptureController;
122 class DisplayChangeObserver;
123 class DisplayErrorObserver;
124 class DisplayManager;
125 class DragDropController;
126 class EventClientImpl;
127 class EventRewriterEventFilter;
128 class EventTransformationHandler;
129 class FocusCycler;
130 class KeyboardUMAEventFilter;
131 class LocaleNotificationController;
132 class MouseCursorEventFilter;
133 class OutputConfiguratorAnimation;
134 class OverlayEventFilter;
135 class PowerEventObserver;
136 class ResizeShadowController;
137 class ResolutionNotificationController;
138 class RootWindowController;
139 class ScopedTargetRootWindow;
140 class ScreenPositionController;
141 class ShelfWindowWatcher;
142 class SlowAnimationEventFilter;
143 class StatusAreaWidget;
144 class SystemGestureEventFilter;
145 class SystemModalContainerEventFilter;
146 class TouchObserverHUD;
147 class UserActivityNotifier;
148 class VideoActivityNotifier;
151 namespace shell {
152 class WindowWatcher;
155 namespace test {
156 class ShellTestApi;
159 // Shell is a singleton object that presents the Shell API and implements the
160 // RootWindow's delegate interface.
162 // Upon creation, the Shell sets itself as the RootWindow's delegate, which
163 // takes ownership of the Shell.
164 class ASH_EXPORT Shell
165 : public internal::SystemModalContainerEventFilterDelegate,
166 public ui::EventTarget,
167 public aura::client::ActivationChangeObserver {
168 public:
169 typedef std::vector<internal::RootWindowController*> RootWindowControllerList;
171 enum Direction {
172 FORWARD,
173 BACKWARD
176 // A shell must be explicitly created so that it can call |Init()| with the
177 // delegate set. |delegate| can be NULL (if not required for initialization).
178 // Takes ownership of |delegate|.
179 static Shell* CreateInstance(ShellDelegate* delegate);
181 // Should never be called before |CreateInstance()|.
182 static Shell* GetInstance();
184 // Returns true if the ash shell has been instantiated.
185 static bool HasInstance();
187 static void DeleteInstance();
189 // Returns the root window controller for the primary root window.
190 // TODO(oshima): move this to |RootWindowController|
191 static internal::RootWindowController* GetPrimaryRootWindowController();
193 // Returns all root window controllers.
194 // TODO(oshima): move this to |RootWindowController|
195 static RootWindowControllerList GetAllRootWindowControllers();
197 // Returns the primary root Window. The primary root Window is the one that
198 // has a launcher.
199 static aura::Window* GetPrimaryRootWindow();
201 // Returns a root Window when used as a target when creating a new window.
202 // The root window of the active window is used in most cases, but can
203 // be overridden by using ScopedTargetRootWindow().
204 // If you want to get the root Window of the active window, just use
205 // |wm::GetActiveWindow()->GetRootWindow()|.
206 static aura::Window* GetTargetRootWindow();
208 // Returns the global Screen object that's always active in ash.
209 static gfx::Screen* GetScreen();
211 // Returns all root windows.
212 static aura::Window::Windows GetAllRootWindows();
214 static aura::Window* GetContainer(aura::Window* root_window,
215 int container_id);
216 static const aura::Window* GetContainer(const aura::Window* root_window,
217 int container_id);
219 // Returns the list of containers that match |container_id| in
220 // all root windows. If |priority_root| is given, the container
221 // in the |priority_root| will be inserted at the top of the list.
222 static std::vector<aura::Window*> GetContainersFromAllRootWindows(
223 int container_id,
224 aura::Window* priority_root);
226 void set_target_root_window(aura::Window* target_root_window) {
227 target_root_window_ = target_root_window;
230 // Shows the context menu for the background and launcher at
231 // |location_in_screen| (in screen coordinates).
232 void ShowContextMenu(const gfx::Point& location_in_screen,
233 ui::MenuSourceType source_type);
235 // Toggles the app list. |window| specifies in which display the app
236 // list should be shown. If this is NULL, the active root window
237 // will be used.
238 void ToggleAppList(aura::Window* anchor);
240 // Returns app list target visibility.
241 bool GetAppListTargetVisibility() const;
243 // Returns app list window or NULL if it is not visible.
244 aura::Window* GetAppListWindow();
246 // Returns app list view or NULL if it is not visible.
247 app_list::AppListView* GetAppListView();
249 // Returns true if a system-modal dialog window is currently open.
250 bool IsSystemModalWindowOpen() const;
252 // For testing only: set simulation that a modal window is open
253 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
254 simulate_modal_window_open_for_testing_ = modal_window_open;
257 // Creates a default views::NonClientFrameView for use by windows in the
258 // Ash environment.
259 views::NonClientFrameView* CreateDefaultNonClientFrameView(
260 views::Widget* widget);
262 // Rotates focus through containers that can receive focus.
263 void RotateFocus(Direction direction);
265 // Sets the work area insets of the display that contains |window|,
266 // this notifies observers too.
267 // TODO(sky): this no longer really replicates what happens and is unreliable.
268 // Remove this.
269 void SetDisplayWorkAreaInsets(aura::Window* window,
270 const gfx::Insets& insets);
272 // Called when the user logs in.
273 void OnLoginStateChanged(user::LoginStatus status);
275 // Called after the logged-in user's profile is ready.
276 void OnLoginUserProfilePrepared();
278 // Called when the login status changes.
279 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|.
280 void UpdateAfterLoginStatusChange(user::LoginStatus status);
282 // Called when the application is exiting.
283 void OnAppTerminating();
285 // Called when the screen is locked (after the lock window is visible) or
286 // unlocked.
287 void OnLockStateChanged(bool locked);
289 // Initializes |shelf_|. Does nothing if it's already initialized.
290 void CreateShelf();
292 // Creates virtual keyboard. Deletes the old virtual keyboard if it's already
293 // exist.
294 void CreateKeyboard();
296 // Show shelf view if it was created hidden (before session has started).
297 void ShowShelf();
299 // Adds/removes observer.
300 void AddShellObserver(ShellObserver* observer);
301 void RemoveShellObserver(ShellObserver* observer);
303 keyboard::KeyboardController* keyboard_controller() {
304 return keyboard_controller_.get();
307 AcceleratorController* accelerator_controller() {
308 return accelerator_controller_.get();
311 internal::DisplayManager* display_manager() {
312 return display_manager_.get();
314 views::corewm::InputMethodEventFilter* input_method_filter() {
315 return input_method_filter_.get();
317 views::corewm::CompoundEventFilter* env_filter() {
318 return env_filter_.get();
320 views::corewm::TooltipController* tooltip_controller() {
321 return tooltip_controller_.get();
323 internal::EventRewriterEventFilter* event_rewriter_filter() {
324 return event_rewriter_filter_.get();
326 internal::OverlayEventFilter* overlay_filter() {
327 return overlay_filter_.get();
329 DesktopBackgroundController* desktop_background_controller() {
330 return desktop_background_controller_.get();
332 PowerButtonController* power_button_controller() {
333 return power_button_controller_.get();
335 LockStateController* lock_state_controller() {
336 return lock_state_controller_.get();
338 MruWindowTracker* mru_window_tracker() {
339 return mru_window_tracker_.get();
341 UserActivityDetector* user_activity_detector() {
342 return user_activity_detector_.get();
344 VideoDetector* video_detector() {
345 return video_detector_.get();
347 WindowCycleController* window_cycle_controller() {
348 return window_cycle_controller_.get();
350 WindowSelectorController* window_selector_controller() {
351 return window_selector_controller_.get();
353 internal::FocusCycler* focus_cycler() {
354 return focus_cycler_.get();
356 DisplayController* display_controller() {
357 return display_controller_.get();
359 internal::MouseCursorEventFilter* mouse_cursor_filter() {
360 return mouse_cursor_filter_.get();
362 internal::EventTransformationHandler* event_transformation_handler() {
363 return event_transformation_handler_.get();
365 views::corewm::CursorManager* cursor_manager() { return &cursor_manager_; }
367 ShellDelegate* delegate() { return delegate_.get(); }
369 UserWallpaperDelegate* user_wallpaper_delegate() {
370 return user_wallpaper_delegate_.get();
373 CapsLockDelegate* caps_lock_delegate() {
374 return caps_lock_delegate_.get();
377 SessionStateDelegate* session_state_delegate() {
378 return session_state_delegate_.get();
381 AccessibilityDelegate* accessibility_delegate() {
382 return accessibility_delegate_.get();
385 NewWindowDelegate* new_window_delegate() {
386 return new_window_delegate_.get();
389 MediaDelegate* media_delegate() {
390 return media_delegate_.get();
393 HighContrastController* high_contrast_controller() {
394 return high_contrast_controller_.get();
397 MagnificationController* magnification_controller() {
398 return magnification_controller_.get();
401 PartialMagnificationController* partial_magnification_controller() {
402 return partial_magnification_controller_.get();
405 AutoclickController* autoclick_controller() {
406 return autoclick_controller_.get();
409 aura::client::ActivationClient* activation_client() {
410 return activation_client_;
413 ShelfItemDelegateManager* shelf_item_delegate_manager() {
414 return shelf_item_delegate_manager_.get();
417 ScreenAsh* screen() { return screen_; }
419 // Force the shelf to query for it's current visibility state.
420 void UpdateShelfVisibility();
422 // TODO(oshima): Define an interface to access shelf/launcher
423 // state, or just use Launcher.
425 // Sets/gets the shelf auto-hide behavior on |root_window|.
426 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior,
427 aura::Window* root_window);
428 ShelfAutoHideBehavior GetShelfAutoHideBehavior(
429 aura::Window* root_window) const;
431 // Sets/gets shelf's alignment on |root_window|.
432 void SetShelfAlignment(ShelfAlignment alignment,
433 aura::Window* root_window);
434 ShelfAlignment GetShelfAlignment(aura::Window* root_window);
436 // Dims or undims the screen.
437 void SetDimming(bool should_dim);
439 // Notifies |observers_| when entering or exiting fullscreen mode in
440 // |root_window|.
441 void NotifyFullscreenStateChange(bool is_fullscreen,
442 aura::Window* root_window);
444 // Creates a modal background (a partially-opaque fullscreen window)
445 // on all displays for |window|.
446 void CreateModalBackground(aura::Window* window);
448 // Called when a modal window is removed. It will activate
449 // another modal window if any, or remove modal screens
450 // on all displays.
451 void OnModalWindowRemoved(aura::Window* removed);
453 // Returns WebNotificationTray on the primary root window.
454 WebNotificationTray* GetWebNotificationTray();
456 // Does the primary display have status area?
457 bool HasPrimaryStatusArea();
459 // Returns the system tray on primary display.
460 SystemTray* GetPrimarySystemTray();
462 SystemTrayDelegate* system_tray_delegate() {
463 return system_tray_delegate_.get();
466 SystemTrayNotifier* system_tray_notifier() {
467 return system_tray_notifier_.get();
470 static void set_initially_hide_cursor(bool hide) {
471 initially_hide_cursor_ = hide;
474 internal::ResizeShadowController* resize_shadow_controller() {
475 return resize_shadow_controller_.get();
478 // Made available for tests.
479 views::corewm::ShadowController* shadow_controller() {
480 return shadow_controller_.get();
483 // Starts the animation that occurs on first login.
484 void DoInitialWorkspaceAnimation();
486 #if defined(OS_CHROMEOS) && defined(USE_X11)
487 // TODO(oshima): Move these objects to DisplayController.
488 chromeos::OutputConfigurator* output_configurator() {
489 return output_configurator_.get();
491 internal::OutputConfiguratorAnimation* output_configurator_animation() {
492 return output_configurator_animation_.get();
494 internal::DisplayErrorObserver* display_error_observer() {
495 return display_error_observer_.get();
497 #endif // defined(OS_CHROMEOS) && defined(USE_X11)
499 internal::ResolutionNotificationController*
500 resolution_notification_controller() {
501 return resolution_notification_controller_.get();
504 WindowTreeHostFactory* root_window_host_factory() {
505 return root_window_host_factory_.get();
508 ShelfModel* shelf_model() {
509 return shelf_model_.get();
512 WindowPositioner* window_positioner() {
513 return window_positioner_.get();
516 // Returns the launcher delegate, creating if necesary.
517 ShelfDelegate* GetShelfDelegate();
519 UserMetricsRecorder* metrics() {
520 return user_metrics_recorder_.get();
523 void SetTouchHudProjectionEnabled(bool enabled);
525 bool is_touch_hud_projection_enabled() const {
526 return is_touch_hud_projection_enabled_;
529 #if defined(OS_CHROMEOS)
530 // Creates instance of FirstRunHelper. Caller is responsible for deleting
531 // returned object.
532 ash::FirstRunHelper* CreateFirstRunHelper();
534 StickyKeysController* sticky_keys_controller() {
535 return sticky_keys_controller_.get();
537 #endif // defined(OS_CHROMEOS)
539 GPUSupport* gpu_support() { return gpu_support_.get(); }
540 void SetGPUSupport(scoped_ptr<GPUSupport> gpu_support);
542 private:
543 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
544 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
545 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
546 friend class internal::RootWindowController;
547 friend class internal::ScopedTargetRootWindow;
548 friend class test::ShellTestApi;
549 friend class shell::WindowWatcher;
551 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair;
553 // Takes ownership of |delegate|.
554 explicit Shell(ShellDelegate* delegate);
555 virtual ~Shell();
557 void Init();
559 // Initializes virtual keyboard controller.
560 void InitKeyboard();
562 // Initializes the root window so that it can host browser windows.
563 void InitRootWindow(aura::Window* root_window);
565 // ash::internal::SystemModalContainerEventFilterDelegate overrides:
566 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE;
568 // Overridden from ui::EventTarget:
569 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE;
570 virtual EventTarget* GetParentTarget() OVERRIDE;
571 virtual scoped_ptr<ui::EventTargetIterator> GetChildIterator() const OVERRIDE;
572 virtual ui::EventTargeter* GetEventTargeter() OVERRIDE;
573 virtual void OnEvent(ui::Event* event) OVERRIDE;
575 // Overridden from aura::client::ActivationChangeObserver:
576 virtual void OnWindowActivated(aura::Window* gained_active,
577 aura::Window* lost_active) OVERRIDE;
579 static Shell* instance_;
581 // If set before the Shell is initialized, the mouse cursor will be hidden
582 // when the screen is initially created.
583 static bool initially_hide_cursor_;
585 ScreenAsh* screen_;
587 // When no explicit target display/RootWindow is given, new windows are
588 // created on |scoped_target_root_window_| , unless NULL in
589 // which case they are created on |target_root_window_|.
590 // |target_root_window_| never becomes NULL during the session.
591 aura::Window* target_root_window_;
592 aura::Window* scoped_target_root_window_;
594 // The CompoundEventFilter owned by aura::Env object.
595 scoped_ptr<views::corewm::CompoundEventFilter> env_filter_;
597 std::vector<WindowAndBoundsPair> to_restore_;
599 scoped_ptr<UserMetricsRecorder> user_metrics_recorder_;
600 scoped_ptr<keyboard::KeyboardController> keyboard_controller_;
601 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_;
602 scoped_ptr<AcceleratorController> accelerator_controller_;
603 scoped_ptr<ShellDelegate> delegate_;
604 scoped_ptr<SystemTrayDelegate> system_tray_delegate_;
605 scoped_ptr<SystemTrayNotifier> system_tray_notifier_;
606 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
607 scoped_ptr<CapsLockDelegate> caps_lock_delegate_;
608 scoped_ptr<SessionStateDelegate> session_state_delegate_;
609 scoped_ptr<AccessibilityDelegate> accessibility_delegate_;
610 scoped_ptr<NewWindowDelegate> new_window_delegate_;
611 scoped_ptr<MediaDelegate> media_delegate_;
612 scoped_ptr<ShelfDelegate> shelf_delegate_;
613 scoped_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_;
614 scoped_ptr<internal::ShelfWindowWatcher> shelf_window_watcher_;
616 scoped_ptr<ShelfModel> shelf_model_;
617 scoped_ptr<WindowPositioner> window_positioner_;
619 scoped_ptr<internal::AppListController> app_list_controller_;
621 scoped_ptr<internal::DragDropController> drag_drop_controller_;
622 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_;
623 scoped_ptr<views::corewm::ShadowController> shadow_controller_;
624 scoped_ptr<views::corewm::VisibilityController> visibility_controller_;
625 scoped_ptr<views::corewm::WindowModalityController>
626 window_modality_controller_;
627 scoped_ptr<views::corewm::TooltipController> tooltip_controller_;
628 scoped_ptr<DesktopBackgroundController> desktop_background_controller_;
629 scoped_ptr<PowerButtonController> power_button_controller_;
630 scoped_ptr<LockStateController> lock_state_controller_;
631 scoped_ptr<MruWindowTracker> mru_window_tracker_;
632 scoped_ptr<UserActivityDetector> user_activity_detector_;
633 scoped_ptr<VideoDetector> video_detector_;
634 scoped_ptr<WindowCycleController> window_cycle_controller_;
635 scoped_ptr<WindowSelectorController> window_selector_controller_;
636 scoped_ptr<internal::FocusCycler> focus_cycler_;
637 scoped_ptr<DisplayController> display_controller_;
638 scoped_ptr<HighContrastController> high_contrast_controller_;
639 scoped_ptr<MagnificationController> magnification_controller_;
640 scoped_ptr<PartialMagnificationController> partial_magnification_controller_;
641 scoped_ptr<AutoclickController> autoclick_controller_;
642 scoped_ptr<aura::client::FocusClient> focus_client_;
643 scoped_ptr<aura::client::UserActionClient> user_action_client_;
644 aura::client::ActivationClient* activation_client_;
645 scoped_ptr<internal::MouseCursorEventFilter> mouse_cursor_filter_;
646 scoped_ptr<internal::ScreenPositionController> screen_position_controller_;
647 scoped_ptr<internal::SystemModalContainerEventFilter> modality_filter_;
648 scoped_ptr<internal::EventClientImpl> event_client_;
649 scoped_ptr<internal::EventTransformationHandler>
650 event_transformation_handler_;
651 scoped_ptr<WindowTreeHostFactory> root_window_host_factory_;
653 // An event filter that rewrites or drops an event.
654 scoped_ptr<internal::EventRewriterEventFilter> event_rewriter_filter_;
656 // An event filter that pre-handles key events while the partial
657 // screenshot UI or the keyboard overlay is active.
658 scoped_ptr<internal::OverlayEventFilter> overlay_filter_;
660 // An event filter for logging keyboard-related metrics.
661 scoped_ptr<internal::KeyboardUMAEventFilter> keyboard_metrics_filter_;
663 // An event filter which handles moving and resizing windows.
664 scoped_ptr<ToplevelWindowEventHandler> toplevel_window_event_handler_;
666 // An event filter which handles system level gestures
667 scoped_ptr<internal::SystemGestureEventFilter> system_gesture_filter_;
669 // An event filter that pre-handles global accelerators.
670 scoped_ptr<internal::AcceleratorFilter> accelerator_filter_;
672 // An event filter that pre-handles all key events to send them to an IME.
673 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_;
675 scoped_ptr<internal::DisplayManager> display_manager_;
676 scoped_ptr<base::WeakPtrFactory<internal::DisplayManager> >
677 weak_display_manager_factory_;
679 scoped_ptr<internal::LocaleNotificationController>
680 locale_notification_controller_;
682 #if defined(OS_CHROMEOS)
683 scoped_ptr<internal::PowerEventObserver> power_event_observer_;
684 scoped_ptr<internal::UserActivityNotifier> user_activity_notifier_;
685 scoped_ptr<internal::VideoActivityNotifier> video_activity_notifier_;
686 scoped_ptr<StickyKeysController> sticky_keys_controller_;
687 #if defined(USE_X11)
688 // Controls video output device state.
689 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
690 scoped_ptr<internal::OutputConfiguratorAnimation>
691 output_configurator_animation_;
692 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_;
694 // Listens for output changes and updates the display manager.
695 scoped_ptr<internal::DisplayChangeObserver> display_change_observer_;
696 #endif // defined(USE_X11)
697 #endif // defined(OS_CHROMEOS)
699 scoped_ptr<internal::ResolutionNotificationController>
700 resolution_notification_controller_;
702 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
703 // pointer to vend to test code.
704 AshNativeCursorManager* native_cursor_manager_;
705 views::corewm::CursorManager cursor_manager_;
707 ObserverList<ShellObserver> observers_;
709 // For testing only: simulate that a modal window is open
710 bool simulate_modal_window_open_for_testing_;
712 bool is_touch_hud_projection_enabled_;
714 // Injected content::GPUDataManager support.
715 scoped_ptr<GPUSupport> gpu_support_;
717 DISALLOW_COPY_AND_ASSIGN(Shell);
720 } // namespace ash
722 #endif // ASH_SHELL_H_