| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** | 5 /** |
| 6 * @fileoverview Behavior common to Site Settings classes. | 6 * @fileoverview Behavior common to Site Settings classes. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** @polymerBehavior */ | 9 /** @polymerBehavior */ |
| 10 var SiteSettingsBehaviorImpl = { | 10 var SiteSettingsBehaviorImpl = { |
| 11 properties: { | 11 properties: { |
| 12 /** | 12 /** |
| 13 * The string ID of the category this element is displaying data for. | 13 * The string ID of the category this element is displaying data for. |
| 14 * See site_settings/constants.js for possible values. | 14 * See site_settings/constants.js for possible values. |
| 15 */ | 15 */ |
| 16 category: String, | 16 category: String, |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * The browser proxy used to retrieve and change information about site | 19 * The browser proxy used to retrieve and change information about site |
| 20 * settings categories and the sites within. | 20 * settings categories and the sites within. |
| 21 * @type {settings.SiteSettingsPrefsBrowserProxyImpl} | 21 * @type {settings.SiteSettingsPrefsBrowserProxy} |
| 22 */ | 22 */ |
| 23 browserProxy: Object, | 23 browserProxy: Object, |
| 24 }, | 24 }, |
| 25 | 25 |
| 26 created: function() { | 26 created: function() { |
| 27 this.browserProxy = | 27 this.browserProxy = |
| 28 settings.SiteSettingsPrefsBrowserProxyImpl.getInstance(); | 28 settings.SiteSettingsPrefsBrowserProxyImpl.getInstance(); |
| 29 }, | 29 }, |
| 30 | 30 |
| 31 ready: function() { | 31 ready: function() { |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 * @private | 367 * @private |
| 368 */ | 368 */ |
| 369 computeSiteIcon: function(site) { | 369 computeSiteIcon: function(site) { |
| 370 var url = this.ensureUrlHasScheme(site.originForDisplay); | 370 var url = this.ensureUrlHasScheme(site.originForDisplay); |
| 371 return 'background-image: ' + cr.icon.getFaviconImageSet(url); | 371 return 'background-image: ' + cr.icon.getFaviconImageSet(url); |
| 372 }, | 372 }, |
| 373 }; | 373 }; |
| 374 | 374 |
| 375 /** @polymerBehavior */ | 375 /** @polymerBehavior */ |
| 376 var SiteSettingsBehavior = [SiteSettingsBehaviorImpl]; | 376 var SiteSettingsBehavior = [SiteSettingsBehaviorImpl]; |
| OLD | NEW |