| 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 <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 class Launcher; | 75 class Launcher; |
| 76 class LauncherDelegate; | 76 class LauncherDelegate; |
| 77 class LauncherModel; | 77 class LauncherModel; |
| 78 class MagnificationController; | 78 class MagnificationController; |
| 79 class NestedDispatcherController; | 79 class NestedDispatcherController; |
| 80 class PartialMagnificationController; | 80 class PartialMagnificationController; |
| 81 class PowerButtonController; | 81 class PowerButtonController; |
| 82 class RootWindowHostFactory; | 82 class RootWindowHostFactory; |
| 83 class ScreenAsh; | 83 class ScreenAsh; |
| 84 class SessionStateController; | 84 class SessionStateController; |
| 85 class SessionStateDelegate; |
| 85 class ShellDelegate; | 86 class ShellDelegate; |
| 86 class ShellObserver; | 87 class ShellObserver; |
| 87 class SystemTray; | 88 class SystemTray; |
| 88 class SystemTrayDelegate; | 89 class SystemTrayDelegate; |
| 89 class SystemTrayNotifier; | 90 class SystemTrayNotifier; |
| 90 class UserActivityDetector; | 91 class UserActivityDetector; |
| 91 class UserWallpaperDelegate; | 92 class UserWallpaperDelegate; |
| 92 class VideoDetector; | 93 class VideoDetector; |
| 93 class WebNotificationTray; | 94 class WebNotificationTray; |
| 94 class WindowCycleController; | 95 class WindowCycleController; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // list should be shown. If this is NULL, the active root window | 211 // list should be shown. If this is NULL, the active root window |
| 211 // will be used. | 212 // will be used. |
| 212 void ToggleAppList(aura::Window* anchor); | 213 void ToggleAppList(aura::Window* anchor); |
| 213 | 214 |
| 214 // Returns app list target visibility. | 215 // Returns app list target visibility. |
| 215 bool GetAppListTargetVisibility() const; | 216 bool GetAppListTargetVisibility() const; |
| 216 | 217 |
| 217 // Returns app list window or NULL if it is not visible. | 218 // Returns app list window or NULL if it is not visible. |
| 218 aura::Window* GetAppListWindow(); | 219 aura::Window* GetAppListWindow(); |
| 219 | 220 |
| 220 // Returns true if a user is logged in whose session can be locked (i.e. the | |
| 221 // user has a password with which to unlock the session). | |
| 222 bool CanLockScreen(); | |
| 223 | |
| 224 // Returns true if the screen is locked. | |
| 225 bool IsScreenLocked() const; | |
| 226 | |
| 227 // Returns true if a system-modal dialog window is currently open. | 221 // Returns true if a system-modal dialog window is currently open. |
| 228 bool IsSystemModalWindowOpen() const; | 222 bool IsSystemModalWindowOpen() const; |
| 229 | 223 |
| 230 // For testing only: set simulation that a modal window is open | 224 // For testing only: set simulation that a modal window is open |
| 231 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 225 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
| 232 simulate_modal_window_open_for_testing_ = modal_window_open; | 226 simulate_modal_window_open_for_testing_ = modal_window_open; |
| 233 } | 227 } |
| 234 | 228 |
| 235 // Creates a default views::NonClientFrameView for use by windows in the | 229 // Creates a default views::NonClientFrameView for use by windows in the |
| 236 // Ash environment. | 230 // Ash environment. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 ShellDelegate* delegate() { return delegate_.get(); } | 321 ShellDelegate* delegate() { return delegate_.get(); } |
| 328 | 322 |
| 329 UserWallpaperDelegate* user_wallpaper_delegate() { | 323 UserWallpaperDelegate* user_wallpaper_delegate() { |
| 330 return user_wallpaper_delegate_.get(); | 324 return user_wallpaper_delegate_.get(); |
| 331 } | 325 } |
| 332 | 326 |
| 333 CapsLockDelegate* caps_lock_delegate() { | 327 CapsLockDelegate* caps_lock_delegate() { |
| 334 return caps_lock_delegate_.get(); | 328 return caps_lock_delegate_.get(); |
| 335 } | 329 } |
| 336 | 330 |
| 331 SessionStateDelegate* session_state_delegate() { |
| 332 return session_state_delegate_.get(); |
| 333 } |
| 334 |
| 337 HighContrastController* high_contrast_controller() { | 335 HighContrastController* high_contrast_controller() { |
| 338 return high_contrast_controller_.get(); | 336 return high_contrast_controller_.get(); |
| 339 } | 337 } |
| 340 | 338 |
| 341 MagnificationController* magnification_controller() { | 339 MagnificationController* magnification_controller() { |
| 342 return magnification_controller_.get(); | 340 return magnification_controller_.get(); |
| 343 } | 341 } |
| 344 | 342 |
| 345 PartialMagnificationController* partial_magnification_controller() { | 343 PartialMagnificationController* partial_magnification_controller() { |
| 346 return partial_magnification_controller_.get(); | 344 return partial_magnification_controller_.get(); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; | 494 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; |
| 497 | 495 |
| 498 scoped_ptr<AcceleratorController> accelerator_controller_; | 496 scoped_ptr<AcceleratorController> accelerator_controller_; |
| 499 #endif // !defined(OS_MACOSX) | 497 #endif // !defined(OS_MACOSX) |
| 500 | 498 |
| 501 scoped_ptr<ShellDelegate> delegate_; | 499 scoped_ptr<ShellDelegate> delegate_; |
| 502 scoped_ptr<SystemTrayDelegate> system_tray_delegate_; | 500 scoped_ptr<SystemTrayDelegate> system_tray_delegate_; |
| 503 scoped_ptr<SystemTrayNotifier> system_tray_notifier_; | 501 scoped_ptr<SystemTrayNotifier> system_tray_notifier_; |
| 504 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; | 502 scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; |
| 505 scoped_ptr<CapsLockDelegate> caps_lock_delegate_; | 503 scoped_ptr<CapsLockDelegate> caps_lock_delegate_; |
| 504 scoped_ptr<SessionStateDelegate> session_state_delegate_; |
| 506 scoped_ptr<LauncherDelegate> launcher_delegate_; | 505 scoped_ptr<LauncherDelegate> launcher_delegate_; |
| 507 | 506 |
| 508 scoped_ptr<LauncherModel> launcher_model_; | 507 scoped_ptr<LauncherModel> launcher_model_; |
| 509 | 508 |
| 510 scoped_ptr<internal::AppListController> app_list_controller_; | 509 scoped_ptr<internal::AppListController> app_list_controller_; |
| 511 | 510 |
| 512 scoped_ptr<internal::ActivationController> activation_controller_; | 511 scoped_ptr<internal::ActivationController> activation_controller_; |
| 513 scoped_ptr<internal::CaptureController> capture_controller_; | 512 scoped_ptr<internal::CaptureController> capture_controller_; |
| 514 scoped_ptr<internal::DragDropController> drag_drop_controller_; | 513 scoped_ptr<internal::DragDropController> drag_drop_controller_; |
| 515 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_; | 514 scoped_ptr<internal::ResizeShadowController> resize_shadow_controller_; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 582 |
| 584 // For testing only: simulate that a modal window is open | 583 // For testing only: simulate that a modal window is open |
| 585 bool simulate_modal_window_open_for_testing_; | 584 bool simulate_modal_window_open_for_testing_; |
| 586 | 585 |
| 587 DISALLOW_COPY_AND_ASSIGN(Shell); | 586 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 588 }; | 587 }; |
| 589 | 588 |
| 590 } // namespace ash | 589 } // namespace ash |
| 591 | 590 |
| 592 #endif // ASH_SHELL_H_ | 591 #endif // ASH_SHELL_H_ |
| OLD | NEW |