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

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

Issue 2178273002: MD Settings: add a <controlled-button> that uses prefs to disable itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again Created 4 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/controlled_button.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.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">
5 <link rel="import" href="/controls/pref_control_behavior.html">
6 <link rel="import" href="/settings_shared_css.html">
7
8 <dom-module id="controlled-button">
9 <link rel="import" type="css" href="chrome://resources/cr_elements/shared.css" >
10 <template>
11 <style include="settings-shared">
12 cr-policy-pref-indicator {
13 -webkit-margin-start: var(--checkbox-spacing);
14 }
15 </style>
16
17 <paper-button disabled="[[disabled_]]">
stevenjb 2016/07/26 16:19:34 'disabled_' confused me for a bit, maybe 'prefDisa
Dan Beam 2016/07/26 19:36:50 I actually changed to "disabled" as it matches a :
18 <content></content>
19 </paper-button>
20
21 <template is="dom-if" if="[[disabled_]]">
22 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
23 </template>
24 </template>
25 <script src="/controls/controlled_button.js"></script>
26 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/controlled_button.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698