| 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_COMMON_SHELL_OBSERVER_H_ | 5 #ifndef ASH_COMMON_SHELL_OBSERVER_H_ |
| 6 #define ASH_COMMON_SHELL_OBSERVER_H_ | 6 #define ASH_COMMON_SHELL_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/login_status.h" | 9 #include "ash/common/login_status.h" |
| 10 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 class WmWindow; | 13 class WmWindow; |
| 14 | 14 |
| 15 class ASH_EXPORT ShellObserver { | 15 class ASH_EXPORT ShellObserver { |
| 16 public: | 16 public: |
| 17 // Invoked after the screen's work area insets changes. | |
| 18 virtual void OnDisplayWorkAreaInsetsChanged() {} | |
| 19 | |
| 20 // Invoked when the user logs in. | 17 // Invoked when the user logs in. |
| 21 virtual void OnLoginStateChanged(LoginStatus status) {} | 18 virtual void OnLoginStateChanged(LoginStatus status) {} |
| 22 | 19 |
| 23 // Invoked when the application is exiting. | 20 // Invoked when the application is exiting. |
| 24 virtual void OnAppTerminating() {} | 21 virtual void OnAppTerminating() {} |
| 25 | 22 |
| 26 // Invoked when the screen is locked (after the lock window is visible) or | 23 // Invoked when the screen is locked (after the lock window is visible) or |
| 27 // unlocked. | 24 // unlocked. |
| 28 virtual void OnLockStateChanged(bool locked) {} | 25 virtual void OnLockStateChanged(bool locked) {} |
| 29 | 26 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Called at the end of Shell::Init. | 67 // Called at the end of Shell::Init. |
| 71 virtual void OnShellInitialized() {} | 68 virtual void OnShellInitialized() {} |
| 72 | 69 |
| 73 protected: | 70 protected: |
| 74 virtual ~ShellObserver() {} | 71 virtual ~ShellObserver() {} |
| 75 }; | 72 }; |
| 76 | 73 |
| 77 } // namespace ash | 74 } // namespace ash |
| 78 | 75 |
| 79 #endif // ASH_COMMON_SHELL_OBSERVER_H_ | 76 #endif // ASH_COMMON_SHELL_OBSERVER_H_ |
| OLD | NEW |