OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 class NewWindowController; | 123 class NewWindowController; |
124 class OverlayEventFilter; | 124 class OverlayEventFilter; |
125 class PaletteDelegate; | 125 class PaletteDelegate; |
126 class PartialMagnificationController; | 126 class PartialMagnificationController; |
127 class PowerButtonController; | 127 class PowerButtonController; |
128 class PowerEventObserver; | 128 class PowerEventObserver; |
129 class ProjectingObserver; | 129 class ProjectingObserver; |
130 class ResizeShadowController; | 130 class ResizeShadowController; |
131 class ResolutionNotificationController; | 131 class ResolutionNotificationController; |
132 class RootWindowController; | 132 class RootWindowController; |
| 133 class ShellPort; |
133 class ScopedOverviewAnimationSettingsFactoryAura; | 134 class ScopedOverviewAnimationSettingsFactoryAura; |
134 class ScreenLayoutObserver; | 135 class ScreenLayoutObserver; |
135 class ScreenOrientationController; | 136 class ScreenOrientationController; |
136 class ScreenshotController; | 137 class ScreenshotController; |
137 class ScreenPinningController; | 138 class ScreenPinningController; |
138 class ScreenPositionController; | 139 class ScreenPositionController; |
139 class SessionController; | 140 class SessionController; |
140 class SessionStateDelegate; | 141 class SessionStateDelegate; |
141 class ShelfController; | 142 class ShelfController; |
142 class ShelfDelegate; | 143 class ShelfDelegate; |
(...skipping 19 matching lines...) Expand all Loading... |
162 class VideoActivityNotifier; | 163 class VideoActivityNotifier; |
163 class VideoDetector; | 164 class VideoDetector; |
164 class VpnList; | 165 class VpnList; |
165 class WallpaperController; | 166 class WallpaperController; |
166 class WallpaperDelegate; | 167 class WallpaperDelegate; |
167 class WebNotificationTray; | 168 class WebNotificationTray; |
168 class WindowCycleController; | 169 class WindowCycleController; |
169 class WindowPositioner; | 170 class WindowPositioner; |
170 class WindowSelectorController; | 171 class WindowSelectorController; |
171 class WindowTreeHostManager; | 172 class WindowTreeHostManager; |
172 class WmShell; | |
173 class WmWindow; | 173 class WmWindow; |
174 | 174 |
175 enum class Config; | 175 enum class Config; |
176 enum class LoginStatus; | 176 enum class LoginStatus; |
177 | 177 |
178 namespace shell { | 178 namespace shell { |
179 class WindowWatcher; | 179 class WindowWatcher; |
180 } | 180 } |
181 | 181 |
182 namespace test { | 182 namespace test { |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); | 591 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); |
592 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); | 592 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); |
593 friend class AcceleratorControllerTest; | 593 friend class AcceleratorControllerTest; |
594 friend class RootWindowController; | 594 friend class RootWindowController; |
595 friend class ScopedRootWindowForNewWindows; | 595 friend class ScopedRootWindowForNewWindows; |
596 friend class SmsObserverTest; | 596 friend class SmsObserverTest; |
597 friend class test::ShellTestApi; | 597 friend class test::ShellTestApi; |
598 friend class shell::WindowWatcher; | 598 friend class shell::WindowWatcher; |
599 | 599 |
600 Shell(std::unique_ptr<ShellDelegate> shell_delegate, | 600 Shell(std::unique_ptr<ShellDelegate> shell_delegate, |
601 std::unique_ptr<WmShell> wm_shell); | 601 std::unique_ptr<ShellPort> shell_port); |
602 ~Shell() override; | 602 ~Shell() override; |
603 | 603 |
604 void Init(const ShellInitParams& init_params); | 604 void Init(const ShellInitParams& init_params); |
605 | 605 |
606 // Initializes virtual keyboard controller. | 606 // Initializes virtual keyboard controller. |
607 void InitKeyboard(); | 607 void InitKeyboard(); |
608 | 608 |
609 // Initializes the root window so that it can host browser windows. | 609 // Initializes the root window so that it can host browser windows. |
610 void InitRootWindow(aura::Window* root_window); | 610 void InitRootWindow(aura::Window* root_window); |
611 | 611 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 // Only valid in mash, for classic ash this is null. | 644 // Only valid in mash, for classic ash this is null. |
645 static aura::WindowTreeClient* window_tree_client_; | 645 static aura::WindowTreeClient* window_tree_client_; |
646 static aura::WindowManagerClient* window_manager_client_; | 646 static aura::WindowManagerClient* window_manager_client_; |
647 | 647 |
648 // If set before the Shell is initialized, the mouse cursor will be hidden | 648 // If set before the Shell is initialized, the mouse cursor will be hidden |
649 // when the screen is initially created. | 649 // when the screen is initially created. |
650 static bool initially_hide_cursor_; | 650 static bool initially_hide_cursor_; |
651 | 651 |
652 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> | 652 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> |
653 scoped_overview_animation_settings_factory_; | 653 scoped_overview_animation_settings_factory_; |
654 std::unique_ptr<WmShell> wm_shell_; | 654 std::unique_ptr<ShellPort> shell_port_; |
655 | 655 |
656 // The CompoundEventFilter owned by aura::Env object. | 656 // The CompoundEventFilter owned by aura::Env object. |
657 std::unique_ptr<::wm::CompoundEventFilter> env_filter_; | 657 std::unique_ptr<::wm::CompoundEventFilter> env_filter_; |
658 | 658 |
659 std::unique_ptr<UserMetricsRecorder> user_metrics_recorder_; | 659 std::unique_ptr<UserMetricsRecorder> user_metrics_recorder_; |
660 std::unique_ptr<SessionStateDelegate> session_state_delegate_; | 660 std::unique_ptr<SessionStateDelegate> session_state_delegate_; |
661 std::unique_ptr<WindowPositioner> window_positioner_; | 661 std::unique_ptr<WindowPositioner> window_positioner_; |
662 | 662 |
663 std::unique_ptr<AcceleratorController> accelerator_controller_; | 663 std::unique_ptr<AcceleratorController> accelerator_controller_; |
664 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; | 664 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 base::ObserverList<ShellObserver> shell_observers_; | 807 base::ObserverList<ShellObserver> shell_observers_; |
808 | 808 |
809 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 809 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
810 | 810 |
811 DISALLOW_COPY_AND_ASSIGN(Shell); | 811 DISALLOW_COPY_AND_ASSIGN(Shell); |
812 }; | 812 }; |
813 | 813 |
814 } // namespace ash | 814 } // namespace ash |
815 | 815 |
816 #endif // ASH_SHELL_H_ | 816 #endif // ASH_SHELL_H_ |
OLD | NEW |