Chromium Code Reviews| 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 |