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

Unified Diff: chrome/browser/chromeos/dbus/display_power_service_provider.h

Issue 12770015: chromeos: Export SetDisplaySoftwareDimming D-Bus method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « no previous file | chrome/browser/chromeos/dbus/display_power_service_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dbus/display_power_service_provider.h
diff --git a/chrome/browser/chromeos/dbus/display_power_service_provider.h b/chrome/browser/chromeos/dbus/display_power_service_provider.h
index 196d870901054159cf2186612de5328ca1102c82..cc42db836a116b5afc8cea207024240735e13091 100644
--- a/chrome/browser/chromeos/dbus/display_power_service_provider.h
+++ b/chrome/browser/chromeos/dbus/display_power_service_provider.h
@@ -21,8 +21,9 @@ class Response;
namespace chromeos {
-// This class exports a "SetDisplayPower" D-Bus method that the power
-// manager calls to instruct Chrome to turn various displays on or off.
+// This class exports "SetDisplayPower" and "SetDisplaySoftwareDimming"
+// D-Bus methods that the power manager calls to instruct Chrome to turn
+// various displays on or off or dim them.
class DisplayPowerServiceProvider
: public CrosDBusService::ServiceProviderInterface {
public:
@@ -34,15 +35,18 @@ class DisplayPowerServiceProvider
scoped_refptr<dbus::ExportedObject> exported_object) OVERRIDE;
private:
- // Called from ExportedObject when SetDisplayPower() is exported as a D-Bus
+ // Called from ExportedObject when a handler is exported as a D-Bus
// method or failed to be exported.
void OnExported(const std::string& interface_name,
const std::string& method_name,
bool success);
- // Called on UI thread in response to a D-Bus request.
+ // Called on UI thread in response to D-Bus requests.
void SetDisplayPower(dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender);
+ void SetDisplaySoftwareDimming(
+ dbus::MethodCall* method_call,
+ dbus::ExportedObject::ResponseSender response_sender);
// Keep this last so that all weak pointers will be invalidated at the
// beginning of destruction.
« no previous file with comments | « no previous file | chrome/browser/chromeos/dbus/display_power_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698