Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5736)

Unified Diff: chromeos/dbus/session_manager_client.h

Issue 852453005: chromeos: Make CheckIdleStateIsLocked() query D-Bus client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698