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

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

Issue 2696903005: Move common cr-policy-indicator behavior into CrPolicyIndicatorBehavior (Closed)
Patch Set: rename hasPolicy 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/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html"> 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html">
3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> 3 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
4 <link rel="import" href="pref_control_behavior.html"> 4 <link rel="import" href="pref_control_behavior.html">
5 <link rel="import" href="../prefs/pref_util.html"> 5 <link rel="import" href="../prefs/pref_util.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="controlled-radio-button"> 8 <dom-module id="controlled-radio-button">
9 <template> 9 <template>
10 <style include="settings-shared"> 10 <style include="settings-shared">
(...skipping 19 matching lines...) Expand all
30 * clicks/taps via onIndicatorTap_ so outer on-tap doesn't trigger. */ 30 * clicks/taps via onIndicatorTap_ so outer on-tap doesn't trigger. */
31 pointer-events: all; 31 pointer-events: all;
32 } 32 }
33 </style> 33 </style>
34 34
35 <paper-radio-button id="radioButton" name="{{name}}" checked="{{checked}}" 35 <paper-radio-button id="radioButton" name="{{name}}" checked="{{checked}}"
36 disabled="[[controlled_]]" tabindex$="[[tabindex]]"> 36 disabled="[[controlled_]]" tabindex$="[[tabindex]]">
37 <content></content> 37 <content></content>
38 </paper-radio-button> 38 </paper-radio-button>
39 39
40 <template is="dom-if" if="[[showIndicator_(controlled_, name, pref)]]"> 40 <template is="dom-if" if="[[showIndicator_(controlled_, name, pref.*)]]">
41 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_"> 41 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_">
42 </cr-policy-pref-indicator> 42 </cr-policy-pref-indicator>
43 </template> 43 </template>
44 44
45 </template> 45 </template>
46 <script src="controlled_radio_button.js"></script> 46 <script src="controlled_radio_button.js"></script>
47 </dom-module> 47 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698