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

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

Issue 2614703003: [MD Bookmarks] Add search. (Closed)
Patch Set: Refactor search logic into store and add search tests. Created 3 years, 11 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/app.js
diff --git a/chrome/browser/resources/md_bookmarks/app.js b/chrome/browser/resources/md_bookmarks/app.js
index 0d79074a5202a434071f6d0b429f198882e86a21..c211f09e90c363b986eee23661a2a3216af93814 100644
--- a/chrome/browser/resources/md_bookmarks/app.js
+++ b/chrome/browser/resources/md_bookmarks/app.js
@@ -9,10 +9,11 @@ Polymer({
selectedId: String,
/** @type {BookmarkTreeNode} */
- selectedNode: Object,
-
- /** @type {BookmarkTreeNode} */
rootNode: Object,
+
+ searchTerm: String,
+
+ displayedList: Array,
},
/** @override */
@@ -20,4 +21,9 @@ Polymer({
/** @type {BookmarksStoreElement} */ (this.$$('bookmarks-store'))
.initializeStore();
},
+
+ /** @private */
+ sidebarActive_: function() {
angelayang 2017/01/12 05:04:32 I will delete this in the next patch.
+ return this.searchTerm == '';
+ },
});

Powered by Google App Engine
This is Rietveld 408576698