Move render_view_context_menu.* and related files out of tab_contents.
[chromium-blink-merge.git] / ash / shell.h
blob02aaef3eb31603ff5796ef2bb422f584aabdb45b
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 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;
153 namespace shell {
154 class WindowWatcher;
157 namespace test {
158 class ShellTestApi;
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 {
170 public:
171 typedef std::vector<internal::RootWindowController*> RootWindowControllerList;
173 enum Direction {
174 FORWARD,
175 BACKWARD
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
200 // has a launcher.
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,
217 int container_id);
218 static const aura::Window* GetContainer(const aura::Window* root_window,
219 int container_id);
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(
225 int container_id,
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
239 // will be used.
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
260 // Ash environment.
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.
270 // Remove this.
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
288 // unlocked.
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.
295 void CreateShelf();
297 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already
298 // exists.
299 void CreateKeyboard();
301 // Deactivates the virtual keyboard.
302 void DeactivateKeyboard();
304 // Show shelf view if it was created hidden (before session has started).
305 void ShowShelf();
307 // Adds/removes observer.
308 void AddShellObserver(ShellObserver* observer);
309 void RemoveShellObserver(ShellObserver* observer);
311 // Turn the always maximize mode window manager on or off.
312 void EnableMaximizeModeWindowManager(bool enable);
314 // Test if the MaximizeModeWindowManager is enabled or not.
315 bool IsMaximizeModeWindowManagerEnabled();
317 keyboard::KeyboardController* keyboard_controller() {
318 return keyboard_controller_.get();
321 AcceleratorController* accelerator_controller() {
322 return accelerator_controller_.get();
325 internal::DisplayManager* display_manager() {
326 return display_manager_.get();
328 views::corewm::InputMethodEventFilter* input_method_filter() {
329 return input_method_filter_.get();
331 views::corewm::CompoundEventFilter* env_filter() {
332 return env_filter_.get();
334 views::corewm::TooltipController* tooltip_controller() {
335 return tooltip_controller_.get();
337 internal::OverlayEventFilter* overlay_filter() {
338 return overlay_filter_.get();
340 DesktopBackgroundController* desktop_background_controller() {
341 return desktop_background_controller_.get();
343 PowerButtonController* power_button_controller() {
344 return power_button_controller_.get();
346 LockStateController* lock_state_controller() {
347 return lock_state_controller_.get();
349 MruWindowTracker* mru_window_tracker() {
350 return mru_window_tracker_.get();
352 UserActivityDetector* user_activity_detector() {
353 return user_activity_detector_.get();
355 VideoDetector* video_detector() {
356 return video_detector_.get();
358 WindowCycleController* window_cycle_controller() {
359 return window_cycle_controller_.get();
361 WindowSelectorController* window_selector_controller() {
362 return window_selector_controller_.get();
364 internal::FocusCycler* focus_cycler() {
365 return focus_cycler_.get();
367 DisplayController* display_controller() {
368 return display_controller_.get();
370 internal::MouseCursorEventFilter* mouse_cursor_filter() {
371 return mouse_cursor_filter_.get();
373 internal::EventTransformationHandler* event_transformation_handler() {
374 return event_transformation_handler_.get();
376 views::corewm::CursorManager* cursor_manager() { return &cursor_manager_; }
378 ShellDelegate* delegate() { return delegate_.get(); }
380 UserWallpaperDelegate* user_wallpaper_delegate() {
381 return user_wallpaper_delegate_.get();
384 CapsLockDelegate* caps_lock_delegate() {
385 return caps_lock_delegate_.get();
388 SessionStateDelegate* session_state_delegate() {
389 return session_state_delegate_.get();
392 AccessibilityDelegate* accessibility_delegate() {
393 return accessibility_delegate_.get();
396 NewWindowDelegate* new_window_delegate() {
397 return new_window_delegate_.get();
400 MediaDelegate* media_delegate() {
401 return media_delegate_.get();
404 HighContrastController* high_contrast_controller() {
405 return high_contrast_controller_.get();
408 MagnificationController* magnification_controller() {
409 return magnification_controller_.get();
412 PartialMagnificationController* partial_magnification_controller() {
413 return partial_magnification_controller_.get();
416 AutoclickController* autoclick_controller() {
417 return autoclick_controller_.get();
420 aura::client::ActivationClient* activation_client() {
421 return activation_client_;
424 ShelfItemDelegateManager* shelf_item_delegate_manager() {
425 return shelf_item_delegate_manager_.get();
428 // Force the shelf to query for it's current visibility state.
429 void UpdateShelfVisibility();
431 // TODO(oshima): Define an interface to access shelf/launcher
432 // state, or just use Launcher.
434 // Sets/gets the shelf auto-hide behavior on |root_window|.
435 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior,
436 aura::Window* root_window);
437 ShelfAutoHideBehavior GetShelfAutoHideBehavior(
438 aura::Window* root_window) const;
440 // Sets/gets shelf's alignment on |root_window|.
441 void SetShelfAlignment(ShelfAlignment alignment,
442 aura::Window* root_window);
443 ShelfAlignment GetShelfAlignment(aura::Window* root_window);
445 // Dims or undims the screen.
446 void SetDimming(bool should_dim);
448 // Notifies |observers_| when entering or exiting fullscreen mode in
449 // |root_window|.
450 void NotifyFullscreenStateChange(bool is_fullscreen,
451 aura::Window* root_window);
453 // Creates a modal background (a partially-opaque fullscreen window)
454 // on all displays for |window|.
455 void CreateModalBackground(aura::Window* window);
457 // Called when a modal window is removed. It will activate
458 // another modal window if any, or remove modal screens
459 // on all displays.
460 void OnModalWindowRemoved(aura::Window* removed);
462 // Returns WebNotificationTray on the primary root window.
463 WebNotificationTray* GetWebNotificationTray();
465 // Does the primary display have status area?
466 bool HasPrimaryStatusArea();
468 // Returns the system tray on primary display.
469 SystemTray* GetPrimarySystemTray();
471 SystemTrayDelegate* system_tray_delegate() {
472 return system_tray_delegate_.get();
475 SystemTrayNotifier* system_tray_notifier() {
476 return system_tray_notifier_.get();
479 static void set_initially_hide_cursor(bool hide) {
480 initially_hide_cursor_ = hide;
483 internal::ResizeShadowController* resize_shadow_controller() {
484 return resize_shadow_controller_.get();
487 // Made available for tests.
488 views::corewm::ShadowController* shadow_controller() {
489 return shadow_controller_.get();
492 // Starts the animation that occurs on first login.
493 void DoInitialWorkspaceAnimation();
495 #if defined(OS_CHROMEOS)
496 #if defined(USE_X11)
497 // TODO(oshima): Move these objects to DisplayController.
498 chromeos::OutputConfigurator* output_configurator() {
499 return output_configurator_.get();
501 internal::OutputConfiguratorAnimation* output_configurator_animation() {
502 return output_configurator_animation_.get();
504 internal::DisplayErrorObserver* display_error_observer() {
505 return display_error_observer_.get();
507 #endif // defined(USE_X11)
509 internal::ResolutionNotificationController*
510 resolution_notification_controller() {
511 return resolution_notification_controller_.get();
513 #endif // defined(OS_CHROMEOS)
515 WindowTreeHostFactory* window_tree_host_factory() {
516 return window_tree_host_factory_.get();
519 ShelfModel* shelf_model() {
520 return shelf_model_.get();
523 WindowPositioner* window_positioner() {
524 return window_positioner_.get();
527 // Returns the launcher delegate, creating if necesary.
528 ShelfDelegate* GetShelfDelegate();
530 UserMetricsRecorder* metrics() {
531 return user_metrics_recorder_.get();
534 void SetTouchHudProjectionEnabled(bool enabled);
536 bool is_touch_hud_projection_enabled() const {
537 return is_touch_hud_projection_enabled_;
540 #if defined(OS_CHROMEOS)
541 // Creates instance of FirstRunHelper. Caller is responsible for deleting
542 // returned object.
543 ash::FirstRunHelper* CreateFirstRunHelper();
545 // Toggles cursor compositing on/off. Native cursor is disabled when cursor
546 // compositing is enabled, and vice versa.
547 void SetCursorCompositingEnabled(bool enabled);
549 StickyKeysController* sticky_keys_controller() {
550 return sticky_keys_controller_.get();
552 #endif // defined(OS_CHROMEOS)
554 GPUSupport* gpu_support() { return gpu_support_.get(); }
556 private:
557 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
558 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
559 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
560 friend class internal::RootWindowController;
561 friend class internal::ScopedTargetRootWindow;
562 friend class test::ShellTestApi;
563 friend class shell::WindowWatcher;
565 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair;
567 // Takes ownership of |delegate|.
568 explicit Shell(ShellDelegate* delegate);
569 virtual ~Shell();
571 void Init();
573 // Initializes virtual keyboard controller.
574 void InitKeyboard();
576 // Initializes the root window so that it can host browser windows.
577 void InitRootWindow(aura::Window* root_window);
579 // ash::internal::SystemModalContainerEventFilterDelegate overrides:
580 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE;
582 // Overridden from ui::EventTarget:
583 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE;
584 virtual EventTarget* GetParentTarget() OVERRIDE;
585 virtual scoped_ptr<ui::EventTargetIterator> GetChildIterator() const OVERRIDE;
586 virtual ui::EventTargeter* GetEventTargeter() OVERRIDE;
587 virtual void OnEvent(ui::Event* event) OVERRIDE;
589 // Overridden from aura::client::ActivationChangeObserver:
590 virtual void OnWindowActivated(aura::Window* gained_active,
591 aura::Window* lost_active) OVERRIDE;
593 static Shell* instance_;
595 // If set before the Shell is initialized, the mouse cursor will be hidden
596 // when the screen is initially created.
597 static bool initially_hide_cursor_;
599 // When no explicit target display/RootWindow is given, new windows are
600 // created on |scoped_target_root_window_| , unless NULL in
601 // which case they are created on |target_root_window_|.
602 // |target_root_window_| never becomes NULL during the session.
603 aura::Window* target_root_window_;
604 aura::Window* scoped_target_root_window_;
606 // The CompoundEventFilter owned by aura::Env object.
607 scoped_ptr<views::corewm::CompoundEventFilter> env_filter_;
609 std::vector<WindowAndBoundsPair> to_restore_;
611 scoped_ptr<UserMetricsRecorder> user_metrics_recorder_;
612 scoped_ptr<keyboard::KeyboardController> keyboard_controller_;
613 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_;
614 scoped_ptr<AcceleratorController> accelerator_controller_;
615 scoped_ptr<ShellDelegate> delegate_;
616 scoped_ptr<SystemTrayDelegate> system_tray_delegate_;
617 scoped_ptr<SystemTrayNotifier> system_tray_notifier_;
618 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
619 scoped_ptr<CapsLockDelegate> caps_lock_delegate_;
620 scoped_ptr<SessionStateDelegate> session_state_delegate_;
621 scoped_ptr<AccessibilityDelegate> accessibility_delegate_;
622 scoped_ptr<NewWindowDelegate> new_window_delegate_;
623 scoped_ptr<MediaDelegate> media_delegate_;
624 scoped_ptr<ShelfDelegate> shelf_delegate_;
625 scoped_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_;
626 scoped_ptr<internal::ShelfWindowWatcher> shelf_window_watcher_;
628 scoped_ptr<ShelfModel> shelf_model_;
629 scoped_ptr<WindowPositioner> window_positioner_;
631 scoped_ptr<internal::AppListController> app_list_controller_;
633 scoped_ptr<internal::DragDropController> drag_drop_controller_;
634 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_;
635 scoped_ptr<views::corewm::ShadowController> shadow_controller_;
636 scoped_ptr<views::corewm::VisibilityController> visibility_controller_;
637 scoped_ptr<views::corewm::WindowModalityController>
638 window_modality_controller_;
639 scoped_ptr<views::corewm::TooltipController> tooltip_controller_;
640 scoped_ptr<DesktopBackgroundController> desktop_background_controller_;
641 scoped_ptr<PowerButtonController> power_button_controller_;
642 scoped_ptr<LockStateController> lock_state_controller_;
643 scoped_ptr<MruWindowTracker> mru_window_tracker_;
644 scoped_ptr<UserActivityDetector> user_activity_detector_;
645 scoped_ptr<VideoDetector> video_detector_;
646 scoped_ptr<WindowCycleController> window_cycle_controller_;
647 scoped_ptr<WindowSelectorController> window_selector_controller_;
648 scoped_ptr<internal::FocusCycler> focus_cycler_;
649 scoped_ptr<DisplayController> display_controller_;
650 scoped_ptr<HighContrastController> high_contrast_controller_;
651 scoped_ptr<MagnificationController> magnification_controller_;
652 scoped_ptr<PartialMagnificationController> partial_magnification_controller_;
653 scoped_ptr<AutoclickController> autoclick_controller_;
654 scoped_ptr<aura::client::FocusClient> focus_client_;
655 scoped_ptr<aura::client::UserActionClient> user_action_client_;
656 aura::client::ActivationClient* activation_client_;
657 scoped_ptr<internal::MouseCursorEventFilter> mouse_cursor_filter_;
658 scoped_ptr<internal::ScreenPositionController> screen_position_controller_;
659 scoped_ptr<internal::SystemModalContainerEventFilter> modality_filter_;
660 scoped_ptr<internal::EventClientImpl> event_client_;
661 scoped_ptr<internal::EventTransformationHandler>
662 event_transformation_handler_;
663 scoped_ptr<WindowTreeHostFactory> window_tree_host_factory_;
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 // The maximized window manager (if enabled).
692 scoped_ptr<internal::MaximizeModeWindowManager> maximize_mode_window_manager_;
694 #if defined(OS_CHROMEOS)
695 scoped_ptr<internal::PowerEventObserver> power_event_observer_;
696 scoped_ptr<internal::UserActivityNotifier> user_activity_notifier_;
697 scoped_ptr<internal::VideoActivityNotifier> video_activity_notifier_;
698 scoped_ptr<StickyKeysController> sticky_keys_controller_;
699 scoped_ptr<internal::ResolutionNotificationController>
700 resolution_notification_controller_;
701 #if defined(USE_X11)
702 // Controls video output device state.
703 scoped_ptr<chromeos::OutputConfigurator> output_configurator_;
704 scoped_ptr<internal::OutputConfiguratorAnimation>
705 output_configurator_animation_;
706 scoped_ptr<internal::DisplayErrorObserver> display_error_observer_;
707 scoped_ptr<internal::ProjectingObserver> projecting_observer_;
709 // Listens for output changes and updates the display manager.
710 scoped_ptr<internal::DisplayChangeObserver> display_change_observer_;
712 scoped_ptr<ui::EventHandler> magnifier_key_scroll_handler_;
713 scoped_ptr<ui::EventHandler> speech_feedback_handler_;
714 #endif // defined(USE_X11)
715 #endif // defined(OS_CHROMEOS)
717 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
718 // pointer to vend to test code.
719 AshNativeCursorManager* native_cursor_manager_;
720 views::corewm::CursorManager cursor_manager_;
722 ObserverList<ShellObserver> observers_;
724 // For testing only: simulate that a modal window is open
725 bool simulate_modal_window_open_for_testing_;
727 bool is_touch_hud_projection_enabled_;
729 // Injected content::GPUDataManager support.
730 scoped_ptr<GPUSupport> gpu_support_;
732 DISALLOW_COPY_AND_ASSIGN(Shell);
735 } // namespace ash
737 #endif // ASH_SHELL_H_