Chromium Code Reviews| 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}); |
| }, |