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

Unified Diff: chrome/browser/resources/chromeos/emulator/battery_settings.js

Issue 2938933002: WebUI: swap paper-dropdown-menu out for md-select. (Closed)
Patch Set: fix test Created 3 years, 6 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: 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 =

Powered by Google App Engine
This is Rietveld 408576698