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

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: asdf Created 4 years, 4 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
(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 :host {
13 align-items: center;
14 display: flex;
15 }
16
17 cr-policy-pref-indicator {
18 -webkit-margin-start: var(--checkbox-spacing);
19 pointer-events: all;
20 }
21 </style>
22
23 <paper-button disabled="[[disabled]]">
24 <content></content>
25 </paper-button>
26
27 <template is="dom-if" if="[[disabled]]">
stevenjb 2016/07/26 19:50:09 If we use |disabled|, then I think this needs to b
Dan Beam 2016/07/26 22:28:40 change to controlled_
28 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_">
29 </cr-policy-pref-indicator>
30 </template>
31
32 </template>
33 <script src="/controls/controlled_button.js"></script>
34 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698