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

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 10693087: chromeos: Request screen lock directly from session manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 8 years, 6 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/power_manager_client.h
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
index dcd98489676dea39abdb1149db31320d66e44eb4..3526890d092cc948136ae0c551119aa0869c7ee2 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -74,12 +74,6 @@ class CHROMEOS_EXPORT PowerManagerClient {
virtual void LockButtonStateChanged(bool down,
const base::TimeTicks& timestamp) {}
- // Called when the screen is locked.
- virtual void LockScreen() {}
-
- // Called when the screen is unlocked.
- virtual void UnlockScreen() {}
-
// Called when we go idle for threshold time.
virtual void IdleNotify(int64 threshold_secs) {}
@@ -134,23 +128,12 @@ class CHROMEOS_EXPORT PowerManagerClient {
// Requests shutdown of the system.
virtual void RequestShutdown() = 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;
- // 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

Powered by Google App Engine
This is Rietveld 408576698