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

Unified Diff: backlight_interface.h

Issue 6715014: Display off is done by a callback into backlight controller (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/power_manager.git
Patch Set: Deleted unused lines, 2010->2011 Created 9 years, 9 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
« no previous file with comments | « backlight_controller.cc ('k') | mock_backlight.h » ('j') | mock_backlight.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {}
};
« no previous file with comments | « backlight_controller.cc ('k') | mock_backlight.h » ('j') | mock_backlight.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698