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

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 10263011: chromeos: Add support for dimming the screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 8 years, 8 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 | « chrome/chrome_browser.gypi ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/power_manager_client.h
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
index eb199474ee877ed986b9f6bd4512279f724202bd..00c27b83007f785056948c878fbfc241e531e300 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -39,6 +39,11 @@ class CHROMEOS_EXPORT PowerManagerClient {
// Interface for observing changes from the power manager.
class Observer {
public:
+ enum ScreenDimmingState {
+ SCREEN_DIMMING_NONE = 0,
+ SCREEN_DIMMING_IDLE,
+ };
+
virtual ~Observer() {}
// Called when the brightness is changed.
@@ -75,6 +80,10 @@ class CHROMEOS_EXPORT PowerManagerClient {
// Called when we go from idle to active.
virtual void ActiveNotify() {}
+
+ // Called when a request is received to dim or undim the screen in software
+ // (as opposed to the more-common method of adjusting the backlight).
+ virtual void ScreenDimmingRequested(ScreenDimmingState state) {}
};
enum UpdateRequestType {
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698