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

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

Issue 2977523002: MD Bookmarks: Scroll and select items that are added to the main list (Closed)
Patch Set: Reformat json schema Created 3 years, 5 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 79807522fb51ecb8ed3784007f58746a2a39c1cb..8749fdbf5986737bd8f30f0537cf4a1dd6f621ef 100644
--- a/chrome/browser/resources/md_bookmarks/actions.js
+++ b/chrome/browser/resources/md_bookmarks/actions.js
@@ -193,14 +193,15 @@ cr.define('bookmarks.actions', function() {
/**
* @param {Array<string>} ids
* @param {BookmarksPageState} state
+ * @param {string=} anchor
* @return {!Action}
*/
- function selectAll(ids, state) {
+ function selectAll(ids, state, anchor) {
return {
name: 'select-items',
clear: true,
toggle: false,
- anchor: state.selection.anchor,
+ anchor: anchor ? anchor : state.selection.anchor,
items: ids,
};
}
« 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