Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: chrome/browser/resources/settings/controls/settings_checkbox.html

Issue 2696903005: Move common cr-policy-indicator behavior into CrPolicyIndicatorBehavior (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
1 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <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"> 3 <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"> 4 <link rel="import" href="settings_boolean_control_behavior.html">
4 <link rel="import" href="../settings_shared_css.html"> 5 <link rel="import" href="../settings_shared_css.html">
5 6
6 <dom-module id="settings-checkbox"> 7 <dom-module id="settings-checkbox">
7 <template> 8 <template>
8 <style include="settings-shared"> 9 <style include="settings-shared">
9 #outerRow { 10 #outerRow {
10 align-items: center; 11 align-items: center;
(...skipping 14 matching lines...) Expand all
25 @apply(--settings-secondary-unchecked); 26 @apply(--settings-secondary-unchecked);
26 } 27 }
27 28
28 cr-policy-pref-indicator { 29 cr-policy-pref-indicator {
29 -webkit-margin-start: var(--checkbox-spacing); 30 -webkit-margin-start: var(--checkbox-spacing);
30 } 31 }
31 </style> 32 </style>
32 <div id="outerRow" noSubLabel$="[[!subLabel]]"> 33 <div id="outerRow" noSubLabel$="[[!subLabel]]">
33 <paper-checkbox id="checkbox" checked="{{checked}}" 34 <paper-checkbox id="checkbox" checked="{{checked}}"
34 on-change="notifyChangedByUserInteraction" 35 on-change="notifyChangedByUserInteraction"
35 disabled="[[controlDisabled_(disabled, pref)]]"> 36 disabled="[[controlDisabled_(disabled, pref.*)]]">
36 <div>[[label]] <content></content></div> 37 <div>[[label]] <content></content></div>
37 <div class="secondary">[[subLabel]]</div> 38 <div class="secondary">[[subLabel]]</div>
38 </paper-checkbox> 39 </paper-checkbox>
39 <template is="dom-if" if="[[pref.controlledBy]]"> 40 <template is="dom-if" if="[[pref.controlledBy]]">
40 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> 41 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
41 </template> 42 </template>
42 </div> 43 </div>
43 </template> 44 </template>
44 <script src="settings_checkbox.js"></script> 45 <script src="settings_checkbox.js"></script>
45 </dom-module> 46 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698