| Index: chrome/browser/resources/chromeos/emulator/battery_settings.js
|
| diff --git a/chrome/browser/resources/chromeos/emulator/battery_settings.js b/chrome/browser/resources/chromeos/emulator/battery_settings.js
|
| index 8487802f592b45ad73d3c74071d80931099222df..cb3a2ef918c38d9991ba4c470feb2f1409062ac4 100644
|
| --- a/chrome/browser/resources/chromeos/emulator/battery_settings.js
|
| +++ b/chrome/browser/resources/chromeos/emulator/battery_settings.js
|
| @@ -28,8 +28,9 @@ var BatterySettings = Polymer({
|
| */
|
| batteryStateOptions: {
|
| type: Array,
|
| - value: function() { return ['Full', 'Charging', 'Discharging',
|
| - 'Not Present']; },
|
| + value: function() {
|
| + return ['Full', 'Charging', 'Discharging', 'Not Present'];
|
| + },
|
| },
|
|
|
| /**
|
| @@ -119,6 +120,10 @@ var BatterySettings = Polymer({
|
| chrome.send('updateTimeToFull', [this.timeUntilFull]);
|
| },
|
|
|
| + onPowerChanged: function(e) {
|
| + e.model.set('item.power', e.target.value);
|
| + },
|
| +
|
| updatePowerProperties: function(power_properties) {
|
| this.batteryPercent = power_properties.battery_percent;
|
| this.batteryState =
|
|
|