| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
| 3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be
havior.html"> | 3 <link rel="import" href="/controls/settings_boolean_control_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in
dicator.html"> | |
| 5 <link rel="import" href="/controls/pref_control_behavior.html"> | |
| 6 <link rel="import" href="/settings_shared_css.html"> | 4 <link rel="import" href="/settings_shared_css.html"> |
| 7 | 5 |
| 8 <dom-module id="settings-checkbox"> | 6 <dom-module id="settings-checkbox"> |
| 9 <template> | 7 <template> |
| 10 <style include="settings-shared"> | 8 <style include="settings-shared"> |
| 11 #outerRow { | 9 #outerRow { |
| 12 align-items: center; | 10 align-items: center; |
| 13 display: flex; | 11 display: flex; |
| 14 min-height: var(--settings-row-two-line-min-height); | 12 min-height: var(--settings-row-two-line-min-height); |
| 15 width: 100%; | 13 width: 100%; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 30 paper-checkbox:not([checked]) .secondary { | 28 paper-checkbox:not([checked]) .secondary { |
| 31 @apply(--settings-secondary-unchecked); | 29 @apply(--settings-secondary-unchecked); |
| 32 } | 30 } |
| 33 | 31 |
| 34 cr-policy-pref-indicator { | 32 cr-policy-pref-indicator { |
| 35 -webkit-margin-start: var(--checkbox-spacing); | 33 -webkit-margin-start: var(--checkbox-spacing); |
| 36 } | 34 } |
| 37 </style> | 35 </style> |
| 38 <div id="outerRow" noSubLabel$="[[!subLabel]]"> | 36 <div id="outerRow" noSubLabel$="[[!subLabel]]"> |
| 39 <paper-checkbox id="checkbox" checked="{{checked}}" | 37 <paper-checkbox id="checkbox" checked="{{checked}}" |
| 40 disabled="[[checkboxDisabled_(disabled, pref)]]"> | 38 disabled="[[controlDisabled_(disabled, pref)]]"> |
| 41 <div>[[label]]</div> | 39 <div>[[label]]</div> |
| 42 <div class="secondary">[[subLabel]]</div> | 40 <div class="secondary">[[subLabel]]</div> |
| 43 </paper-checkbox> | 41 </paper-checkbox> |
| 44 <template is="dom-if" if="[[pref.policySource]]"> | 42 <template is="dom-if" if="[[pref.policySource]]"> |
| 45 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> | 43 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> |
| 46 </template> | 44 </template> |
| 47 </div> | 45 </div> |
| 48 </template> | 46 </template> |
| 49 <script src="settings_checkbox.js"></script> | 47 <script src="settings_checkbox.js"></script> |
| 50 </dom-module> | 48 </dom-module> |
| OLD | NEW |