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

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 2805433002: Adding ArcBridge interface for synchronizing brightness settings (Closed)
Patch Set: Created 3 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
Index: chromeos/dbus/power_manager_client.h
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
index 1381287cecf36975d93e0b9c67830272cf51f1a6..8e0c92518737d70aa79139e9bb879244da831051 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -61,6 +61,9 @@ class CHROMEOS_EXPORT PowerManagerClient : public DBusClient {
// |user_initiated| is true if the action is initiated by the user.
virtual void BrightnessChanged(int level, bool user_initiated) {}
+ // Noitify android setting about brightness change
Muyuan 2017/04/05 18:41:08 dbus/power_manager_client is pretty general and it
yueli 2017/04/05 19:59:46 Done.
+ virtual void NotifyBrightnessChange(double brightness) {}
Muyuan 2017/04/05 18:41:08 This function is probably not needed. You can over
yueli 2017/04/05 19:59:46 Done.
+
// Called when peripheral device battery status is received.
// |path| is the sysfs path for the battery of the peripheral device.
// |name| is the human readble name of the device.
@@ -165,6 +168,9 @@ class CHROMEOS_EXPORT PowerManagerClient : public DBusClient {
virtual void GetScreenBrightnessPercent(
const GetScreenBrightnessPercentCallback& callback) = 0;
+ // Get the current screen brightness and syncrhonize it to android settings
+ virtual void SyncScreenBrightness() = 0;
+
// Decreases the keyboard brightness.
virtual void DecreaseKeyboardBrightness() = 0;

Powered by Google App Engine
This is Rietveld 408576698