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 CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 virtual void LockScreen() {} | 35 virtual void LockScreen() {} |
36 | 36 |
37 // Called when the session manager announces that the screen has been locked | 37 // Called when the session manager announces that the screen has been locked |
38 // successfully (i.e. after NotifyLockScreenShown() has been called). | 38 // successfully (i.e. after NotifyLockScreenShown() has been called). |
39 virtual void ScreenIsLocked() {} | 39 virtual void ScreenIsLocked() {} |
40 | 40 |
41 // Called when the session manager announces that the screen has been | 41 // Called when the session manager announces that the screen has been |
42 // unlocked successfully (i.e. after NotifyLockScreenDismissed() has | 42 // unlocked successfully (i.e. after NotifyLockScreenDismissed() has |
43 // been called). | 43 // been called). |
44 virtual void ScreenIsUnlocked() {} | 44 virtual void ScreenIsUnlocked() {} |
| 45 |
| 46 // Called after EmitLoginPromptVisible is called. |
| 47 virtual void EmitLoginPromptVisibleCalled() {} |
45 }; | 48 }; |
46 | 49 |
47 // Adds and removes the observer. | 50 // Adds and removes the observer. |
48 virtual void AddObserver(Observer* observer) = 0; | 51 virtual void AddObserver(Observer* observer) = 0; |
49 virtual void RemoveObserver(Observer* observer) = 0; | 52 virtual void RemoveObserver(Observer* observer) = 0; |
50 virtual bool HasObserver(Observer* observer) = 0; | 53 virtual bool HasObserver(Observer* observer) = 0; |
51 | 54 |
52 // Kicks off an attempt to emit the "login-prompt-ready" upstart signal. | 55 // Kicks off an attempt to emit the "login-prompt-ready" upstart signal. |
53 virtual void EmitLoginPromptReady() = 0; | 56 virtual void EmitLoginPromptReady() = 0; |
54 | 57 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Create() should be used instead. | 170 // Create() should be used instead. |
168 SessionManagerClient(); | 171 SessionManagerClient(); |
169 | 172 |
170 private: | 173 private: |
171 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 174 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
172 }; | 175 }; |
173 | 176 |
174 } // namespace chromeos | 177 } // namespace chromeos |
175 | 178 |
176 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 179 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
OLD | NEW |