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