| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @fileoverview |
| 7 * `important-site-checkbox` is a checkbox that displays an important site. |
| 8 * An important site represents a domain with data that the user might want |
| 9 * to protect from beeing deleted. ImportantSites are determined based on |
| 10 * various engagement factors, such as whether a site is bookmarked or receives |
| 11 * notifications. |
| 12 */ |
| 13 Polymer({ |
| 14 is: 'important-site-checkbox', |
| 15 |
| 16 properties: { |
| 17 /** @type {ImportantSite} */ |
| 18 site: Object, |
| 19 |
| 20 disabled: {type: Boolean, value: false}, |
| 21 }, |
| 22 |
| 23 /** |
| 24 * Returns the icon to use for a given site. |
| 25 * @param {string} url The url of the site to fetch the icon for. |
| 26 * @return {string} The background-image style with the favicon. |
| 27 * @private |
| 28 */ |
| 29 siteIcon_: function(url) { |
| 30 return 'background-image: ' + cr.icon.getFavicon(url); |
| 31 }, |
| 32 }); |
| OLD | NEW |