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

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

Issue 2746363013: [MD Bookmarks] Add a drag and drop indicator to bookmarks. (Closed)
Patch Set: fix nit Created 3 years, 9 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 e7590a76c4b6699be3540e439f660453c95122f5..362df7ee9666b0fcee71f2a2b71a54cb06d6ba2e 100644
--- a/chrome/browser/resources/md_bookmarks/item.js
+++ b/chrome/browser/resources/md_bookmarks/item.js
@@ -40,6 +40,7 @@ Polymer({
'dblclick': 'onDblClick_',
},
+ /** @override */
attached: function() {
this.watch('item_', function(store) {
return store.nodes[this.itemId];
@@ -51,6 +52,11 @@ Polymer({
this.updateFromStore();
},
+ /** @return {BookmarksItemElement} */
+ getDropTarget: function() {
+ return this;
+ },
+
/**
* @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