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

Unified Diff: chrome/browser/resources/md_bookmarks/command_manager.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
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 dee208efa921fbb70f1fb2cbb24cfdea4def5dc8..f08d80e851b18288cac70df5651af3af46f05cf5 100644
--- a/chrome/browser/resources/md_bookmarks/command_manager.js
+++ b/chrome/browser/resources/md_bookmarks/command_manager.js
@@ -289,6 +289,8 @@ cr.define('bookmarks', function() {
var id = Array.from(itemIds)[0];
this.dispatch(bookmarks.actions.selectFolder(
assert(state.nodes[id].parentId), state.nodes));
+ bookmarks.DialogFocusManager.getInstance().clearFocus();
+ this.fire('highlight-items', [id]);
break;
case Command.DELETE:
var idList = Array.from(this.minimizeDeletionSet_(itemIds));
@@ -345,8 +347,10 @@ cr.define('bookmarks', function() {
case Command.PASTE:
var selectedFolder = state.selectedFolder;
var selectedItems = state.selection.items;
+ bookmarks.ApiListener.trackUpdatedItems();
chrome.bookmarkManagerPrivate.paste(
- selectedFolder, Array.from(selectedItems));
+ selectedFolder, Array.from(selectedItems),
+ bookmarks.ApiListener.highlightUpdatedItems);
break;
default:
assert(false);
« no previous file with comments | « chrome/browser/resources/md_bookmarks/app.js ('k') | chrome/browser/resources/md_bookmarks/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698