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-checkbox/paper-ch
eckbox.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.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-checkbox"> | 7 <dom-module id="settings-checkbox"> |
8 <template> | 8 <template> |
9 <style include="settings-shared"> | 9 <style include="settings-shared"> |
10 #outerRow { | 10 #outerRow { |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 </style> | 32 </style> |
33 <div id="outerRow" noSubLabel$="[[!subLabel]]"> | 33 <div id="outerRow" noSubLabel$="[[!subLabel]]"> |
34 <paper-checkbox id="checkbox" checked="{{checked}}" | 34 <paper-checkbox id="checkbox" checked="{{checked}}" |
35 on-change="notifyChangedByUserInteraction" | 35 on-change="notifyChangedByUserInteraction" |
36 disabled="[[controlDisabled_(disabled, pref.*)]]"> | 36 disabled="[[controlDisabled_(disabled, pref.*)]]"> |
37 <div>[[label]] <content></content></div> | 37 <div>[[label]] <content></content></div> |
38 <div class="secondary">[[subLabel]]</div> | 38 <div class="secondary">[[subLabel]]</div> |
39 </paper-checkbox> | 39 </paper-checkbox> |
40 <template is="dom-if" if="[[pref.controlledBy]]"> | 40 <template is="dom-if" if="[[pref.controlledBy]]"> |
41 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> | 41 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]"> |
| 42 </cr-policy-pref-indicator> |
42 </template> | 43 </template> |
43 </div> | 44 </div> |
44 </template> | 45 </template> |
45 <script src="settings_checkbox.js"></script> | 46 <script src="settings_checkbox.js"></script> |
46 </dom-module> | 47 </dom-module> |
OLD | NEW |