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

Unified Diff: chromeos/dbus/power_manager_client.cc

Issue 10700150: Add methods for controlling keyboard brightness. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 5 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 | « chromeos/dbus/power_manager_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/power_manager_client.cc
diff --git a/chromeos/dbus/power_manager_client.cc b/chromeos/dbus/power_manager_client.cc
index d1e7fb54b97c75c645c3d6d3856ab76a844dced3..7a523688660ca1d598956ac8d229223e404c00b3 100644
--- a/chromeos/dbus/power_manager_client.cc
+++ b/chromeos/dbus/power_manager_client.cc
@@ -141,6 +141,14 @@ class PowerManagerClientImpl : public PowerManagerClient {
SimpleMethodCallToPowerManager(power_manager::kIncreaseScreenBrightness);
}
+ virtual void DecreaseKeyboardBrightness() OVERRIDE {
+ SimpleMethodCallToPowerManager(power_manager::kDecreaseKeyboardBrightness);
+ }
+
+ virtual void IncreaseKeyboardBrightness() OVERRIDE {
+ SimpleMethodCallToPowerManager(power_manager::kIncreaseKeyboardBrightness);
+ }
+
virtual void SetScreenBrightnessPercent(double percent, bool gradual) {
dbus::MethodCall method_call(
power_manager::kPowerManagerInterface,
@@ -559,6 +567,14 @@ class PowerManagerClientStubImpl : public PowerManagerClient {
callback.Run(brightness_);
}
+ virtual void DecreaseKeyboardBrightness() OVERRIDE {
+ VLOG(1) << "Requested to descrease keyboard brightness";
+ }
+
+ virtual void IncreaseKeyboardBrightness() OVERRIDE {
+ VLOG(1) << "Requested to increase keyboard brightness";
+ }
+
virtual void RequestStatusUpdate(UpdateRequestType update_type) OVERRIDE {
if (update_type == UPDATE_INITIAL) {
Update();
« no previous file with comments | « chromeos/dbus/power_manager_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698