OLD | NEW |
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: 'bookmarks-item', | 6 is: 'bookmarks-item', |
7 | 7 |
8 behaviors: [ | 8 behaviors: [ |
9 bookmarks.MouseFocusBehavior, | 9 bookmarks.MouseFocusBehavior, |
10 bookmarks.StoreClient, | 10 bookmarks.StoreClient, |
11 ], | 11 ], |
12 | 12 |
13 properties: { | 13 properties: { |
14 itemId: { | 14 itemId: { |
15 type: String, | 15 type: String, |
16 observer: 'onItemIdChanged_', | 16 observer: 'onItemIdChanged_', |
17 }, | 17 }, |
18 | 18 |
19 ironListTabIndex: String, | 19 ironListTabIndex: String, |
20 | 20 |
| 21 index: Number, |
| 22 |
21 /** @private {BookmarkNode} */ | 23 /** @private {BookmarkNode} */ |
22 item_: { | 24 item_: { |
23 type: Object, | 25 type: Object, |
24 observer: 'onItemChanged_', | 26 observer: 'onItemChanged_', |
25 }, | 27 }, |
26 | 28 |
27 /** @private */ | 29 /** @private */ |
28 isSelectedItem_: { | 30 isSelectedItem_: { |
29 type: Boolean, | 31 type: Boolean, |
30 reflectToAttribute: true, | 32 reflectToAttribute: true, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 }, | 151 }, |
150 | 152 |
151 /** | 153 /** |
152 * @param {string} url | 154 * @param {string} url |
153 * @private | 155 * @private |
154 */ | 156 */ |
155 updateFavicon_: function(url) { | 157 updateFavicon_: function(url) { |
156 this.$.icon.style.backgroundImage = cr.icon.getFavicon(url); | 158 this.$.icon.style.backgroundImage = cr.icon.getFavicon(url); |
157 }, | 159 }, |
158 }); | 160 }); |
OLD | NEW |