OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_SHELL_H_ | 5 #ifndef ASH_COMMON_WM_SHELL_H_ |
6 #define ASH_COMMON_WM_SHELL_H_ | 6 #define ASH_COMMON_WM_SHELL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 class ScopedDisableInternalMouseAndKeyboard; | 50 class ScopedDisableInternalMouseAndKeyboard; |
51 class SessionStateDelegate; | 51 class SessionStateDelegate; |
52 class ShelfDelegate; | 52 class ShelfDelegate; |
53 class ShelfModel; | 53 class ShelfModel; |
54 class ShelfWindowWatcher; | 54 class ShelfWindowWatcher; |
55 class ShellDelegate; | 55 class ShellDelegate; |
56 class ShellObserver; | 56 class ShellObserver; |
57 class SystemTrayDelegate; | 57 class SystemTrayDelegate; |
58 class SystemTrayNotifier; | 58 class SystemTrayNotifier; |
59 class ToastManager; | 59 class ToastManager; |
60 class WallpaperController; | |
60 class WallpaperDelegate; | 61 class WallpaperDelegate; |
61 class WindowCycleController; | 62 class WindowCycleController; |
62 class WindowCycleEventFilter; | 63 class WindowCycleEventFilter; |
63 class WindowResizer; | 64 class WindowResizer; |
64 class WindowSelectorController; | 65 class WindowSelectorController; |
65 class WmActivationObserver; | 66 class WmActivationObserver; |
66 class WmDisplayObserver; | 67 class WmDisplayObserver; |
67 class WmWindow; | 68 class WmWindow; |
68 class WorkspaceEventHandler; | 69 class WorkspaceEventHandler; |
69 | 70 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
138 SystemTrayNotifier* system_tray_notifier() { | 139 SystemTrayNotifier* system_tray_notifier() { |
139 return system_tray_notifier_.get(); | 140 return system_tray_notifier_.get(); |
140 } | 141 } |
141 | 142 |
142 SystemTrayDelegate* system_tray_delegate() { | 143 SystemTrayDelegate* system_tray_delegate() { |
143 return system_tray_delegate_.get(); | 144 return system_tray_delegate_.get(); |
144 } | 145 } |
145 | 146 |
146 ToastManager* toast_manager() { return toast_manager_.get(); } | 147 ToastManager* toast_manager() { return toast_manager_.get(); } |
147 | 148 |
149 WallpaperController* wallpaper_controller() { | |
150 return wallpaper_controller_.get(); | |
151 } | |
152 | |
148 WallpaperDelegate* wallpaper_delegate() { return wallpaper_delegate_.get(); } | 153 WallpaperDelegate* wallpaper_delegate() { return wallpaper_delegate_.get(); } |
149 | 154 |
150 WindowCycleController* window_cycle_controller() { | 155 WindowCycleController* window_cycle_controller() { |
151 return window_cycle_controller_.get(); | 156 return window_cycle_controller_.get(); |
152 } | 157 } |
153 | 158 |
154 WindowSelectorController* window_selector_controller() { | 159 WindowSelectorController* window_selector_controller() { |
155 return window_selector_controller_.get(); | 160 return window_selector_controller_.get(); |
156 } | 161 } |
157 | 162 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
345 void AddLockStateObserver(LockStateObserver* observer); | 350 void AddLockStateObserver(LockStateObserver* observer); |
346 void RemoveLockStateObserver(LockStateObserver* observer); | 351 void RemoveLockStateObserver(LockStateObserver* observer); |
347 | 352 |
348 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); | 353 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); |
349 void SetPaletteDelegateForTesting( | 354 void SetPaletteDelegateForTesting( |
350 std::unique_ptr<PaletteDelegate> palette_delegate); | 355 std::unique_ptr<PaletteDelegate> palette_delegate); |
351 | 356 |
352 // True if any touch points are down. | 357 // True if any touch points are down. |
353 virtual bool IsTouchDown() = 0; | 358 virtual bool IsTouchDown() = 0; |
354 | 359 |
360 virtual base::SequencedWorkerPool* GetBlockingPool() = 0; | |
James Cook
2016/09/07 21:27:05
nit: forward declare base::SequencedWorkerPool (no
msw
2016/09/07 22:28:24
Done.
| |
361 | |
355 #if defined(OS_CHROMEOS) | 362 #if defined(OS_CHROMEOS) |
356 LogoutConfirmationController* logout_confirmation_controller() { | 363 LogoutConfirmationController* logout_confirmation_controller() { |
357 return logout_confirmation_controller_.get(); | 364 return logout_confirmation_controller_.get(); |
358 } | 365 } |
359 | 366 |
360 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. | 367 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. |
361 virtual void ToggleIgnoreExternalKeyboard() = 0; | 368 virtual void ToggleIgnoreExternalKeyboard() = 0; |
362 #endif | 369 #endif |
363 | 370 |
364 protected: | 371 protected: |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
413 std::unique_ptr<MediaDelegate> media_delegate_; | 420 std::unique_ptr<MediaDelegate> media_delegate_; |
414 std::unique_ptr<MruWindowTracker> mru_window_tracker_; | 421 std::unique_ptr<MruWindowTracker> mru_window_tracker_; |
415 std::unique_ptr<NewWindowDelegate> new_window_delegate_; | 422 std::unique_ptr<NewWindowDelegate> new_window_delegate_; |
416 std::unique_ptr<PaletteDelegate> palette_delegate_; | 423 std::unique_ptr<PaletteDelegate> palette_delegate_; |
417 std::unique_ptr<ShelfDelegate> shelf_delegate_; | 424 std::unique_ptr<ShelfDelegate> shelf_delegate_; |
418 std::unique_ptr<ShelfModel> shelf_model_; | 425 std::unique_ptr<ShelfModel> shelf_model_; |
419 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; | 426 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; |
420 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; | 427 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; |
421 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; | 428 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; |
422 std::unique_ptr<ToastManager> toast_manager_; | 429 std::unique_ptr<ToastManager> toast_manager_; |
430 std::unique_ptr<WallpaperController> wallpaper_controller_; | |
423 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_; | 431 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_; |
424 std::unique_ptr<WindowCycleController> window_cycle_controller_; | 432 std::unique_ptr<WindowCycleController> window_cycle_controller_; |
425 std::unique_ptr<WindowSelectorController> window_selector_controller_; | 433 std::unique_ptr<WindowSelectorController> window_selector_controller_; |
426 | 434 |
427 base::ObserverList<LockStateObserver> lock_state_observers_; | 435 base::ObserverList<LockStateObserver> lock_state_observers_; |
428 | 436 |
429 // See comment for GetRootWindowForNewWindows(). | 437 // See comment for GetRootWindowForNewWindows(). |
430 WmWindow* root_window_for_new_windows_ = nullptr; | 438 WmWindow* root_window_for_new_windows_ = nullptr; |
431 WmWindow* scoped_root_window_for_new_windows_ = nullptr; | 439 WmWindow* scoped_root_window_for_new_windows_ = nullptr; |
432 | 440 |
433 bool simulate_modal_window_open_for_testing_ = false; | 441 bool simulate_modal_window_open_for_testing_ = false; |
434 | 442 |
435 #if defined(OS_CHROMEOS) | 443 #if defined(OS_CHROMEOS) |
436 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 444 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
437 #endif | 445 #endif |
438 }; | 446 }; |
439 | 447 |
440 } // namespace ash | 448 } // namespace ash |
441 | 449 |
442 #endif // ASH_COMMON_WM_SHELL_H_ | 450 #endif // ASH_COMMON_WM_SHELL_H_ |
OLD | NEW |