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

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

Issue 2799653003: MD Bookmarks: Implement 'Sort by Title' menu button (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | chrome/browser/resources/md_bookmarks/api_listener.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/actions.js
diff --git a/chrome/browser/resources/md_bookmarks/actions.js b/chrome/browser/resources/md_bookmarks/actions.js
index 04c97292f18fae26ff5543e4c3930c732ea49007..9f6a63d11ab0d670608a17b3c0fae6f2cb4fba1a 100644
--- a/chrome/browser/resources/md_bookmarks/actions.js
+++ b/chrome/browser/resources/md_bookmarks/actions.js
@@ -56,6 +56,18 @@ cr.define('bookmarks.actions', function() {
/**
* @param {string} id
+ * @param {!Array<string>} newChildIds
+ */
+ function reorderChildren(id, newChildIds) {
+ return {
+ name: 'reorder-children',
+ id: id,
+ children: newChildIds,
+ };
+ }
+
+ /**
+ * @param {string} id
* @param {string} parentId
* @param {number} index
* @param {NodeList} nodes
@@ -194,6 +206,7 @@ cr.define('bookmarks.actions', function() {
moveBookmark: moveBookmark,
refreshNodes: refreshNodes,
removeBookmark: removeBookmark,
+ reorderChildren: reorderChildren,
selectFolder: selectFolder,
selectItem: selectItem,
setSearchResults: setSearchResults,
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/api_listener.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698