| Index: chromeos/dbus/power_manager_client.h
|
| diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
|
| index 00c27b83007f785056948c878fbfc241e531e300..e224395d7e14ff270857c2db058e83e90bdafbb8 100644
|
| --- a/chromeos/dbus/power_manager_client.h
|
| +++ b/chromeos/dbus/power_manager_client.h
|
| @@ -141,6 +141,11 @@ class CHROMEOS_EXPORT PowerManagerClient {
|
| // Notifies PowerManager that screen is unlocked.
|
| virtual void NotifyScreenUnlockCompleted() = 0;
|
|
|
| + // Return whether or not the screen is locked. Implementation should cache
|
| + // this state so that it can return immediately. Useful for observers that
|
| + // need to know the current screen lock state when they are added.
|
| + virtual bool GetIsScreenLocked() = 0;
|
| +
|
| // Idle management functions:
|
|
|
| // Calculates idle time asynchronously, after the idle time request has
|
|
|