| OLD | NEW |
| 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="settings_boolean_control_behavior.html"> | 4 <link rel="import" href="settings_boolean_control_behavior.html"> |
| 5 <link rel="import" href="../settings_shared_css.html"> | 5 <link rel="import" href="../settings_shared_css.html"> |
| 6 | 6 |
| 7 <dom-module id="settings-toggle-button"> | 7 <dom-module id="settings-toggle-button"> |
| 8 <template> | 8 <template> |
| 9 <style include="settings-shared"> | 9 <style include="settings-shared"> |
| 10 :host([elide-label]), | 10 :host([elide-label]), |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 width: 100%; | 24 width: 100%; |
| 25 } | 25 } |
| 26 | 26 |
| 27 #outerRow[noSubLabel] { | 27 #outerRow[noSubLabel] { |
| 28 min-height: var(--settings-row-min-height); | 28 min-height: var(--settings-row-min-height); |
| 29 } | 29 } |
| 30 | 30 |
| 31 #labelWrapper, | 31 #labelWrapper, |
| 32 ::content .more-actions, | 32 ::content .more-actions, |
| 33 cr-policy-pref-indicator { | 33 cr-policy-pref-indicator { |
| 34 -webkit-margin-start: var(--settings-control-spacing); | 34 -webkit-margin-end: var(--settings-control-spacing); |
| 35 } | 35 } |
| 36 </style> | 36 </style> |
| 37 <div id="outerRow" noSubLabel$="[[!subLabel]]"> | 37 <div id="outerRow" noSubLabel$="[[!subLabel]]"> |
| 38 <div class="flex" id="labelWrapper" on-tap="onLabelWrapperTap_" | 38 <div class="flex" id="labelWrapper" on-tap="onLabelWrapperTap_" |
| 39 actionable$="[[!controlDisabled_(disabled, pref.*)]]" | 39 actionable$="[[!controlDisabled_(disabled, pref.*)]]" |
| 40 hidden="[[!label]]"> | 40 hidden="[[!label]]"> |
| 41 <div id="label" class="label">[[label]]</div> | 41 <div id="label" class="label">[[label]]</div> |
| 42 <div id="subLabel" class="secondary label">[[subLabel]]</div> | 42 <div id="subLabel" class="secondary label">[[subLabel]]</div> |
| 43 </div> | 43 </div> |
| 44 <content select=".more-actions"></content> | 44 <content select=".more-actions"></content> |
| 45 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> | 45 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]"> |
| 46 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> | 46 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> |
| 47 </cr-policy-pref-indicator> | 47 </cr-policy-pref-indicator> |
| 48 </template> | 48 </template> |
| 49 <paper-toggle-button id="control" checked="{{checked}}" | 49 <paper-toggle-button id="control" checked="{{checked}}" |
| 50 on-change="notifyChangedByUserInteraction" aria-labelledby="label" | 50 on-change="notifyChangedByUserInteraction" aria-labelledby="label" |
| 51 aria-describedby="subLabel" | 51 aria-describedby="subLabel" |
| 52 disabled="[[controlDisabled_(disabled, pref)]]"> | 52 disabled="[[controlDisabled_(disabled, pref)]]"> |
| 53 </paper-toggle-button> | 53 </paper-toggle-button> |
| 54 </div> | 54 </div> |
| 55 </template> | 55 </template> |
| 56 <script src="settings_toggle_button.js"></script> | 56 <script src="settings_toggle_button.js"></script> |
| 57 </dom-module> | 57 </dom-module> |
| OLD | NEW |