OLD | NEW |
---|---|
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 Loading... | |
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"> |
dpapad
2017/06/16 00:55:19
Nit: Can we fit those into one line?
<option valu
scottchen
2017/06/16 01:53:20
Done.
| |
81 <paper-item data-value="high">High</paper-item> | 80 High |
82 <paper-item data-value="low">Low</paper-item> | 81 </option> |
83 </paper-listbox> | 82 <option value="low"> |
84 </paper-dropdown-menu> | 83 Low |
84 </option> | |
85 </select> | |
86 <span class="md-select-underline"></span> | |
87 </div> | |
85 </td> | 88 </td> |
86 </template> | 89 </template> |
87 </tbody> | 90 </tbody> |
88 </table> | 91 </table> |
89 </div> | 92 </div> |
90 </template> | 93 </template> |
91 <script src="battery_settings.js"></script> | 94 <script src="battery_settings.js"></script> |
92 </dom-module> | 95 </dom-module> |
OLD | NEW |