| 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 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 // Interface for observing changes from the session manager. | 22 // Interface for observing changes from the session manager. |
| 23 class Observer { | 23 class Observer { |
| 24 public: | 24 public: |
| 25 // Called when the owner key is set. | 25 // Called when the owner key is set. |
| 26 virtual void OwnerKeySet(bool success) {} | 26 virtual void OwnerKeySet(bool success) {} |
| 27 | 27 |
| 28 // Called when the property change is complete. | 28 // Called when the property change is complete. |
| 29 virtual void PropertyChangeComplete(bool success) {} | 29 virtual void PropertyChangeComplete(bool success) {} |
| 30 | 30 |
| 31 // Called when the session manager requests that the lock screen be | |
| 32 // displayed. NotifyLockScreenShown() is called after the lock screen | |
| 33 // is shown (the canonical "is the screen locked?" state lives in the | |
| 34 // session manager). | |
| 35 // TODO(derat): Delete this once the session manager is calling the | |
| 36 // "LockScreen" method instead. | |
| 37 virtual void LockScreen() {} | |
| 38 | |
| 39 // Called when the session manager announces that the screen has been locked | 31 // Called when the session manager announces that the screen has been locked |
| 40 // successfully (i.e. after NotifyLockScreenShown() has been called). | 32 // successfully (i.e. after NotifyLockScreenShown() has been called). |
| 41 virtual void ScreenIsLocked() {} | 33 virtual void ScreenIsLocked() {} |
| 42 | 34 |
| 43 // Called when the session manager announces that the screen has been | 35 // Called when the session manager announces that the screen has been |
| 44 // unlocked successfully (i.e. after NotifyLockScreenDismissed() has | 36 // unlocked successfully (i.e. after NotifyLockScreenDismissed() has |
| 45 // been called). | 37 // been called). |
| 46 virtual void ScreenIsUnlocked() {} | 38 virtual void ScreenIsUnlocked() {} |
| 47 | 39 |
| 48 // Called after EmitLoginPromptVisible is called. | 40 // Called after EmitLoginPromptVisible is called. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // Create() should be used instead. | 161 // Create() should be used instead. |
| 170 SessionManagerClient(); | 162 SessionManagerClient(); |
| 171 | 163 |
| 172 private: | 164 private: |
| 173 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 165 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
| 174 }; | 166 }; |
| 175 | 167 |
| 176 } // namespace chromeos | 168 } // namespace chromeos |
| 177 | 169 |
| 178 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 170 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
| OLD | NEW |