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 */ | |
9 Polymer({ | |
10 is: 'important-site-checkbox', | |
11 | |
12 properties: { | |
13 /** The ImportantSite associated with this checkbox. */ | |
dschuyler
2017/04/27 23:10:25
nit: consider removing comment.
(if the comment is
dullweber
2017/04/28 12:34:03
Done.
| |
14 site: { | |
15 type: ImportantSite, | |
16 }, | |
dschuyler
2017/04/27 23:10:25
site: ImportantSite,
dullweber
2017/04/28 12:34:03
Do you mean that I should remove the object with t
dschuyler
2017/04/28 19:31:13
My intention was that the three lines of code
sit
dullweber
2017/05/02 10:38:45
That doesn't seem to work. I guess the problem is
dschuyler
2017/05/02 18:19:23
You're right. Sorry, I totally wrote the wrong thi
| |
17 | |
18 /** Whether this checkbox should be disabled. */ | |
dschuyler
2017/04/27 23:10:25
nit: consider removing comment - the code seems cl
dullweber
2017/04/28 12:34:03
I removed all comments. I thought public propertie
| |
19 disabled: {type: Boolean, value: false}, | |
20 }, | |
21 | |
22 /** | |
23 * Returns the icon to use for a given site. | |
24 * @param {string} site The url of the site to fetch the icon for. | |
25 * @return {string} The background-image style with the favicon. | |
26 * @private | |
27 */ | |
28 siteIcon_: function(url) { | |
29 return 'background-image: ' + cr.icon.getFavicon(url); | |
30 }, | |
31 | |
32 }); | |
OLD | NEW |