| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 class NestedDispatcherController; | 68 class NestedDispatcherController; |
| 69 class PowerButtonController; | 69 class PowerButtonController; |
| 70 class ScreenAsh; | 70 class ScreenAsh; |
| 71 class ShellDelegate; | 71 class ShellDelegate; |
| 72 class ShellObserver; | 72 class ShellObserver; |
| 73 class SystemTrayDelegate; | 73 class SystemTrayDelegate; |
| 74 class SystemTray; | 74 class SystemTray; |
| 75 class UserActivityDetector; | 75 class UserActivityDetector; |
| 76 class UserWallpaperDelegate; | 76 class UserWallpaperDelegate; |
| 77 class VideoDetector; | 77 class VideoDetector; |
| 78 class WebNotificationTray; |
| 78 class WindowCycleController; | 79 class WindowCycleController; |
| 79 | 80 |
| 80 namespace internal { | 81 namespace internal { |
| 81 class AcceleratorFilter; | 82 class AcceleratorFilter; |
| 82 class ActivationController; | 83 class ActivationController; |
| 83 class AppListController; | 84 class AppListController; |
| 84 class CaptureController; | 85 class CaptureController; |
| 85 class DragDropController; | 86 class DragDropController; |
| 86 class EventClientImpl; | 87 class EventClientImpl; |
| 87 class EventRewriterEventFilter; | 88 class EventRewriterEventFilter; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // Sets the work area insets of the display that contains |window|, | 226 // Sets the work area insets of the display that contains |window|, |
| 226 // this notifies observers too. | 227 // this notifies observers too. |
| 227 // TODO(sky): this no longer really replicates what happens and is unreliable. | 228 // TODO(sky): this no longer really replicates what happens and is unreliable. |
| 228 // Remove this. | 229 // Remove this. |
| 229 void SetDisplayWorkAreaInsets(aura::Window* window, | 230 void SetDisplayWorkAreaInsets(aura::Window* window, |
| 230 const gfx::Insets& insets); | 231 const gfx::Insets& insets); |
| 231 | 232 |
| 232 // Called when the user logs in. | 233 // Called when the user logs in. |
| 233 void OnLoginStateChanged(user::LoginStatus status); | 234 void OnLoginStateChanged(user::LoginStatus status); |
| 234 | 235 |
| 236 // Called when the login status changes. |
| 237 // TODO(oshima): Find out if we can merge this and |OnLoginStateChanged|. |
| 238 void UpdateAfterLoginStatusChange(user::LoginStatus status); |
| 239 |
| 235 // Called when the application is exiting. | 240 // Called when the application is exiting. |
| 236 void OnAppTerminating(); | 241 void OnAppTerminating(); |
| 237 | 242 |
| 238 // Called when the screen is locked (after the lock window is visible) or | 243 // Called when the screen is locked (after the lock window is visible) or |
| 239 // unlocked. | 244 // unlocked. |
| 240 void OnLockStateChanged(bool locked); | 245 void OnLockStateChanged(bool locked); |
| 241 | 246 |
| 242 // Initializes |launcher_|. Does nothing if it's already initialized. | 247 // Initializes |launcher_|. Does nothing if it's already initialized. |
| 243 void CreateLauncher(); | 248 void CreateLauncher(); |
| 244 | 249 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 } | 309 } |
| 305 | 310 |
| 306 HighContrastController* high_contrast_controller() { | 311 HighContrastController* high_contrast_controller() { |
| 307 return high_contrast_controller_.get(); | 312 return high_contrast_controller_.get(); |
| 308 } | 313 } |
| 309 | 314 |
| 310 internal::MagnificationController* magnification_controller() { | 315 internal::MagnificationController* magnification_controller() { |
| 311 return magnification_controller_.get(); | 316 return magnification_controller_.get(); |
| 312 } | 317 } |
| 313 | 318 |
| 314 // TODO(oshima): Remove methods that are moved to RootWindowController. | |
| 315 Launcher* launcher(); | |
| 316 | |
| 317 const ScreenAsh* screen() { return screen_.get(); } | 319 const ScreenAsh* screen() { return screen_.get(); } |
| 318 | 320 |
| 319 // Force the shelf to query for it's current visibility state. | 321 // Force the shelf to query for it's current visibility state. |
| 320 void UpdateShelfVisibility(); | 322 void UpdateShelfVisibility(); |
| 321 | 323 |
| 322 // Sets/gets the shelf auto-hide behavior. | 324 // Sets/gets the shelf auto-hide behavior. |
| 323 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); | 325 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); |
| 324 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; | 326 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; |
| 325 | 327 |
| 326 void SetShelfAlignment(ShelfAlignment alignment); | 328 void SetShelfAlignment(ShelfAlignment alignment); |
| 327 ShelfAlignment GetShelfAlignment(); | 329 ShelfAlignment GetShelfAlignment(); |
| 328 | 330 |
| 329 // Dims or undims the screen. | 331 // Dims or undims the screen. |
| 330 void SetDimming(bool should_dim); | 332 void SetDimming(bool should_dim); |
| 331 | 333 |
| 332 // Creates modal background, which is a partially-opaque fullscreen | 334 // Creates modal background, which is a partially-opaque fullscreen |
| 333 // window, on all displays. | 335 // window, on all displays. |
| 334 void CreateModalBackground(); | 336 void CreateModalBackground(); |
| 335 | 337 |
| 336 // Called when a modal window is removed. It will activate | 338 // Called when a modal window is removed. It will activate |
| 337 // another modal window if any, or remove modal screens | 339 // another modal window if any, or remove modal screens |
| 338 // on all displays. | 340 // on all displays. |
| 339 void OnModalWindowRemoved(aura::Window* removed); | 341 void OnModalWindowRemoved(aura::Window* removed); |
| 340 | 342 |
| 341 // TODO(sky): don't expose this! | 343 // Return WebNotificationTray on the primary root window. |
| 342 internal::ShelfLayoutManager* shelf() const; | 344 WebNotificationTray* GetWebNotificationTray(); |
| 343 | |
| 344 internal::StatusAreaWidget* status_area_widget() const; | |
| 345 | 345 |
| 346 // Convenience accessor for members of StatusAreaWidget. | 346 // Convenience accessor for members of StatusAreaWidget. |
| 347 SystemTrayDelegate* tray_delegate(); | 347 SystemTrayDelegate* tray_delegate(); |
| 348 SystemTray* system_tray(); | 348 SystemTray* system_tray(); |
| 349 | 349 |
| 350 static void set_initially_hide_cursor(bool hide) { | 350 static void set_initially_hide_cursor(bool hide) { |
| 351 initially_hide_cursor_ = hide; | 351 initially_hide_cursor_ = hide; |
| 352 } | 352 } |
| 353 | 353 |
| 354 internal::ResizeShadowController* resize_shadow_controller() { | 354 internal::ResizeShadowController* resize_shadow_controller() { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 | 493 |
| 494 // Used by ash/shell. | 494 // Used by ash/shell. |
| 495 content::BrowserContext* browser_context_; | 495 content::BrowserContext* browser_context_; |
| 496 | 496 |
| 497 DISALLOW_COPY_AND_ASSIGN(Shell); | 497 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 498 }; | 498 }; |
| 499 | 499 |
| 500 } // namespace ash | 500 } // namespace ash |
| 501 | 501 |
| 502 #endif // ASH_SHELL_H_ | 502 #endif // ASH_SHELL_H_ |
| OLD | NEW |