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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'bookmarks-app', 6 is: 'bookmarks-app',
7 7
8 properties: { 8 properties: {
9 selectedId: String, 9 selectedId: String,
10 10
11 /** @type {BookmarkTreeNode} */ 11 /** @type {BookmarkTreeNode} */
12 selectedNode: Object, 12 rootNode: Object,
13 13
14 /** @type {BookmarkTreeNode} */ 14 searchTerm: String,
15 rootNode: Object, 15
16 displayedList: Array,
16 }, 17 },
17 18
18 /** @override */ 19 /** @override */
19 attached: function() { 20 attached: function() {
20 /** @type {BookmarksStoreElement} */ (this.$$('bookmarks-store')) 21 /** @type {BookmarksStoreElement} */ (this.$$('bookmarks-store'))
21 .initializeStore(); 22 .initializeStore();
22 }, 23 },
24
25 /** @private */
26 sidebarActive_: function() {
angelayang 2017/01/12 05:04:32 I will delete this in the next patch.
27 return this.searchTerm == '';
28 },
23 }); 29 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698