Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |