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

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

Issue 2926233002: MD Bookmarks: Add right-click context menu to sidebar folders (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_bookmarks/command_manager.js
diff --git a/chrome/browser/resources/md_bookmarks/command_manager.js b/chrome/browser/resources/md_bookmarks/command_manager.js
index d1a09f8bd1810fa0626ff81cb422256ff91540df..cc3758e080f67f9856e6393e1f806b40c6a26cf7 100644
--- a/chrome/browser/resources/md_bookmarks/command_manager.js
+++ b/chrome/browser/resources/md_bookmarks/command_manager.js
@@ -89,9 +89,10 @@ cr.define('bookmarks', function() {
* Commands will execute on the currently selected items.
calamity 2017/06/13 05:54:25 Update comment.
tsergeant 2017/06/13 07:01:54 Done.
* @param {number} x
* @param {number} y
+ * @param {Set<string>=} items
*/
- openCommandMenuAtPosition: function(x, y) {
- this.menuIds_ = this.getState().selection.items;
+ openCommandMenuAtPosition: function(x, y, items) {
+ this.menuIds_ = items || this.getState().selection.items;
/** @type {!CrActionMenuElement} */ (this.$.dropdown)
.showAtPosition({top: y, left: x});
},

Powered by Google App Engine
This is Rietveld 408576698