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

Unified Diff: chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js

Issue 8497008: Implement Bookmark All Tabs Dialog with WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/bookmark_manager/js/bmm/bookmark_list.js
diff --git a/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js b/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js
index fbce6f4abd7ef9eb3ee924af5542fc0ed93f808f..464e8fcecce716d4c84a5bc2ea57449e6b024e30 100644
--- a/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js
+++ b/chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js
@@ -11,6 +11,8 @@ cr.define('bmm', function() {
const ArrayDataModel = cr.ui.ArrayDataModel;
const ContextMenuButton = cr.ui.ContextMenuButton;
+ var list;
+
/**
* Basic array data model for use with bookmarks.
* @param {!Array.<!BookmarkTreeNode>} items The bookmark items.
@@ -76,6 +78,8 @@ cr.define('bmm', function() {
// We could add the ContextMenuButton in the BookmarkListItem but it slows
// down redraws a lot so we do this on mouseovers instead.
this.addEventListener('mouseover', this.handleMouseOver_.bind(this));
+
+ bmm.list = this;
},
createItem: function(bookmarkNode) {
@@ -567,6 +571,7 @@ cr.define('bmm', function() {
};
return {
- BookmarkList: BookmarkList
+ BookmarkList: BookmarkList,
+ list: list
};
});

Powered by Google App Engine
This is Rietveld 408576698