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

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 11783020: Implement support for monitor suspend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@git-svn
Patch Set: Created 7 years, 11 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 70ac0da0eaf3842e510082f15c87f2306c035ef5..54d42fef397594c9efc7e20e98fa30bdb05725dd 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -26,6 +26,7 @@ namespace chromeos {
typedef base::Callback<void(int64)> CalculateIdleTimeCallback;
typedef base::Callback<void(void)> IdleNotificationCallback;
typedef base::Callback<void(uint32)> PowerStateRequestIdCallback;
+typedef base::Callback<void(void)> SuspendImminentCallback;
Daniel Erat 2013/01/08 00:51:35 nit: you don't need this, do you?
marcheu 2013/01/10 01:03:49 Removed.
// Callback used for getting the current screen brightness. The param is in the
// range [0.0, 100.0].
@@ -67,6 +68,9 @@ class CHROMEOS_EXPORT PowerManagerClient {
// (as opposed to the more-common method of adjusting the backlight).
virtual void ScreenDimmingRequested(ScreenDimmingState state) {}
+ // Called when the system suspends.
Daniel Erat 2013/01/08 00:51:35 nit: i'd add a bit more details about this: // Ca
marcheu 2013/01/10 01:03:49 Done.
+ virtual void SuspendImminent() {}
+
// Called when the power button is pressed or released.
// Note: Implement both this method and
// RootPowerManagerObserver::OnPowerButtonEvent() until this has been moved

Powered by Google App Engine
This is Rietveld 408576698