| Index: chrome/browser/chromeos/dbus/power_manager_client.h
|
| diff --git a/chrome/browser/chromeos/dbus/power_manager_client.h b/chrome/browser/chromeos/dbus/power_manager_client.h
|
| index 43f58a40ec92ae3e693e19462e6e6d05244b9186..28e3993d3fc83038ce8b47cebff360ef2f8c0c6e 100644
|
| --- a/chrome/browser/chromeos/dbus/power_manager_client.h
|
| +++ b/chrome/browser/chromeos/dbus/power_manager_client.h
|
| @@ -54,6 +54,15 @@ class PowerManagerClient {
|
|
|
| // Called when the system resumes from suspend.
|
| virtual void SystemResumed() {}
|
| +
|
| + // Called when the screen is locked.
|
| + virtual void LockScreen() {}
|
| +
|
| + // Called when the screen is unlocked.
|
| + virtual void UnlockScreen() {}
|
| +
|
| + // Called when the screen fails to unlock.
|
| + virtual void UnlockScreenFailed() {}
|
| };
|
|
|
| // Adds and removes the observer.
|
| @@ -81,6 +90,18 @@ class PowerManagerClient {
|
| // encounters some error, it passes -1 to |callback|.
|
| virtual void CalculateIdleTime(const CalculateIdleTimeCallback& callback) = 0;
|
|
|
| + // Notifies PowerManager that a user requested to lock the screen.
|
| + virtual void NotifyScreenLockRequested() = 0;
|
| +
|
| + // Notifies PowerManager that screen lock has been completed.
|
| + virtual void NotifyScreenLockCompleted() = 0;
|
| +
|
| + // Notifies PowerManager that a user unlocked the screen.
|
| + virtual void NotifyScreenUnlockRequested() = 0;
|
| +
|
| + // Notifies PowerManager that screen is unlocked.
|
| + virtual void NotifyScreenUnlockCompleted() = 0;
|
| +
|
| // Creates the instance.
|
| static PowerManagerClient* Create(dbus::Bus* bus);
|
|
|
|
|