| 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 20 matching lines...) Expand all Loading... |
| 31 class PointerWatcher; | 31 class PointerWatcher; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace ash { | 34 namespace ash { |
| 35 | 35 |
| 36 class AcceleratorController; | 36 class AcceleratorController; |
| 37 class AccessibilityDelegate; | 37 class AccessibilityDelegate; |
| 38 class BrightnessControlDelegate; | 38 class BrightnessControlDelegate; |
| 39 class DisplayInfo; | 39 class DisplayInfo; |
| 40 class FocusCycler; | 40 class FocusCycler; |
| 41 class ImmersiveContextAsh; |
| 42 class ImmersiveFullscreenController; |
| 41 class KeyboardBrightnessControlDelegate; | 43 class KeyboardBrightnessControlDelegate; |
| 42 class KeyboardUI; | 44 class KeyboardUI; |
| 43 class MaximizeModeController; | 45 class MaximizeModeController; |
| 44 class MruWindowTracker; | 46 class MruWindowTracker; |
| 45 class NewWindowDelegate; | 47 class NewWindowDelegate; |
| 46 class PaletteDelegate; | 48 class PaletteDelegate; |
| 47 class ScopedDisableInternalMouseAndKeyboard; | 49 class ScopedDisableInternalMouseAndKeyboard; |
| 48 class SessionStateDelegate; | 50 class SessionStateDelegate; |
| 49 class ShelfDelegate; | 51 class ShelfDelegate; |
| 50 class ShelfModel; | 52 class ShelfModel; |
| 51 class ShelfWindowWatcher; | 53 class ShelfWindowWatcher; |
| 52 class ShellDelegate; | 54 class ShellDelegate; |
| 53 class ShellObserver; | 55 class ShellObserver; |
| 54 class SystemTrayDelegate; | 56 class SystemTrayDelegate; |
| 55 class SystemTrayNotifier; | 57 class SystemTrayNotifier; |
| 56 class ToastManager; | 58 class ToastManager; |
| 57 class WindowCycleController; | 59 class WindowCycleController; |
| 58 class WindowCycleEventFilter; | 60 class WindowCycleEventFilter; |
| 59 class WindowResizer; | 61 class WindowResizer; |
| 60 class WindowSelectorController; | 62 class WindowSelectorController; |
| 61 class WmActivationObserver; | 63 class WmActivationObserver; |
| 62 class WmDisplayObserver; | 64 class WmDisplayObserver; |
| 63 class WmImmersiveFullscreenController; | |
| 64 class WmWindow; | 65 class WmWindow; |
| 65 | 66 |
| 66 enum class TaskSwitchSource; | 67 enum class TaskSwitchSource; |
| 67 | 68 |
| 68 namespace wm { | 69 namespace wm { |
| 69 class MaximizeModeEventHandler; | 70 class MaximizeModeEventHandler; |
| 70 class WindowState; | 71 class WindowState; |
| 71 } | 72 } |
| 72 | 73 |
| 73 #if defined(OS_CHROMEOS) | 74 #if defined(OS_CHROMEOS) |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 263 |
| 263 virtual std::unique_ptr<WindowCycleEventFilter> | 264 virtual std::unique_ptr<WindowCycleEventFilter> |
| 264 CreateWindowCycleEventFilter() = 0; | 265 CreateWindowCycleEventFilter() = 0; |
| 265 | 266 |
| 266 virtual std::unique_ptr<wm::MaximizeModeEventHandler> | 267 virtual std::unique_ptr<wm::MaximizeModeEventHandler> |
| 267 CreateMaximizeModeEventHandler() = 0; | 268 CreateMaximizeModeEventHandler() = 0; |
| 268 | 269 |
| 269 virtual std::unique_ptr<ScopedDisableInternalMouseAndKeyboard> | 270 virtual std::unique_ptr<ScopedDisableInternalMouseAndKeyboard> |
| 270 CreateScopedDisableInternalMouseAndKeyboard() = 0; | 271 CreateScopedDisableInternalMouseAndKeyboard() = 0; |
| 271 | 272 |
| 272 virtual std::unique_ptr<WmImmersiveFullscreenController> | 273 virtual std::unique_ptr<ImmersiveFullscreenController> |
| 273 CreateImmersiveFullscreenController() = 0; | 274 CreateImmersiveFullscreenController() = 0; |
| 274 | 275 |
| 275 void CreateShelfDelegate(); | 276 void CreateShelfDelegate(); |
| 276 | 277 |
| 277 // Called after maximize mode has started, windows might still animate though. | 278 // Called after maximize mode has started, windows might still animate though. |
| 278 void OnMaximizeModeStarted(); | 279 void OnMaximizeModeStarted(); |
| 279 | 280 |
| 280 // Called after maximize mode has ended, windows might still be returning to | 281 // Called after maximize mode has ended, windows might still be returning to |
| 281 // their original position. | 282 // their original position. |
| 282 void OnMaximizeModeEnded(); | 283 void OnMaximizeModeEnded(); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 384 |
| 384 static WmShell* instance_; | 385 static WmShell* instance_; |
| 385 | 386 |
| 386 base::ObserverList<ShellObserver> shell_observers_; | 387 base::ObserverList<ShellObserver> shell_observers_; |
| 387 std::unique_ptr<ShellDelegate> delegate_; | 388 std::unique_ptr<ShellDelegate> delegate_; |
| 388 | 389 |
| 389 std::unique_ptr<AcceleratorController> accelerator_controller_; | 390 std::unique_ptr<AcceleratorController> accelerator_controller_; |
| 390 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; | 391 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; |
| 391 std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_; | 392 std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_; |
| 392 std::unique_ptr<FocusCycler> focus_cycler_; | 393 std::unique_ptr<FocusCycler> focus_cycler_; |
| 394 std::unique_ptr<ImmersiveContextAsh> immersive_context_; |
| 393 std::unique_ptr<KeyboardBrightnessControlDelegate> | 395 std::unique_ptr<KeyboardBrightnessControlDelegate> |
| 394 keyboard_brightness_control_delegate_; | 396 keyboard_brightness_control_delegate_; |
| 395 std::unique_ptr<KeyboardUI> keyboard_ui_; | 397 std::unique_ptr<KeyboardUI> keyboard_ui_; |
| 396 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; | 398 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; |
| 397 std::unique_ptr<MediaDelegate> media_delegate_; | 399 std::unique_ptr<MediaDelegate> media_delegate_; |
| 398 std::unique_ptr<MruWindowTracker> mru_window_tracker_; | 400 std::unique_ptr<MruWindowTracker> mru_window_tracker_; |
| 399 std::unique_ptr<NewWindowDelegate> new_window_delegate_; | 401 std::unique_ptr<NewWindowDelegate> new_window_delegate_; |
| 400 std::unique_ptr<PaletteDelegate> palette_delegate_; | 402 std::unique_ptr<PaletteDelegate> palette_delegate_; |
| 401 std::unique_ptr<ShelfDelegate> shelf_delegate_; | 403 std::unique_ptr<ShelfDelegate> shelf_delegate_; |
| 402 std::unique_ptr<ShelfModel> shelf_model_; | 404 std::unique_ptr<ShelfModel> shelf_model_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 416 bool simulate_modal_window_open_for_testing_ = false; | 418 bool simulate_modal_window_open_for_testing_ = false; |
| 417 | 419 |
| 418 #if defined(OS_CHROMEOS) | 420 #if defined(OS_CHROMEOS) |
| 419 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 421 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 420 #endif | 422 #endif |
| 421 }; | 423 }; |
| 422 | 424 |
| 423 } // namespace ash | 425 } // namespace ash |
| 424 | 426 |
| 425 #endif // ASH_COMMON_WM_SHELL_H_ | 427 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |