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

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

Issue 2507363002: MD Settings: Add Hotword (OK Google) section to search_page (Closed)
Patch Set: Self Review Created 4 years, 1 month 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/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="/controls/settings_boolean_control_behavior.html"> 3 <link rel="import" href="/controls/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 14 matching lines...) Expand all
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 <paper-checkbox id="checkbox" checked="{{checked}}" 33 <paper-checkbox id="checkbox" checked="{{checked}}"
34 disabled="[[controlDisabled_(disabled, pref)]]"> 34 disabled="[[controlDisabled_(disabled, pref)]]">
35 <div>[[label]]</div> 35 <div>
36 <span>[[label]]</span>
37 <content></content>
michaelpg 2016/11/27 22:25:33 Performance alarm bells are going off in my head..
stevenjb 2016/11/28 20:53:36 Alas, I am still unaware of an metric that is anyw
38 </div>
36 <div class="secondary">[[subLabel]]</div> 39 <div class="secondary">[[subLabel]]</div>
37 </paper-checkbox> 40 </paper-checkbox>
38 <template is="dom-if" if="[[pref.controlledBy]]"> 41 <template is="dom-if" if="[[pref.controlledBy]]">
39 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> 42 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
40 </template> 43 </template>
41 </div> 44 </div>
42 </template> 45 </template>
43 <script src="settings_checkbox.js"></script> 46 <script src="settings_checkbox.js"></script>
44 </dom-module> 47 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698