| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 class ImmersiveHandlerFactoryAsh; | 114 class ImmersiveHandlerFactoryAsh; |
| 115 class KeyboardBrightnessControlDelegate; | 115 class KeyboardBrightnessControlDelegate; |
| 116 class KeyboardUI; | 116 class KeyboardUI; |
| 117 class LaserPointerController; | 117 class LaserPointerController; |
| 118 class LinkHandlerModelFactory; | 118 class LinkHandlerModelFactory; |
| 119 class LocaleNotificationController; | 119 class LocaleNotificationController; |
| 120 class LockStateController; | 120 class LockStateController; |
| 121 class LogoutConfirmationController; | 121 class LogoutConfirmationController; |
| 122 class LockScreenController; | 122 class LockScreenController; |
| 123 class MagnificationController; | 123 class MagnificationController; |
| 124 class MaximizeModeController; | 124 class TabletModeController; |
| 125 class MediaController; | 125 class MediaController; |
| 126 class MouseCursorEventFilter; | 126 class MouseCursorEventFilter; |
| 127 class MruWindowTracker; | 127 class MruWindowTracker; |
| 128 class NewWindowController; | 128 class NewWindowController; |
| 129 class NightLightController; | 129 class NightLightController; |
| 130 class OverlayEventFilter; | 130 class OverlayEventFilter; |
| 131 class PaletteDelegate; | 131 class PaletteDelegate; |
| 132 class PartialMagnificationController; | 132 class PartialMagnificationController; |
| 133 class PowerButtonController; | 133 class PowerButtonController; |
| 134 class PowerEventObserver; | 134 class PowerEventObserver; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // Called when a root window is created. | 287 // Called when a root window is created. |
| 288 void OnRootWindowAdded(WmWindow* root_window); | 288 void OnRootWindowAdded(WmWindow* root_window); |
| 289 | 289 |
| 290 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already | 290 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already |
| 291 // exists. | 291 // exists. |
| 292 void CreateKeyboard(); | 292 void CreateKeyboard(); |
| 293 | 293 |
| 294 // Deactivates the virtual keyboard. | 294 // Deactivates the virtual keyboard. |
| 295 void DeactivateKeyboard(); | 295 void DeactivateKeyboard(); |
| 296 | 296 |
| 297 // Test if MaximizeModeWindowManager is not enabled, and if | 297 // Test if TabletModeWindowManager is not enabled, and if |
| 298 // MaximizeModeController is not currently setting a display rotation. Or if | 298 // TabletModeController is not currently setting a display rotation. Or if |
| 299 // the |resolution_notification_controller_| is not showing its confirmation | 299 // the |resolution_notification_controller_| is not showing its confirmation |
| 300 // dialog. If true then changes to display settings can be saved. | 300 // dialog. If true then changes to display settings can be saved. |
| 301 bool ShouldSaveDisplaySettings(); | 301 bool ShouldSaveDisplaySettings(); |
| 302 | 302 |
| 303 AcceleratorController* accelerator_controller() { | 303 AcceleratorController* accelerator_controller() { |
| 304 return accelerator_controller_.get(); | 304 return accelerator_controller_.get(); |
| 305 } | 305 } |
| 306 AccessibilityDelegate* accessibility_delegate() { | 306 AccessibilityDelegate* accessibility_delegate() { |
| 307 return accessibility_delegate_.get(); | 307 return accessibility_delegate_.get(); |
| 308 } | 308 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 326 KeyboardUI* keyboard_ui() { return keyboard_ui_.get(); } | 326 KeyboardUI* keyboard_ui() { return keyboard_ui_.get(); } |
| 327 LocaleNotificationController* locale_notification_controller() { | 327 LocaleNotificationController* locale_notification_controller() { |
| 328 return locale_notification_controller_.get(); | 328 return locale_notification_controller_.get(); |
| 329 } | 329 } |
| 330 LogoutConfirmationController* logout_confirmation_controller() { | 330 LogoutConfirmationController* logout_confirmation_controller() { |
| 331 return logout_confirmation_controller_.get(); | 331 return logout_confirmation_controller_.get(); |
| 332 } | 332 } |
| 333 LockScreenController* lock_screen_controller() { | 333 LockScreenController* lock_screen_controller() { |
| 334 return lock_screen_controller_.get(); | 334 return lock_screen_controller_.get(); |
| 335 } | 335 } |
| 336 MaximizeModeController* maximize_mode_controller() { | 336 TabletModeController* tablet_mode_controller() { |
| 337 return maximize_mode_controller_.get(); | 337 return tablet_mode_controller_.get(); |
| 338 } | 338 } |
| 339 MediaController* media_controller() { return media_controller_.get(); } | 339 MediaController* media_controller() { return media_controller_.get(); } |
| 340 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); } | 340 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); } |
| 341 NewWindowController* new_window_controller() { | 341 NewWindowController* new_window_controller() { |
| 342 return new_window_controller_.get(); | 342 return new_window_controller_.get(); |
| 343 } | 343 } |
| 344 NightLightController* night_light_controller() { | 344 NightLightController* night_light_controller() { |
| 345 return night_light_controller_.get(); | 345 return night_light_controller_.get(); |
| 346 } | 346 } |
| 347 SessionController* session_controller() { return session_controller_.get(); } | 347 SessionController* session_controller() { return session_controller_.get(); } |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 // GetAppListTargetVisibility() when hiding animation is still in flight. | 560 // GetAppListTargetVisibility() when hiding animation is still in flight. |
| 561 bool IsAppListVisible() const; | 561 bool IsAppListVisible() const; |
| 562 | 562 |
| 563 // Returns app list target visibility. | 563 // Returns app list target visibility. |
| 564 bool GetAppListTargetVisibility() const; | 564 bool GetAppListTargetVisibility() const; |
| 565 | 565 |
| 566 // Called when the login status changes. | 566 // Called when the login status changes. |
| 567 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. | 567 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. |
| 568 void UpdateAfterLoginStatusChange(LoginStatus status); | 568 void UpdateAfterLoginStatusChange(LoginStatus status); |
| 569 | 569 |
| 570 // Notifies observers that maximize mode has started, windows might still | 570 // Notifies observers that tablet mode has started, windows might still |
| 571 // animate. | 571 // animate. |
| 572 void NotifyMaximizeModeStarted(); | 572 void NotifyTabletModeStarted(); |
| 573 | 573 |
| 574 // Notifies observers that maximize mode is about to end. | 574 // Notifies observers that tablet mode is about to end. |
| 575 void NotifyMaximizeModeEnding(); | 575 void NotifyTabletModeEnding(); |
| 576 | 576 |
| 577 // Notifies observers that maximize mode has ended, windows might still be | 577 // Notifies observers that tablet mode has ended, windows might still be |
| 578 // returning to their original position. | 578 // returning to their original position. |
| 579 void NotifyMaximizeModeEnded(); | 579 void NotifyTabletModeEnded(); |
| 580 | 580 |
| 581 // Notifies observers that overview mode is about to be started (before the | 581 // Notifies observers that overview mode is about to be started (before the |
| 582 // windows get re-arranged). | 582 // windows get re-arranged). |
| 583 void NotifyOverviewModeStarting(); | 583 void NotifyOverviewModeStarting(); |
| 584 | 584 |
| 585 // Notifies observers that overview mode has ended. | 585 // Notifies observers that overview mode has ended. |
| 586 void NotifyOverviewModeEnded(); | 586 void NotifyOverviewModeEnded(); |
| 587 | 587 |
| 588 // Notifies observers that fullscreen mode has changed for |root_window|. | 588 // Notifies observers that fullscreen mode has changed for |root_window|. |
| 589 void NotifyFullscreenStateChanged(bool is_fullscreen, WmWindow* root_window); | 589 void NotifyFullscreenStateChanged(bool is_fullscreen, WmWindow* root_window); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 std::unique_ptr<CastConfigController> cast_config_; | 691 std::unique_ptr<CastConfigController> cast_config_; |
| 692 std::unique_ptr<DragDropController> drag_drop_controller_; | 692 std::unique_ptr<DragDropController> drag_drop_controller_; |
| 693 std::unique_ptr<FocusCycler> focus_cycler_; | 693 std::unique_ptr<FocusCycler> focus_cycler_; |
| 694 std::unique_ptr<ImmersiveContextAsh> immersive_context_; | 694 std::unique_ptr<ImmersiveContextAsh> immersive_context_; |
| 695 std::unique_ptr<KeyboardBrightnessControlDelegate> | 695 std::unique_ptr<KeyboardBrightnessControlDelegate> |
| 696 keyboard_brightness_control_delegate_; | 696 keyboard_brightness_control_delegate_; |
| 697 std::unique_ptr<KeyboardUI> keyboard_ui_; | 697 std::unique_ptr<KeyboardUI> keyboard_ui_; |
| 698 std::unique_ptr<LocaleNotificationController> locale_notification_controller_; | 698 std::unique_ptr<LocaleNotificationController> locale_notification_controller_; |
| 699 std::unique_ptr<LockScreenController> lock_screen_controller_; | 699 std::unique_ptr<LockScreenController> lock_screen_controller_; |
| 700 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 700 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 701 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; | 701 std::unique_ptr<TabletModeController> tablet_mode_controller_; |
| 702 std::unique_ptr<MediaController> media_controller_; | 702 std::unique_ptr<MediaController> media_controller_; |
| 703 std::unique_ptr<MruWindowTracker> mru_window_tracker_; | 703 std::unique_ptr<MruWindowTracker> mru_window_tracker_; |
| 704 std::unique_ptr<NewWindowController> new_window_controller_; | 704 std::unique_ptr<NewWindowController> new_window_controller_; |
| 705 std::unique_ptr<PaletteDelegate> palette_delegate_; | 705 std::unique_ptr<PaletteDelegate> palette_delegate_; |
| 706 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; | 706 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; |
| 707 std::unique_ptr<SessionController> session_controller_; | 707 std::unique_ptr<SessionController> session_controller_; |
| 708 std::unique_ptr<NightLightController> night_light_controller_; | 708 std::unique_ptr<NightLightController> night_light_controller_; |
| 709 std::unique_ptr<ShelfController> shelf_controller_; | 709 std::unique_ptr<ShelfController> shelf_controller_; |
| 710 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; | 710 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; |
| 711 std::unique_ptr<ShellDelegate> shell_delegate_; | 711 std::unique_ptr<ShellDelegate> shell_delegate_; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 base::ObserverList<ShellObserver> shell_observers_; | 834 base::ObserverList<ShellObserver> shell_observers_; |
| 835 | 835 |
| 836 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 836 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 837 | 837 |
| 838 DISALLOW_COPY_AND_ASSIGN(Shell); | 838 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 839 }; | 839 }; |
| 840 | 840 |
| 841 } // namespace ash | 841 } // namespace ash |
| 842 | 842 |
| 843 #endif // ASH_SHELL_H_ | 843 #endif // ASH_SHELL_H_ |
| OLD | NEW |