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

Side by Side Diff: chrome/browser/resources/settings/controls/settings_toggle_button.html

Issue 2864563002: MD Settings: Fix dragging slider bugging out the Enter key. (Closed)
Patch Set: also fix this for settings-toggle-button Created 3 years, 7 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/paper-toggle-button/pap er-toggle-button.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html">
5 <link rel="import" href="settings_boolean_control_behavior.html"> 5 <link rel="import" href="settings_boolean_control_behavior.html">
6 <link rel="import" href="../settings_shared_css.html"> 6 <link rel="import" href="../settings_shared_css.html">
7 7
8 <dom-module id="settings-toggle-button"> 8 <dom-module id="settings-toggle-button">
9 <template> 9 <template>
10 <style include="settings-shared iron-flex"> 10 <style include="settings-shared iron-flex">
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 <div id="label" class="label">[[label]]</div> 42 <div id="label" class="label">[[label]]</div>
43 <div id="subLabel" class="secondary label">[[subLabel]]</div> 43 <div id="subLabel" class="secondary label">[[subLabel]]</div>
44 </div> 44 </div>
45 <content select=".more-actions"></content> 45 <content select=".more-actions"></content>
46 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> 46 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]">
47 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> 47 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]">
48 </cr-policy-pref-indicator> 48 </cr-policy-pref-indicator>
49 </template> 49 </template>
50 <paper-toggle-button id="control" checked="{{checked}}" 50 <paper-toggle-button id="control" checked="{{checked}}"
51 on-change="notifyChangedByUserInteraction" aria-labelledby="label" 51 on-change="notifyChangedByUserInteraction" aria-labelledby="label"
52 aria-describedby="subLabel" 52 aria-describedby="subLabel" on-up="resetTrackLock_"
53 disabled="[[controlDisabled_(disabled, pref)]]"> 53 disabled="[[controlDisabled_(disabled, pref)]]">
54 </paper-toggle-button> 54 </paper-toggle-button>
55 </div> 55 </div>
56 </template> 56 </template>
57 <script src="settings_toggle_button.js"></script> 57 <script src="settings_toggle_button.js"></script>
58 </dom-module> 58 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698