| 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 6fb4ae621fdca9a634911c0ff222fd9caa9c8225..6281bc064453e2078a8bf705e805bc4a038d0846 100644
|
| --- a/chrome/browser/resources/md_bookmarks/actions.js
|
| +++ b/chrome/browser/resources/md_bookmarks/actions.js
|
| @@ -191,6 +191,32 @@ cr.define('bookmarks.actions', function() {
|
| }
|
|
|
| /**
|
| + * @param {Array<string>} ids
|
| + * @param {BookmarksPageState} state
|
| + * @return {!Action}
|
| + */
|
| + function selectAll(ids, state) {
|
| + return {
|
| + name: 'select-items',
|
| + clear: true,
|
| + toggle: false,
|
| + anchor: state.selection.anchor,
|
| + items: ids,
|
| + };
|
| + }
|
| +
|
| + /**
|
| + * @param {string} id
|
| + * @return {!Action}
|
| + */
|
| + function updateAnchor(id) {
|
| + return {
|
| + name: 'update-anchor',
|
| + anchor: id,
|
| + };
|
| + }
|
| +
|
| + /**
|
| * @param {string} term
|
| * @return {!Action}
|
| */
|
| @@ -225,9 +251,11 @@ cr.define('bookmarks.actions', function() {
|
| refreshNodes: refreshNodes,
|
| removeBookmark: removeBookmark,
|
| reorderChildren: reorderChildren,
|
| + selectAll: selectAll,
|
| selectFolder: selectFolder,
|
| selectItem: selectItem,
|
| setSearchResults: setSearchResults,
|
| setSearchTerm: setSearchTerm,
|
| + updateAnchor: updateAnchor,
|
| };
|
| });
|
|
|