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

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 438433002: Add dark resume methods to PowerManagerClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: int32 -> int32_t Created 6 years, 4 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 f37476e0127202e90ccfdb35c93a9f45ba0984b1..b490e98207ef37c3aecc3960a51a28a1f0b0272a 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -71,6 +71,14 @@ class CHROMEOS_EXPORT PowerManagerClient : public DBusClient {
// suspended (if e.g. the user canceled the suspend attempt).
virtual void SuspendDone(const base::TimeDelta& sleep_duration) {}
+ // Called when the system is about to resuspend from a dark resume. Like
+ // SuspendImminent(), the suspend will be deferred until all observers have
+ // finished running and those observers that wish to asynchronously delay
+ // the suspend should call PowerManagerClient::GetSuspendReadinessCallback()
+ // from within this method. The returned callback should be run once the
+ // observer is ready for suspend.
+ virtual void DarkSuspendImminent() {}
+
// Called when the power button is pressed or released.
virtual void PowerButtonEventReceived(bool down,
const base::TimeTicks& timestamp) {}

Powered by Google App Engine
This is Rietveld 408576698