Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: ash/shell.h

Issue 2738133003: Promotes a handful of members from WmShell to Shell (Closed)
Patch Set: forward declare Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 17 matching lines...) Expand all
28 class RootWindow; 28 class RootWindow;
29 class UserActivityForwarder; 29 class UserActivityForwarder;
30 class Window; 30 class Window;
31 class WindowManagerClient; 31 class WindowManagerClient;
32 class WindowTreeClient; 32 class WindowTreeClient;
33 namespace client { 33 namespace client {
34 class ActivationClient; 34 class ActivationClient;
35 } 35 }
36 } 36 }
37 37
38 namespace base {
39 class SequencedWorkerPool;
40 }
41
38 namespace chromeos { 42 namespace chromeos {
39 class AudioA11yController; 43 class AudioA11yController;
40 } 44 }
41 45
42 namespace display { 46 namespace display {
43 class DisplayChangeObserver; 47 class DisplayChangeObserver;
44 class DisplayConfigurator; 48 class DisplayConfigurator;
45 class DisplayManager; 49 class DisplayManager;
46 } 50 }
47 51
48 namespace gfx { 52 namespace gfx {
49 class Insets; 53 class Insets;
50 } 54 }
51 55
52 namespace ui { 56 namespace ui {
53 class UserActivityDetector; 57 class UserActivityDetector;
54 class UserActivityPowerManagerNotifier; 58 class UserActivityPowerManagerNotifier;
59 namespace devtools {
60 class UiDevToolsServer;
61 }
55 } 62 }
56 63
57 namespace views { 64 namespace views {
58 class NonClientFrameView; 65 class NonClientFrameView;
59 class Widget; 66 class Widget;
60 namespace corewm { 67 namespace corewm {
61 class TooltipController; 68 class TooltipController;
62 } 69 }
63 } 70 }
64 71
65 namespace wm { 72 namespace wm {
66 class AcceleratorFilter; 73 class AcceleratorFilter;
67 class CompoundEventFilter; 74 class CompoundEventFilter;
68 class FocusController; 75 class FocusController;
69 class ShadowController; 76 class ShadowController;
70 class VisibilityController; 77 class VisibilityController;
71 class WindowModalityController; 78 class WindowModalityController;
72 } 79 }
73 80
74 namespace ash { 81 namespace ash {
75 82
76 class AcceleratorControllerDelegateAura; 83 class AcceleratorControllerDelegateAura;
84 class AccessibilityDelegate;
77 class AppListDelegateImpl; 85 class AppListDelegateImpl;
78 class AshNativeCursorManager; 86 class AshNativeCursorManager;
87 class AshTouchTransformController;
79 class AutoclickController; 88 class AutoclickController;
80 class BluetoothNotificationController; 89 class BluetoothNotificationController;
81 class DisplayColorManager; 90 class DisplayColorManager;
82 class DisplayConfigurationController; 91 class DisplayConfigurationController;
83 class DisplayErrorObserver; 92 class DisplayErrorObserver;
84 class DragDropController; 93 class DragDropController;
85 class EventClientImpl; 94 class EventClientImpl;
86 class EventTransformationHandler; 95 class EventTransformationHandler;
87 class FirstRunHelper; 96 class FirstRunHelper;
88 class GPUSupport; 97 class GPUSupport;
89 class HighContrastController; 98 class HighContrastController;
90 class ImmersiveHandlerFactoryAsh; 99 class ImmersiveHandlerFactoryAsh;
91 class LaserPointerController; 100 class LaserPointerController;
92 class LinkHandlerModelFactory; 101 class LinkHandlerModelFactory;
93 class LockStateController; 102 class LockStateController;
94 enum class LoginStatus; 103 enum class LoginStatus;
95 class MagnificationController; 104 class MagnificationController;
96 class MouseCursorEventFilter; 105 class MouseCursorEventFilter;
97 class OverlayEventFilter; 106 class OverlayEventFilter;
107 class PaletteDelegate;
98 class PartialMagnificationController; 108 class PartialMagnificationController;
99 class PowerButtonController; 109 class PowerButtonController;
100 class PowerEventObserver; 110 class PowerEventObserver;
101 class ProjectingObserver; 111 class ProjectingObserver;
102 class ResizeShadowController; 112 class ResizeShadowController;
103 class ResolutionNotificationController; 113 class ResolutionNotificationController;
104 class RootWindowController; 114 class RootWindowController;
105 class ScopedOverviewAnimationSettingsFactoryAura; 115 class ScopedOverviewAnimationSettingsFactoryAura;
106 class ScreenOrientationController; 116 class ScreenOrientationController;
107 class ScreenshotController; 117 class ScreenshotController;
108 class ScreenPinningController; 118 class ScreenPinningController;
109 class ScreenPositionController; 119 class ScreenPositionController;
110 class SessionStateDelegate; 120 class SessionStateDelegate;
111 struct ShellInitParams; 121 struct ShellInitParams;
112 class ShellObserver; 122 class ShellObserver;
113 class ShutdownObserver; 123 class ShutdownObserver;
114 class SmsObserver; 124 class SmsObserver;
115 class StickyKeysController; 125 class StickyKeysController;
116 class SystemGestureEventFilter; 126 class SystemGestureEventFilter;
117 class SystemModalContainerEventFilter; 127 class SystemModalContainerEventFilter;
118 class SystemTray; 128 class SystemTray;
119 class ToplevelWindowEventHandler; 129 class ToplevelWindowEventHandler;
120 class AshTouchTransformController;
121 class ScreenLayoutObserver; 130 class ScreenLayoutObserver;
131 class ToastManager;
122 class VirtualKeyboardController; 132 class VirtualKeyboardController;
123 class VideoActivityNotifier; 133 class VideoActivityNotifier;
124 class VideoDetector; 134 class VideoDetector;
135 class WallpaperController;
125 class WebNotificationTray; 136 class WebNotificationTray;
126 class WindowPositioner; 137 class WindowPositioner;
127 class WindowTreeHostManager; 138 class WindowTreeHostManager;
128 class WmShell; 139 class WmShell;
129 class WmWindow; 140 class WmWindow;
130 141
131 namespace shell { 142 namespace shell {
132 class WindowWatcher; 143 class WindowWatcher;
133 } 144 }
134 145
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // Test if MaximizeModeWindowManager is not enabled, and if 256 // Test if MaximizeModeWindowManager is not enabled, and if
246 // MaximizeModeController is not currently setting a display rotation. Or if 257 // MaximizeModeController is not currently setting a display rotation. Or if
247 // the |resolution_notification_controller_| is not showing its confirmation 258 // the |resolution_notification_controller_| is not showing its confirmation
248 // dialog. If true then changes to display settings can be saved. 259 // dialog. If true then changes to display settings can be saved.
249 bool ShouldSaveDisplaySettings(); 260 bool ShouldSaveDisplaySettings();
250 261
251 AcceleratorControllerDelegateAura* accelerator_controller_delegate() { 262 AcceleratorControllerDelegateAura* accelerator_controller_delegate() {
252 return accelerator_controller_delegate_.get(); 263 return accelerator_controller_delegate_.get();
253 } 264 }
254 265
266 AccessibilityDelegate* accessibility_delegate() {
267 return accessibility_delegate_.get();
268 }
269 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool() {
270 return blocking_pool_;
271 }
255 display::DisplayManager* display_manager() { return display_manager_.get(); } 272 display::DisplayManager* display_manager() { return display_manager_.get(); }
256 DisplayConfigurationController* display_configuration_controller() { 273 DisplayConfigurationController* display_configuration_controller() {
257 return display_configuration_controller_.get(); 274 return display_configuration_controller_.get();
258 } 275 }
259 ::wm::CompoundEventFilter* env_filter() { return env_filter_.get(); } 276 ::wm::CompoundEventFilter* env_filter() { return env_filter_.get(); }
260 views::corewm::TooltipController* tooltip_controller() { 277 views::corewm::TooltipController* tooltip_controller() {
261 return tooltip_controller_.get(); 278 return tooltip_controller_.get();
262 } 279 }
263 OverlayEventFilter* overlay_filter() { return overlay_filter_.get(); } 280 OverlayEventFilter* overlay_filter() { return overlay_filter_.get(); }
264 LinkHandlerModelFactory* link_handler_model_factory() { 281 LinkHandlerModelFactory* link_handler_model_factory() {
265 return link_handler_model_factory_; 282 return link_handler_model_factory_;
266 } 283 }
267 void set_link_handler_model_factory( 284 void set_link_handler_model_factory(
268 LinkHandlerModelFactory* link_handler_model_factory) { 285 LinkHandlerModelFactory* link_handler_model_factory) {
269 link_handler_model_factory_ = link_handler_model_factory; 286 link_handler_model_factory_ = link_handler_model_factory;
270 } 287 }
271 PowerButtonController* power_button_controller() { 288 PowerButtonController* power_button_controller() {
272 return power_button_controller_.get(); 289 return power_button_controller_.get();
273 } 290 }
274 LockStateController* lock_state_controller() { 291 LockStateController* lock_state_controller() {
275 return lock_state_controller_.get(); 292 return lock_state_controller_.get();
276 } 293 }
294 PaletteDelegate* palette_delegate() { return palette_delegate_.get(); }
277 VideoDetector* video_detector() { return video_detector_.get(); } 295 VideoDetector* video_detector() { return video_detector_.get(); }
296 WallpaperController* wallpaper_controller() {
297 return wallpaper_controller_.get();
298 }
278 WindowTreeHostManager* window_tree_host_manager() { 299 WindowTreeHostManager* window_tree_host_manager() {
279 return window_tree_host_manager_.get(); 300 return window_tree_host_manager_.get();
280 } 301 }
281 PowerEventObserver* power_event_observer() { 302 PowerEventObserver* power_event_observer() {
282 return power_event_observer_.get(); 303 return power_event_observer_.get();
283 } 304 }
284 AshTouchTransformController* touch_transformer_controller() { 305 AshTouchTransformController* touch_transformer_controller() {
285 return touch_transformer_controller_.get(); 306 return touch_transformer_controller_.get();
286 } 307 }
287 LaserPointerController* laser_pointer_controller() { 308 LaserPointerController* laser_pointer_controller() {
(...skipping 22 matching lines...) Expand all
310 } 331 }
311 332
312 MagnificationController* magnification_controller() { 333 MagnificationController* magnification_controller() {
313 return magnification_controller_.get(); 334 return magnification_controller_.get();
314 } 335 }
315 336
316 AutoclickController* autoclick_controller() { 337 AutoclickController* autoclick_controller() {
317 return autoclick_controller_.get(); 338 return autoclick_controller_.get();
318 } 339 }
319 340
341 ToastManager* toast_manager() { return toast_manager_.get(); }
342
320 aura::client::ActivationClient* activation_client(); 343 aura::client::ActivationClient* activation_client();
321 344
322 // Force the shelf to query for it's current visibility state. 345 // Force the shelf to query for it's current visibility state.
323 // TODO(jamescook): Move to Shelf. 346 // TODO(jamescook): Move to Shelf.
324 void UpdateShelfVisibility(); 347 void UpdateShelfVisibility();
325 348
326 // Returns WebNotificationTray on the primary root window. 349 // Returns WebNotificationTray on the primary root window.
327 WebNotificationTray* GetWebNotificationTray(); 350 WebNotificationTray* GetWebNotificationTray();
328 351
329 // Does the primary display have status area? 352 // Does the primary display have status area?
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 531
509 // The CompoundEventFilter owned by aura::Env object. 532 // The CompoundEventFilter owned by aura::Env object.
510 std::unique_ptr<::wm::CompoundEventFilter> env_filter_; 533 std::unique_ptr<::wm::CompoundEventFilter> env_filter_;
511 534
512 std::unique_ptr<UserMetricsRecorder> user_metrics_recorder_; 535 std::unique_ptr<UserMetricsRecorder> user_metrics_recorder_;
513 std::unique_ptr<AcceleratorControllerDelegateAura> 536 std::unique_ptr<AcceleratorControllerDelegateAura>
514 accelerator_controller_delegate_; 537 accelerator_controller_delegate_;
515 std::unique_ptr<SessionStateDelegate> session_state_delegate_; 538 std::unique_ptr<SessionStateDelegate> session_state_delegate_;
516 std::unique_ptr<WindowPositioner> window_positioner_; 539 std::unique_ptr<WindowPositioner> window_positioner_;
517 540
541 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_;
msw 2017/03/09 21:57:20 aside: the abc ordering in this file is all kinds
542 std::unique_ptr<PaletteDelegate> palette_delegate_;
518 std::unique_ptr<DragDropController> drag_drop_controller_; 543 std::unique_ptr<DragDropController> drag_drop_controller_;
519 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; 544 std::unique_ptr<ResizeShadowController> resize_shadow_controller_;
545 std::unique_ptr<ToastManager> toast_manager_;
546 std::unique_ptr<WallpaperController> wallpaper_controller_;
520 std::unique_ptr<::wm::ShadowController> shadow_controller_; 547 std::unique_ptr<::wm::ShadowController> shadow_controller_;
521 std::unique_ptr<::wm::VisibilityController> visibility_controller_; 548 std::unique_ptr<::wm::VisibilityController> visibility_controller_;
522 std::unique_ptr<::wm::WindowModalityController> window_modality_controller_; 549 std::unique_ptr<::wm::WindowModalityController> window_modality_controller_;
550 std::unique_ptr<ui::devtools::UiDevToolsServer> devtools_server_;
523 std::unique_ptr<views::corewm::TooltipController> tooltip_controller_; 551 std::unique_ptr<views::corewm::TooltipController> tooltip_controller_;
524 LinkHandlerModelFactory* link_handler_model_factory_; 552 LinkHandlerModelFactory* link_handler_model_factory_;
525 std::unique_ptr<PowerButtonController> power_button_controller_; 553 std::unique_ptr<PowerButtonController> power_button_controller_;
526 std::unique_ptr<LockStateController> lock_state_controller_; 554 std::unique_ptr<LockStateController> lock_state_controller_;
527 std::unique_ptr<ui::UserActivityDetector> user_activity_detector_; 555 std::unique_ptr<ui::UserActivityDetector> user_activity_detector_;
528 std::unique_ptr<VideoDetector> video_detector_; 556 std::unique_ptr<VideoDetector> video_detector_;
529 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_; 557 std::unique_ptr<WindowTreeHostManager> window_tree_host_manager_;
530 std::unique_ptr<HighContrastController> high_contrast_controller_; 558 std::unique_ptr<HighContrastController> high_contrast_controller_;
531 std::unique_ptr<MagnificationController> magnification_controller_; 559 std::unique_ptr<MagnificationController> magnification_controller_;
532 std::unique_ptr<AutoclickController> autoclick_controller_; 560 std::unique_ptr<AutoclickController> autoclick_controller_;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 647
620 // Injected content::GPUDataManager support. 648 // Injected content::GPUDataManager support.
621 std::unique_ptr<GPUSupport> gpu_support_; 649 std::unique_ptr<GPUSupport> gpu_support_;
622 650
623 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_; 651 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_;
624 652
625 std::unique_ptr<AppListDelegateImpl> app_list_delegate_impl_; 653 std::unique_ptr<AppListDelegateImpl> app_list_delegate_impl_;
626 654
627 base::ObserverList<ShellObserver> shell_observers_; 655 base::ObserverList<ShellObserver> shell_observers_;
628 656
657 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
658
629 DISALLOW_COPY_AND_ASSIGN(Shell); 659 DISALLOW_COPY_AND_ASSIGN(Shell);
630 }; 660 };
631 661
632 } // namespace ash 662 } // namespace ash
633 663
634 #endif // ASH_SHELL_H_ 664 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/mus/context_menu_mus.cc ('k') | ash/shell.cc » ('j') | ash/test/shell_test_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698