| 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="settings_boolean_control_behavior.html"> | 3 <link rel="import" href="settings_boolean_control_behavior.html"> |
| 4 <link rel="import" href="../settings_shared_css.html"> | 4 <link rel="import" href="../settings_shared_css.html"> |
| 5 | 5 |
| 6 <dom-module id="settings-checkbox"> | 6 <dom-module id="settings-checkbox"> |
| 7 <template> | 7 <template> |
| 8 <style include="settings-shared"> | 8 <style include="settings-shared"> |
| 9 #outerRow { | 9 #outerRow { |
| 10 align-items: center; | 10 align-items: center; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 paper-checkbox:not([checked]) .secondary { | 24 paper-checkbox:not([checked]) .secondary { |
| 25 @apply(--settings-secondary-unchecked); | 25 @apply(--settings-secondary-unchecked); |
| 26 } | 26 } |
| 27 | 27 |
| 28 cr-policy-pref-indicator { | 28 cr-policy-pref-indicator { |
| 29 -webkit-margin-start: var(--checkbox-spacing); | 29 -webkit-margin-start: var(--checkbox-spacing); |
| 30 } | 30 } |
| 31 </style> | 31 </style> |
| 32 <div id="outerRow" noSubLabel$="[[!subLabel]]"> | 32 <div id="outerRow" noSubLabel$="[[!subLabel]]"> |
| 33 <!-- TODO(dbeam): should we be calling notifyChangedByUserInteraction | |
| 34 somewhere here like we do for settings-toggle-button? --> | |
| 35 <paper-checkbox id="checkbox" checked="{{checked}}" | 33 <paper-checkbox id="checkbox" checked="{{checked}}" |
| 34 on-change="notifyChangedByUserInteraction" |
| 36 disabled="[[controlDisabled_(disabled, pref)]]"> | 35 disabled="[[controlDisabled_(disabled, pref)]]"> |
| 37 <div>[[label]] <content></content></div> | 36 <div>[[label]] <content></content></div> |
| 38 <div class="secondary">[[subLabel]]</div> | 37 <div class="secondary">[[subLabel]]</div> |
| 39 </paper-checkbox> | 38 </paper-checkbox> |
| 40 <template is="dom-if" if="[[pref.controlledBy]]"> | 39 <template is="dom-if" if="[[pref.controlledBy]]"> |
| 41 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> | 40 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> |
| 42 </template> | 41 </template> |
| 43 </div> | 42 </div> |
| 44 </template> | 43 </template> |
| 45 <script src="settings_checkbox.js"></script> | 44 <script src="settings_checkbox.js"></script> |
| 46 </dom-module> | 45 </dom-module> |
| OLD | NEW |