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

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

Issue 2668163002: MD Settings: Fix styles in several places. (Closed)
Patch Set: remove rule-line on spell check page Created 3 years, 10 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'controlled-button', 6 is: 'controlled-button',
7 7
8 behaviors: [ 8 behaviors: [
9 CrPolicyIndicatorBehavior, 9 CrPolicyIndicatorBehavior,
10 CrPolicyPrefBehavior, 10 CrPolicyPrefBehavior,
11 PrefControlBehavior, 11 PrefControlBehavior,
12 ], 12 ],
13 13
14 properties: { 14 properties: {
15 endJustified: { 15 endJustified: {
16 type: Boolean, 16 type: Boolean,
17 value: false, 17 value: false,
18 reflectToAttribute: true, 18 reflectToAttribute: true,
19 }, 19 },
20 20
21 iconClass: {
22 type: String,
23 value: null,
24 reflectToAttribute: true,
25 },
26
21 /** @private */ 27 /** @private */
22 controlled_: { 28 controlled_: {
23 type: Boolean, 29 type: Boolean,
24 computed: 'computeControlled_(pref.*)', 30 computed: 'computeControlled_(pref.*)',
25 reflectToAttribute: true, 31 reflectToAttribute: true,
26 }, 32 },
27 }, 33 },
28 34
29 /** 35 /**
30 * @return {boolean} Whether the button is disabled. 36 * @return {boolean} Whether the button is disabled.
(...skipping 18 matching lines...) Expand all
49 * @return {boolean} Whether to show a controlled by indicator. 55 * @return {boolean} Whether to show a controlled by indicator.
50 * @private 56 * @private
51 */ 57 */
52 showIndicator_: function(pref) { 58 showIndicator_: function(pref) {
53 if (!pref.controlledBy || !pref.enforcement) 59 if (!pref.controlledBy || !pref.enforcement)
54 return false; 60 return false;
55 var indicator = this.getIndicatorType(pref.controlledBy, pref.enforcement); 61 var indicator = this.getIndicatorType(pref.controlledBy, pref.enforcement);
56 return this.isIndicatorVisible(indicator); 62 return this.isIndicatorVisible(indicator);
57 }, 63 },
58 }); 64 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698