OLD | NEW |
---|---|
1 <link rel="import" href="chrome://resources/html/cr.html"> | 1 <link rel="import" href="chrome://resources/html/cr.html"> |
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
3 <link rel="import" href="chrome://resources/html/md_select_css.html"> | 3 <link rel="import" href="chrome://resources/html/md_select_css.html"> |
4 <link rel="import" href="chrome://resources/html/polymer.html"> | 4 <link rel="import" href="chrome://resources/html/polymer.html"> |
5 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 5 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
6 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_indicat or.html"> | |
michaelpg
2017/05/08 18:48:55
place alphabetically -- yes, that puts it before p
use derat at chromium.org
2017/05/08 23:27:17
Done.
| |
6 <link rel="import" href="../route.html"> | 7 <link rel="import" href="../route.html"> |
7 <link rel="import" href="../settings_shared_css.html"> | 8 <link rel="import" href="../settings_shared_css.html"> |
8 | 9 |
9 <dom-module id="settings-power"> | 10 <dom-module id="settings-power"> |
10 <template> | 11 <template> |
11 <style include="settings-shared md-select"></style> | 12 <style include="settings-shared md-select"></style> |
12 <div id="powerSourceRow" class="settings-box first two-line"> | 13 <div id="powerSourceRow" class="settings-box first two-line"> |
13 <div class="start"> | 14 <div class="start"> |
14 <div>[[powerSourceLabel_]]</div> | 15 <div>[[powerSourceLabel_]]</div> |
15 <div class="secondary">[[batteryStatus_.statusText]]</div> | 16 <div class="secondary">[[batteryStatus_.statusText]]</div> |
(...skipping 11 matching lines...) Expand all Loading... | |
27 [[item.description]] | 28 [[item.description]] |
28 </option> | 29 </option> |
29 </template> | 30 </template> |
30 </select> | 31 </select> |
31 <span class="md-select-underline"></span> | 32 <span class="md-select-underline"></span> |
32 </div> | 33 </div> |
33 <div hidden$="[[showPowerSourceDropdown_]]"> | 34 <div hidden$="[[showPowerSourceDropdown_]]"> |
34 [[powerSourceName_]] | 35 [[powerSourceName_]] |
35 </div> | 36 </div> |
36 </div> | 37 </div> |
38 | |
39 <div class="settings-box"> | |
40 <div class="start">$i18n{powerIdleLabel}</div> | |
41 <template is="dom-if" if="[[idleManaged_]]" restamp> | |
42 <cr-policy-indicator indicator-type="devicePolicy" | |
43 icon-aria-label="$i18n{powerIdleLabel}"> | |
44 </cr-policy-indicator> | |
45 </template> | |
46 <div class="md-select-wrapper"> | |
47 <select class="md-select" id="idleSelect" | |
48 on-change="onIdleSelectChange_" disabled="[[idleManaged_]]"> | |
49 <template is="dom-repeat" items="[[idleOptions_]]"> | |
50 <option value="[[item.value]]">[[item.name]]</option> | |
51 </template> | |
52 </select> | |
53 <span class="md-select-underline"></span> | |
54 </div> | |
55 </div> | |
56 | |
57 <div class="settings-box continuation"> | |
58 <div class="start">$i18n{powerLidClosedLabel}</div> | |
59 <template is="dom-if" if="[[lidClosedManaged_]]" restamp> | |
60 <cr-policy-indicator indicator-type="devicePolicy" | |
61 icon-aria-label="$i18n{powerLidClosedLabel}"> | |
62 </cr-policy-indicator> | |
63 </template> | |
64 <div class="md-select-wrapper"> | |
65 <select class="md-select" id="lidClosedSelect" | |
66 on-change="onLidClosedSelectChange_" | |
67 disabled="[[lidClosedManaged_]]"> | |
68 <template is="dom-repeat" items="[[lidClosedOptions_]]"> | |
69 <option value="[[item.value]]">[[item.name]]</option> | |
70 </template> | |
71 </select> | |
72 <span class="md-select-underline"></span> | |
73 </div> | |
74 </div> | |
37 </template> | 75 </template> |
38 <script src="power.js"></script> | 76 <script src="power.js"></script> |
39 </dom-module> | 77 </dom-module> |
OLD | NEW |