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

Unified Diff: chrome/browser/chromeos/dbus/power_manager_client.h

Issue 8664014: chromeos: move screen lock handling to power manager client (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 9 years, 1 month 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: 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);
« no previous file with comments | « chrome/browser/chromeos/dbus/mock_power_manager_client.h ('k') | chrome/browser/chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698