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

Unified Diff: chrome/browser/resources/md_bookmarks/item.js

Issue 2869273011: [MD Bookmarks] Convert bookmark list to iron-list. (Closed)
Patch Set: add comment, fix closure, rebase Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_bookmarks/item.html ('k') | chrome/browser/resources/md_bookmarks/list.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/item.js
diff --git a/chrome/browser/resources/md_bookmarks/item.js b/chrome/browser/resources/md_bookmarks/item.js
index c0be4847f2849e7449f9dea0103cdba3555ad008..dbfcb47b4f271e3ce402ed498d9ab7eb06374514 100644
--- a/chrome/browser/resources/md_bookmarks/item.js
+++ b/chrome/browser/resources/md_bookmarks/item.js
@@ -15,6 +15,8 @@ Polymer({
observer: 'onItemIdChanged_',
},
+ ironListTabIndex: String,
+
/** @private {BookmarkNode} */
item_: {
type: Object,
@@ -28,6 +30,12 @@ Polymer({
},
/** @private */
+ mouseFocus_: {
+ type: Boolean,
+ reflectToAttribute: true,
+ },
+
+ /** @private */
isFolder_: Boolean,
},
@@ -36,6 +44,8 @@ Polymer({
],
listeners: {
+ 'mousedown': 'onMousedown_',
+ 'blur': 'onItemBlur_',
'click': 'onClick_',
'dblclick': 'onDblClick_',
'contextmenu': 'onContextMenu_',
@@ -109,6 +119,20 @@ Polymer({
},
/**
+ * @private
+ */
+ onMousedown_: function() {
+ this.mouseFocus_ = true;
+ },
+
+ /**
+ * @private
+ */
+ onItemBlur_: function() {
+ this.mouseFocus_ = false;
+ },
+
+ /**
* @param {Event} e
* @private
*/
« no previous file with comments | « chrome/browser/resources/md_bookmarks/item.html ('k') | chrome/browser/resources/md_bookmarks/list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698