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

Side by Side Diff: chrome/browser/resources/settings/device_page/power.html

Issue 2629573006: chromeos: Add Power device page to chrome://md-settings. (Closed)
Patch Set: update now that power source settings exist Created 3 years, 9 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
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/html/cr.html">
2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="../route.html">
4 <link rel="import" href="../settings_shared_css.html">
michaelpg 2017/03/01 05:20:38 import what you use (eg md_select_css.html, i18n_b
Daniel Erat 2017/03/01 23:01:53 Done.
5
6 <dom-module id="settings-power">
7 <template>
8 <style include="settings-shared md-select"></style>
9 <div id="powerSourceRow" class="settings-box first two-line">
10 <div class="start">
11 <div>[[powerSourceLabel_]]</div>
12 <div class="secondary">[[batteryStatus_.statusText]]</div>
13 </div>
14 <div class="md-select-wrapper" hidden$="[[!showPowerSourceDropdown_]]">
15 <select id="powerSource" class="md-select"
16 on-change="onPowerSourceChange_">
17 <option value="" selected$="[[isEqual_('', selectedPowerSourceId_)]]">
18 $i18n{powerSourceBattery}
19 </option>
20 <template is="dom-repeat" items="[[powerSources_]]">
21 <option value="[[item.id]]"
22 selected$="[[isEqual_(item.id, selectedPowerSourceId_)]]">
23 [[item.description]]
24 </option>
25 </template>
26 </select>
27 <span class="md-select-underline"></span>
28 </div>
29 <div hidden$="[[showPowerSourceDropdown_]]">
30 [[powerSourceName_]]
31 </div>
32 </div>
33 </template>
34 <script src="power.js"></script>
35 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698