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/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. | 17 // Invoked after the screen's work area insets changes. |
18 virtual void OnDisplayWorkAreaInsetsChanged() {} | 18 virtual void OnDisplayWorkAreaInsetsChanged() {} |
19 | 19 |
20 // Invoked when the user logs in. | 20 // Invoked when the user logs in. |
21 virtual void OnLoginStateChanged(user::LoginStatus status) {} | 21 virtual void OnLoginStateChanged(LoginStatus status) {} |
22 | 22 |
23 // Invoked when the application is exiting. | 23 // Invoked when the application is exiting. |
24 virtual void OnAppTerminating() {} | 24 virtual void OnAppTerminating() {} |
25 | 25 |
26 // Invoked when the screen is locked (after the lock window is visible) or | 26 // Invoked when the screen is locked (after the lock window is visible) or |
27 // unlocked. | 27 // unlocked. |
28 virtual void OnLockStateChanged(bool locked) {} | 28 virtual void OnLockStateChanged(bool locked) {} |
29 | 29 |
30 // Called when a casting session is started or stopped. | 30 // Called when a casting session is started or stopped. |
31 virtual void OnCastingSessionStartedOrStopped(bool started) {} | 31 virtual void OnCastingSessionStartedOrStopped(bool started) {} |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Called at the end of Shell::Init. | 67 // Called at the end of Shell::Init. |
68 virtual void OnShellInitialized() {} | 68 virtual void OnShellInitialized() {} |
69 | 69 |
70 protected: | 70 protected: |
71 virtual ~ShellObserver() {} | 71 virtual ~ShellObserver() {} |
72 }; | 72 }; |
73 | 73 |
74 } // namespace ash | 74 } // namespace ash |
75 | 75 |
76 #endif // ASH_SHELL_OBSERVER_H_ | 76 #endif // ASH_SHELL_OBSERVER_H_ |
OLD | NEW |