chromeos: Add a notification for when stylus battery is low

Desktop / Chromium - Sammie Quon [google.com] - 9 August 2017 03:01 EDT

Adds a notification for when stylus battery is low.

Test: browser_tests --gtest_filter="PeripheralBatteryObserverTest.Stylus" Bug: 731279 Change-Id: I6faa66077f598dc4f48323963aca9c56be33a2c5 Reviewed-on: https://chromium-review.googlesource.com/563981

28a492f chromeos: Add a notification for when stylus battery is low.
ash/ash_strings.grd | 6 +++
ash/system/system_notifier.cc | 3 +-
ash/system/system_notifier.h | 1 +
chrome/app/theme/theme_resources.grd | 1 +
.../chromeos/power/peripheral_battery_observer.cc | 57 +++++++++++++++++++++-
.../chromeos/power/peripheral_battery_observer.h | 14 ++----
.../peripheral_battery_observer_browsertest.cc | 49 +++++++++++++++++++
7 files changed, 119 insertions(+), 12 deletions(-)

Upstream: git.chromium.org


  • Share