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="chrome://resources/cr_elements/policy/cr_policy_pref_be
havior.html"> |
4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in
dicator.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"> | 5 <link rel="import" href="/controls/pref_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-checkbox"> | 8 <dom-module id="settings-checkbox"> |
9 <link rel="import" type="css" href="chrome://resources/cr_elements/shared.css"
> | 9 <link rel="import" type="css" href="chrome://resources/cr_elements/shared.css"
> |
10 <template> | 10 <template> |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 paper-checkbox:not([disabled]) { | 27 paper-checkbox:not([disabled]) { |
28 width: 100%; | 28 width: 100%; |
29 } | 29 } |
30 | 30 |
31 paper-checkbox:not([checked]) .secondary { | 31 paper-checkbox:not([checked]) .secondary { |
32 @apply(--settings-secondary-unchecked); | 32 @apply(--settings-secondary-unchecked); |
33 } | 33 } |
34 | 34 |
35 cr-policy-pref-indicator { | 35 cr-policy-pref-indicator { |
36 -webkit-margin-start: var(--checkbox-spacing); | 36 -webkit-margin-start: var(--settings-checkbox-spacing); |
37 } | 37 } |
38 </style> | 38 </style> |
39 <div id="outerRow" noSubLabel$="[[!subLabel]]"> | 39 <div id="outerRow" noSubLabel$="[[!subLabel]]"> |
40 <paper-checkbox id="checkbox" checked="{{checked}}" | 40 <paper-checkbox id="checkbox" checked="{{checked}}" |
41 disabled="[[checkboxDisabled_(disabled, pref)]]"> | 41 disabled="[[checkboxDisabled_(disabled, pref)]]"> |
42 <div>[[label]]</div> | 42 <div>[[label]]</div> |
43 <div class="secondary">[[subLabel]]</div> | 43 <div class="secondary">[[subLabel]]</div> |
44 </paper-checkbox> | 44 </paper-checkbox> |
45 <template is="dom-if" if="[[pref.policySource]]"> | 45 <template is="dom-if" if="[[pref.policySource]]"> |
46 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> | 46 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> |
47 </template> | 47 </template> |
48 </div> | 48 </div> |
49 </template> | 49 </template> |
50 <script src="settings_checkbox.js"></script> | 50 <script src="settings_checkbox.js"></script> |
51 </dom-module> | 51 </dom-module> |
OLD | NEW |