| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class ImmersiveFullscreenController; | 53 class ImmersiveFullscreenController; |
| 54 class KeyEventWatcher; | 54 class KeyEventWatcher; |
| 55 class KeyboardBrightnessControlDelegate; | 55 class KeyboardBrightnessControlDelegate; |
| 56 class KeyboardUI; | 56 class KeyboardUI; |
| 57 class MaximizeModeController; | 57 class MaximizeModeController; |
| 58 class MruWindowTracker; | 58 class MruWindowTracker; |
| 59 class NewWindowDelegate; | 59 class NewWindowDelegate; |
| 60 class PaletteDelegate; | 60 class PaletteDelegate; |
| 61 class ScopedDisableInternalMouseAndKeyboard; | 61 class ScopedDisableInternalMouseAndKeyboard; |
| 62 class SessionStateDelegate; | 62 class SessionStateDelegate; |
| 63 class ShelfController; |
| 63 class ShelfDelegate; | 64 class ShelfDelegate; |
| 64 class ShelfModel; | 65 class ShelfModel; |
| 65 class ShelfWindowWatcher; | 66 class ShelfWindowWatcher; |
| 66 class ShellDelegate; | 67 class ShellDelegate; |
| 67 class ShellObserver; | 68 class ShellObserver; |
| 68 class SystemTrayDelegate; | 69 class SystemTrayDelegate; |
| 69 class SystemTrayController; | 70 class SystemTrayController; |
| 70 class SystemTrayNotifier; | 71 class SystemTrayNotifier; |
| 71 class ToastManager; | 72 class ToastManager; |
| 72 class WallpaperController; | 73 class WallpaperController; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 return new_window_delegate_.get(); | 140 return new_window_delegate_.get(); |
| 140 } | 141 } |
| 141 | 142 |
| 142 // NOTE: Prefer ScopedRootWindowForNewWindows when setting temporarily. | 143 // NOTE: Prefer ScopedRootWindowForNewWindows when setting temporarily. |
| 143 void set_root_window_for_new_windows(WmWindow* root) { | 144 void set_root_window_for_new_windows(WmWindow* root) { |
| 144 root_window_for_new_windows_ = root; | 145 root_window_for_new_windows_ = root; |
| 145 } | 146 } |
| 146 | 147 |
| 147 PaletteDelegate* palette_delegate() { return palette_delegate_.get(); } | 148 PaletteDelegate* palette_delegate() { return palette_delegate_.get(); } |
| 148 | 149 |
| 150 ShelfController* shelf_controller() { return shelf_controller_.get(); } |
| 151 |
| 149 ShelfDelegate* shelf_delegate() { return shelf_delegate_.get(); } | 152 ShelfDelegate* shelf_delegate() { return shelf_delegate_.get(); } |
| 150 | 153 |
| 151 ShelfModel* shelf_model() { return shelf_model_.get(); } | 154 ShelfModel* shelf_model(); |
| 152 | 155 |
| 153 SystemTrayController* system_tray_controller() { | 156 SystemTrayController* system_tray_controller() { |
| 154 return system_tray_controller_.get(); | 157 return system_tray_controller_.get(); |
| 155 } | 158 } |
| 156 | 159 |
| 157 SystemTrayNotifier* system_tray_notifier() { | 160 SystemTrayNotifier* system_tray_notifier() { |
| 158 return system_tray_notifier_.get(); | 161 return system_tray_notifier_.get(); |
| 159 } | 162 } |
| 160 | 163 |
| 161 SystemTrayDelegate* system_tray_delegate() { | 164 SystemTrayDelegate* system_tray_delegate() { |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 std::unique_ptr<FocusCycler> focus_cycler_; | 469 std::unique_ptr<FocusCycler> focus_cycler_; |
| 467 std::unique_ptr<ImmersiveContextAsh> immersive_context_; | 470 std::unique_ptr<ImmersiveContextAsh> immersive_context_; |
| 468 std::unique_ptr<KeyboardBrightnessControlDelegate> | 471 std::unique_ptr<KeyboardBrightnessControlDelegate> |
| 469 keyboard_brightness_control_delegate_; | 472 keyboard_brightness_control_delegate_; |
| 470 std::unique_ptr<KeyboardUI> keyboard_ui_; | 473 std::unique_ptr<KeyboardUI> keyboard_ui_; |
| 471 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; | 474 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; |
| 472 std::unique_ptr<MediaDelegate> media_delegate_; | 475 std::unique_ptr<MediaDelegate> media_delegate_; |
| 473 std::unique_ptr<MruWindowTracker> mru_window_tracker_; | 476 std::unique_ptr<MruWindowTracker> mru_window_tracker_; |
| 474 std::unique_ptr<NewWindowDelegate> new_window_delegate_; | 477 std::unique_ptr<NewWindowDelegate> new_window_delegate_; |
| 475 std::unique_ptr<PaletteDelegate> palette_delegate_; | 478 std::unique_ptr<PaletteDelegate> palette_delegate_; |
| 479 std::unique_ptr<ShelfController> shelf_controller_; |
| 476 std::unique_ptr<ShelfDelegate> shelf_delegate_; | 480 std::unique_ptr<ShelfDelegate> shelf_delegate_; |
| 477 std::unique_ptr<ShelfModel> shelf_model_; | |
| 478 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; | 481 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; |
| 479 std::unique_ptr<SystemTrayController> system_tray_controller_; | 482 std::unique_ptr<SystemTrayController> system_tray_controller_; |
| 480 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; | 483 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; |
| 481 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; | 484 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; |
| 482 std::unique_ptr<ToastManager> toast_manager_; | 485 std::unique_ptr<ToastManager> toast_manager_; |
| 483 std::unique_ptr<WallpaperController> wallpaper_controller_; | 486 std::unique_ptr<WallpaperController> wallpaper_controller_; |
| 484 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_; | 487 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_; |
| 485 std::unique_ptr<WindowCycleController> window_cycle_controller_; | 488 std::unique_ptr<WindowCycleController> window_cycle_controller_; |
| 486 std::unique_ptr<WindowSelectorController> window_selector_controller_; | 489 std::unique_ptr<WindowSelectorController> window_selector_controller_; |
| 487 | 490 |
| 488 base::ObserverList<LockStateObserver> lock_state_observers_; | 491 base::ObserverList<LockStateObserver> lock_state_observers_; |
| 489 | 492 |
| 490 // See comment for GetRootWindowForNewWindows(). | 493 // See comment for GetRootWindowForNewWindows(). |
| 491 WmWindow* root_window_for_new_windows_ = nullptr; | 494 WmWindow* root_window_for_new_windows_ = nullptr; |
| 492 WmWindow* scoped_root_window_for_new_windows_ = nullptr; | 495 WmWindow* scoped_root_window_for_new_windows_ = nullptr; |
| 493 | 496 |
| 494 bool simulate_modal_window_open_for_testing_ = false; | 497 bool simulate_modal_window_open_for_testing_ = false; |
| 495 | 498 |
| 496 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 499 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 497 | 500 |
| 498 #if defined(OS_CHROMEOS) | 501 #if defined(OS_CHROMEOS) |
| 499 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 502 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 500 #endif | 503 #endif |
| 501 }; | 504 }; |
| 502 | 505 |
| 503 } // namespace ash | 506 } // namespace ash |
| 504 | 507 |
| 505 #endif // ASH_COMMON_WM_SHELL_H_ | 508 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |