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

Side by Side Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_page.html

Issue 2720413002: MD Settings: add an aria-label to control indicators (often policy) (Closed)
Patch Set: merge 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
1 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> 1 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html">
7 <link rel="import" href="../i18n_setup.html"> 7 <link rel="import" href="../i18n_setup.html">
8 <link rel="import" href="../icons.html"> 8 <link rel="import" href="../icons.html">
9 <link rel="import" href="../prefs/prefs.html"> 9 <link rel="import" href="../prefs/prefs.html">
10 <link rel="import" href="../settings_page/settings_animated_pages.html"> 10 <link rel="import" href="../settings_page/settings_animated_pages.html">
(...skipping 10 matching lines...) Expand all
21 <div id="bluetoothDevices" 21 <div id="bluetoothDevices"
22 class="settings-box two-line" actionable on-tap="onTap_"> 22 class="settings-box two-line" actionable on-tap="onTap_">
23 <iron-icon icon="[[getIcon_(bluetoothEnabled_)]]"></iron-icon> 23 <iron-icon icon="[[getIcon_(bluetoothEnabled_)]]"></iron-icon>
24 <div class="middle"> 24 <div class="middle">
25 $i18n{bluetoothPageTitle} 25 $i18n{bluetoothPageTitle}
26 <div class="secondary" id="bluetoothSecondary"> 26 <div class="secondary" id="bluetoothSecondary">
27 [[getOnOffString_(bluetoothEnabled_, 27 [[getOnOffString_(bluetoothEnabled_,
28 '$i18nPolymer{deviceOn}', '$i18nPolymer{deviceOff}')]] 28 '$i18nPolymer{deviceOn}', '$i18nPolymer{deviceOff}')]]
29 </div> 29 </div>
30 </div> 30 </div>
31 <cr-policy-pref-indicator 31 <cr-policy-pref-indicator icon-aria-label="$i18n{bluetoothPageTitle}"
32 pref="[[prefs.cros.device.allow_bluetooth]]" 32 pref="[[prefs.cros.device.allow_bluetooth]]"
33 hidden="[[prefs.cros.device.allow_bluetooth.value]]"> 33 hidden="[[prefs.cros.device.allow_bluetooth.value]]">
34 </cr-policy-pref-indicator> 34 </cr-policy-pref-indicator>
35 <button class="subpage-arrow" is="paper-icon-button-light" 35 <button class="subpage-arrow" is="paper-icon-button-light"
36 on-tap="onSubpageArrowTap_" aria-label="$i18n{bluetoothPageTitle}" 36 on-tap="onSubpageArrowTap_" aria-label="$i18n{bluetoothPageTitle}"
37 aria-describedby="bluetoothSecondary"> 37 aria-describedby="bluetoothSecondary">
38 </button> 38 </button>
39 <div class="secondary-action"> 39 <div class="secondary-action">
40 <paper-toggle-button id="enableBluetooth" 40 <paper-toggle-button id="enableBluetooth"
41 checked="{{bluetoothEnabled_}}" 41 checked="{{bluetoothEnabled_}}"
(...skipping 13 matching lines...) Expand all
55 bluetooth="[[bluetooth]]" 55 bluetooth="[[bluetooth]]"
56 bluetooth-private="[[bluetoothPrivate]]"> 56 bluetooth-private="[[bluetoothPrivate]]">
57 </settings-bluetooth-subpage> 57 </settings-bluetooth-subpage>
58 </settings-subpage> 58 </settings-subpage>
59 </template> 59 </template>
60 60
61 </settings-animated-pages> 61 </settings-animated-pages>
62 </template> 62 </template>
63 <script src="bluetooth_page.js"></script> 63 <script src="bluetooth_page.js"></script>
64 </dom-module> 64 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698