system_api: Multiple power sources in PowerSupplyProperties.

Make the PowerSupplyProperties emitted by powerd include a
list of available external power sources. Also add a (not
yet implemented) SetPowerSource D-Bus method that Chrome can
call to specify which power source should be used.

BUG=chromium:424246,chromium:419509
TEST=built it

Change-Id: Ied0e5635b64b823507eb65760edc4558f5d45060
Reviewed-on: https://chromium-review.googlesource.com/225904
Reviewed-by: Michael Giuffrida <michaelpg@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Daniel Erat <derat@chromium.org>
Tested-by: Daniel Erat <derat@chromium.org>
2 files changed
tree: 2f54a8aa3af9a0278dfcaf8bd300d8036f3642dc
  1. constants/
  2. dbus/
  3. switches/
  4. OWNERS
  5. README
  6. system_api.gyp
  7. system_api.pc