Index: chromeos/dbus/session_manager_client.h |
diff --git a/chromeos/dbus/session_manager_client.h b/chromeos/dbus/session_manager_client.h |
index 758f26ec503b271321b916bdf52395d7a97d68ba..dd6048df9c70e0605d6bffe98996daae0133df65 100644 |
--- a/chromeos/dbus/session_manager_client.h |
+++ b/chromeos/dbus/session_manager_client.h |
@@ -65,6 +65,11 @@ class CHROMEOS_EXPORT SessionManagerClient : public DBusClient { |
virtual void RemoveObserver(Observer* observer) = 0; |
virtual bool HasObserver(const Observer* observer) const = 0; |
+ // Returns the most recent screen-lock state received from session_manager. |
+ // This mirrors the last Observer::ScreenIsLocked() or ScreenIsUnlocked() |
+ // call. |
+ virtual bool IsScreenLocked() const = 0; |
+ |
// Kicks off an attempt to emit the "login-prompt-visible" upstart signal. |
virtual void EmitLoginPromptVisible() = 0; |