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

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 240343004: chromeos: Update IdleActionImminent and SuspendDone handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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 5c957f446587a31c3dbb247d8618e3796cacf99c..f37476e0127202e90ccfdb35c93a9f45ba0984b1 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -66,6 +66,11 @@ class CHROMEOS_EXPORT PowerManagerClient : public DBusClient {
// the observer is ready for suspend.
virtual void SuspendImminent() {}
+ // Called when a suspend attempt (previously announced via
+ // SuspendImminent()) has completed. The system may not have actually
+ // suspended (if e.g. the user canceled the suspend attempt).
+ virtual void SuspendDone(const base::TimeDelta& sleep_duration) {}
+
// Called when the power button is pressed or released.
virtual void PowerButtonEventReceived(bool down,
const base::TimeTicks& timestamp) {}
@@ -74,11 +79,10 @@ class CHROMEOS_EXPORT PowerManagerClient : public DBusClient {
virtual void LidEventReceived(bool open,
const base::TimeTicks& timestamp) {}
- // Called when the system resumes from sleep.
- virtual void SystemResumed(const base::TimeDelta& sleep_duration) {}
-
- // Called when the idle action will be performed soon.
- virtual void IdleActionImminent() {}
+ // Called when the idle action will be performed after
+ // |time_until_idle_action|.
+ virtual void IdleActionImminent(
+ const base::TimeDelta& time_until_idle_action) {}
// Called after IdleActionImminent() when the inactivity timer is reset
// before the idle action has been performed.

Powered by Google App Engine
This is Rietveld 408576698