OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 | 2 |
| 3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_indicat
or.html"> |
3 <link rel="import" href="chrome://resources/html/cr.html"> | 4 <link rel="import" href="chrome://resources/html/cr.html"> |
4 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 5 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
5 <link rel="import" href="chrome://resources/html/md_select_css.html"> | 6 <link rel="import" href="chrome://resources/html/md_select_css.html"> |
6 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 7 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
7 <link rel="import" href="../route.html"> | 8 <link rel="import" href="../route.html"> |
8 <link rel="import" href="../settings_shared_css.html"> | 9 <link rel="import" href="../settings_shared_css.html"> |
9 | 10 |
10 <dom-module id="settings-power"> | 11 <dom-module id="settings-power"> |
11 <template> | 12 <template> |
12 <style include="settings-shared md-select"></style> | 13 <style include="settings-shared md-select"></style> |
(...skipping 15 matching lines...) Expand all Loading... |
28 [[item.description]] | 29 [[item.description]] |
29 </option> | 30 </option> |
30 </template> | 31 </template> |
31 </select> | 32 </select> |
32 <span class="md-select-underline"></span> | 33 <span class="md-select-underline"></span> |
33 </div> | 34 </div> |
34 <div hidden$="[[showPowerSourceDropdown_]]"> | 35 <div hidden$="[[showPowerSourceDropdown_]]"> |
35 [[powerSourceName_]] | 36 [[powerSourceName_]] |
36 </div> | 37 </div> |
37 </div> | 38 </div> |
| 39 |
| 40 <div class="settings-box"> |
| 41 <div class="start">$i18n{powerIdleLabel}</div> |
| 42 <template is="dom-if" if="[[idleControlled_]]" restamp> |
| 43 <cr-policy-indicator id="idleControlledIndicator" |
| 44 indicator-type="devicePolicy" |
| 45 icon-aria-label="$i18n{powerIdleLabel}"> |
| 46 </cr-policy-indicator> |
| 47 </template> |
| 48 <div class="md-select-wrapper"> |
| 49 <select id="idleSelect" class="md-select" |
| 50 on-change="onIdleSelectChange_" disabled="[[idleControlled_]]" |
| 51 aria-label="$i18n{powerIdleLabel}"> |
| 52 <template is="dom-repeat" items="[[idleOptions_]]"> |
| 53 <option value="[[item.value]]">[[item.name]]</option> |
| 54 </template> |
| 55 </select> |
| 56 <span class="md-select-underline"></span> |
| 57 </div> |
| 58 </div> |
| 59 |
| 60 <div id="lidClosedRow" class="settings-box continuation" |
| 61 hidden$="[[!hasLid_]]"> |
| 62 <div class="start">$i18n{powerLidClosedLabel}</div> |
| 63 <template is="dom-if" if="[[lidClosedControlled_]]" restamp> |
| 64 <cr-policy-indicator id="lidClosedControlledIndicator" |
| 65 indicator-type="devicePolicy" |
| 66 icon-aria-label="$i18n{powerLidClosedLabel}"> |
| 67 </cr-policy-indicator> |
| 68 </template> |
| 69 <div class="md-select-wrapper"> |
| 70 <select id="lidClosedSelect" class="md-select" |
| 71 on-change="onLidClosedSelectChange_" |
| 72 disabled="[[lidClosedControlled_]]" |
| 73 aria-label="$i18n{powerLidClosedLabel}"> |
| 74 <template is="dom-repeat" items="[[lidClosedOptions_]]"> |
| 75 <option value="[[item.value]]">[[item.name]]</option> |
| 76 </template> |
| 77 </select> |
| 78 <span class="md-select-underline"></span> |
| 79 </div> |
| 80 </div> |
38 </template> | 81 </template> |
39 <script src="power.js"></script> | 82 <script src="power.js"></script> |
40 </dom-module> | 83 </dom-module> |
OLD | NEW |