Index: backlight_interface.h |
diff --git a/backlight_interface.h b/backlight_interface.h |
index f00f060ef8d35ef86fe9f00d290dd6348471e8ad..d3ae15b23a492c2a4121a8c8cd2bd7393c5eecd9 100644 |
--- a/backlight_interface.h |
+++ b/backlight_interface.h |
@@ -5,6 +5,8 @@ |
#ifndef POWER_MANAGER_BACKLIGHT_INTERFACE_H_ |
#define POWER_MANAGER_BACKLIGHT_INTERFACE_H_ |
+#include "power_manager/signal_callback.h" |
+ |
#include "base/basictypes.h" |
namespace power_manager { |
@@ -30,6 +32,11 @@ class BacklightInterface { |
// On success, return true; otherwise return false. |
virtual bool SetBrightness(int64 level) = 0; |
+ // Specify a callback that will be used to determine if the screen should |
+ // be turned off during a backlight transition. |
+ virtual void SetScreenOffFunc(SIGNAL_CALLBACK_PTR(void, func), void *data) |
+ = 0; |
+ |
protected: |
~BacklightInterface() {} |
}; |