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

Side by Side Diff: chrome/browser/resources/md_bookmarks/item.js

Issue 2947753003: [MD Bookmarks] Fix offscreen menu button activation. (Closed)
Patch Set: Created 3 years, 6 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: '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
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 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/list.html » ('j') | chrome/browser/resources/md_bookmarks/list.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698