| 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_OBSERVER_H_ | 5 #ifndef ASH_SHELL_OBSERVER_H_ |
| 6 #define ASH_SHELL_OBSERVER_H_ | 6 #define ASH_SHELL_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/user/login_status.h" | 9 #include "ash/system/user/login_status.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class RootWindow; | 12 class Window; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 | 16 |
| 17 class ASH_EXPORT ShellObserver { | 17 class ASH_EXPORT ShellObserver { |
| 18 public: | 18 public: |
| 19 // Invoked after the screen's work area insets changes. | 19 // Invoked after the screen's work area insets changes. |
| 20 virtual void OnDisplayWorkAreaInsetsChanged() {} | 20 virtual void OnDisplayWorkAreaInsetsChanged() {} |
| 21 | 21 |
| 22 // Invoked when the user logs in. | 22 // Invoked when the user logs in. |
| 23 virtual void OnLoginStateChanged(user::LoginStatus status) {} | 23 virtual void OnLoginStateChanged(user::LoginStatus status) {} |
| 24 | 24 |
| 25 // Invoked when the application is exiting. | 25 // Invoked when the application is exiting. |
| 26 virtual void OnAppTerminating() {} | 26 virtual void OnAppTerminating() {} |
| 27 | 27 |
| 28 // Invoked when the screen is locked (after the lock window is visible) or | 28 // Invoked when the screen is locked (after the lock window is visible) or |
| 29 // unlocked. | 29 // unlocked. |
| 30 virtual void OnLockStateChanged(bool locked) {} | 30 virtual void OnLockStateChanged(bool locked) {} |
| 31 | 31 |
| 32 // Invoked when the shelf alignment in |root_window| is changed. | 32 // Invoked when the shelf alignment in |root_window| is changed. |
| 33 virtual void OnShelfAlignmentChanged(aura::RootWindow* root_window) {} | 33 virtual void OnShelfAlignmentChanged(aura::Window* root_window) {} |
| 34 | 34 |
| 35 // Invoked when the projection touch HUD is toggled. | 35 // Invoked when the projection touch HUD is toggled. |
| 36 virtual void OnTouchHudProjectionToggled(bool enabled) {} | 36 virtual void OnTouchHudProjectionToggled(bool enabled) {} |
| 37 | 37 |
| 38 // Invoked when entering or exiting fullscreen mode in |root_window|. | 38 // Invoked when entering or exiting fullscreen mode in |root_window|. |
| 39 virtual void OnFullscreenStateChanged(bool is_fullscreen, | 39 virtual void OnFullscreenStateChanged(bool is_fullscreen, |
| 40 aura::RootWindow* root_window) {} | 40 aura::Window* root_window) {} |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 virtual ~ShellObserver() {} | 43 virtual ~ShellObserver() {} |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace ash | 46 } // namespace ash |
| 47 | 47 |
| 48 #endif // ASH_SHELL_OBSERVER_H_ | 48 #endif // ASH_SHELL_OBSERVER_H_ |
| OLD | NEW |