aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Erat <derat@chromium.org>2015-06-10 06:11:58 -0600
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-10 19:48:04 +0000
commit79ec94e4f5719e3f20dea39e4506b8f7998dbed6 (patch)
tree429ff39098ecf43e82e584fd222f8eb730a0b0ff
parentba08c21a075ab091ca9bdc783435c2aec8c6f807 (diff)
downloadsystem_api-79ec94e4f5719e3f20dea39e4506b8f7998dbed6.tar.gz
system_api: Add max_power to PowerSupplyProperties.
Add a 'max_power' field to the PowerSource submessage in powerd's PowerSupplyProperties protocol buffer so Chrome can display available power sources' wattages. BUG=chromium:419509 TEST=built it Change-Id: I18f92354b60a22cf7b0b9d5cdb4bcade7d347b07 Reviewed-on: https://chromium-review.googlesource.com/276528 Commit-Queue: Dan Erat <derat@chromium.org> Trybot-Ready: Dan Erat <derat@chromium.org> Tested-by: Dan Erat <derat@chromium.org> Reviewed-by: Michael Giuffrida <michaelpg@chromium.org>
-rw-r--r--dbus/power_manager/power_supply_properties.proto5
1 files changed, 4 insertions, 1 deletions
diff --git a/dbus/power_manager/power_supply_properties.proto b/dbus/power_manager/power_supply_properties.proto
index 0bd6e4e..3339252 100644
--- a/dbus/power_manager/power_supply_properties.proto
+++ b/dbus/power_manager/power_supply_properties.proto
@@ -56,13 +56,16 @@ message PowerSupplyProperties {
optional string manufacturer_id = 4;
optional string model_id = 5;
+ // Maximum power this source is capable of delivering, in watts.
+ optional double max_power = 6;
+
// True if the power source will automatically deliver charge to the system
// when connected (assuming there isn't another |active_by_default| source
// doing so). If false, the source will not deliver charge unless requested
// to do so by the user.
optional bool active_by_default = 3;
- // Next ID to use: 6
+ // Next ID to use: 7
}
// Current state of the external power source.