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

Side by Side Diff: chrome/browser/resources/chromeos/emulator/battery_settings.html

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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/emulator/battery_settings.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/html/md_select_css.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable-behavior.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable-behavior.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap er-dropdown-menu.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml">
10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis tbox.html">
11 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html"> 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html">
12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper -radio-group.html"> 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper -radio-group.html">
13 <link rel="import" href="icons.html"> 11 <link rel="import" href="icons.html">
14 <link rel="import" href="shared_styles.html"> 12 <link rel="import" href="shared_styles.html">
15 13
16 <dom-module id="battery-settings"> 14 <dom-module id="battery-settings">
17 <template> 15 <template>
18 <!-- TODO(michaelpg): Wrap the line below to fit within the 80-char limit. 16 <!-- TODO(michaelpg): Wrap the line below to fit within the 80-char limit.
19 See https://github.com/Polymer/polymer/pull/3668. --> 17 See https://github.com/Polymer/polymer/pull/3668. -->
20 <style include="device-emulator-shared-styles iron-flex iron-flex-alignment iron-positioning"> 18 <style include="device-emulator-shared-styles iron-flex iron-flex-alignment
19 iron-positioning md-select">
21 </style> 20 </style>
22 <div class="layout vertical"> 21 <div class="layout vertical">
23 <div class="element-label"> 22 <div class="element-label">
24 <paper-icon-button icon="device-emulator:battery-charging-full"> 23 <paper-icon-button icon="device-emulator:battery-charging-full">
25 </paper-icon-button> 24 </paper-icon-button>
26 Power 25 Power
27 </div> 26 </div>
28 <label> 27 <label>
29 <span class="form-label">Battery state</span> 28 <span class="form-label">Battery state</span>
30 <paper-radio-group selected="{{batteryState}}"> 29 <paper-radio-group selected="{{batteryState}}">
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 <paper-button on-tap="onSetAsSourceTap" 66 <paper-button on-tap="onSetAsSourceTap"
68 hidden$="[[!isDualRole(item)]]" 67 hidden$="[[!isDualRole(item)]]"
69 raised="[[!isSelectedSource(item, selectedPowerSourceId)]]" 68 raised="[[!isSelectedSource(item, selectedPowerSourceId)]]"
70 disabled="[[!canBecomeSource( 69 disabled="[[!canBecomeSource(
71 item, selectedPowerSourceId, powerSourceOptions.*)]]"> 70 item, selectedPowerSourceId, powerSourceOptions.*)]]">
72 Set as source 71 Set as source
73 </paper-button> 72 </paper-button>
74 <div hidden$="[[isDualRole(item)]]">Source</div> 73 <div hidden$="[[isDualRole(item)]]">Source</div>
75 </td> 74 </td>
76 <td class="control-cell"> 75 <td class="control-cell">
77 <paper-dropdown-menu class="device-class-group" 76 <div class="md-select-wrapper">
78 disabled="[[!item.variablePower]]"> 77 <select class="md-select" disabled$="[[!item.variablePower]]"
79 <paper-listbox selected="{{item.power}}" 78 on-change="onPowerChanged" value="[[item.power]]">
80 class="dropdown-content" attr-for-selected="data-value"> 79 <option value="high">High</option>
81 <paper-item data-value="high">High</paper-item> 80 <option value="low">Low</option>
82 <paper-item data-value="low">Low</paper-item> 81 </select>
83 </paper-listbox> 82 <span class="md-select-underline"></span>
84 </paper-dropdown-menu> 83 </div>
85 </td> 84 </td>
86 </template> 85 </template>
87 </tbody> 86 </tbody>
88 </table> 87 </table>
89 </div> 88 </div>
90 </template> 89 </template>
91 <script src="battery_settings.js"></script> 90 <script src="battery_settings.js"></script>
92 </dom-module> 91 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/emulator/battery_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698