diff options
author | stevenjb@google.com <stevenjb@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 17:05:58 +0000 |
---|---|---|
committer | stevenjb@google.com <stevenjb@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 17:05:58 +0000 |
commit | d40e880e8638f7374f06af11874d24a08baeb232 (patch) | |
tree | 70ff459fc6bd41fc412a001ab34691d025c6ae9a /chromeos/dbus/power_manager_client.h | |
parent | 8d9e70bd93056befc9a5590036bdbdf198e4f2be (diff) | |
download | chromium_src-d40e880e8638f7374f06af11874d24a08baeb232.zip chromium_src-d40e880e8638f7374f06af11874d24a08baeb232.tar.gz chromium_src-d40e880e8638f7374f06af11874d24a08baeb232.tar.bz2 |
Don't show system notifications while the screen is locked.
Change-Id: Ie6079866fb0b957e56aff2993745e8976c4fb10b
BUG=124402
TEST=Test system notifications (power, network, sms) especially around screen lock/unlock.
Review URL: https://chromiumcodereview.appspot.com/10382118
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/power_manager_client.h')
-rw-r--r-- | chromeos/dbus/power_manager_client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h index 00c27b8..e224395 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 |