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

Unified Diff: chrome/browser/resources/settings/device_page/power.html

Issue 2853113004: chromeos: Add settings to control power management prefs. (Closed)
Patch Set: switch back from aria-labelledby to aria-label 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/device_page/power.html
diff --git a/chrome/browser/resources/settings/device_page/power.html b/chrome/browser/resources/settings/device_page/power.html
index 9250dfc59cbffb3e3db0e3adbf7b12541cd24fc3..f007de7e9a938367f651b2c0f72eedabcc014eb3 100644
--- a/chrome/browser/resources/settings/device_page/power.html
+++ b/chrome/browser/resources/settings/device_page/power.html
@@ -1,5 +1,6 @@
<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_indicator.html">
<link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/md_select_css.html">
@@ -35,6 +36,48 @@
[[powerSourceName_]]
</div>
</div>
+
+ <div class="settings-box">
+ <div class="start">$i18n{powerIdleLabel}</div>
+ <template is="dom-if" if="[[idleControlled_]]" restamp>
+ <cr-policy-indicator id="idleControlledIndicator"
+ indicator-type="devicePolicy"
+ icon-aria-label="$i18n{powerIdleLabel}">
+ </cr-policy-indicator>
+ </template>
+ <div class="md-select-wrapper">
+ <select id="idleSelect" class="md-select"
+ on-change="onIdleSelectChange_" disabled="[[idleControlled_]]"
+ aria-label="$i18n{powerIdleLabel}">
+ <template is="dom-repeat" items="[[idleOptions_]]">
+ <option value="[[item.value]]">[[item.name]]</option>
+ </template>
+ </select>
+ <span class="md-select-underline"></span>
+ </div>
+ </div>
+
+ <div id="lidClosedRow" class="settings-box continuation"
+ hidden$="[[!hasLid_]]">
+ <div class="start">$i18n{powerLidClosedLabel}</div>
+ <template is="dom-if" if="[[lidClosedControlled_]]" restamp>
+ <cr-policy-indicator id="lidClosedControlledIndicator"
+ indicator-type="devicePolicy"
+ icon-aria-label="$i18n{powerLidClosedLabel}">
+ </cr-policy-indicator>
+ </template>
+ <div class="md-select-wrapper">
+ <select id="lidClosedSelect" class="md-select"
+ on-change="onLidClosedSelectChange_"
+ disabled="[[lidClosedControlled_]]"
+ aria-label="$i18n{powerLidClosedLabel}">
+ <template is="dom-repeat" items="[[lidClosedOptions_]]">
+ <option value="[[item.value]]">[[item.name]]</option>
+ </template>
+ </select>
+ <span class="md-select-underline"></span>
+ </div>
+ </div>
</template>
<script src="power.js"></script>
</dom-module>

Powered by Google App Engine
This is Rietveld 408576698