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

Side by Side Diff: chrome/browser/resources/md_bookmarks/list.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-list', 6 is: 'bookmarks-list',
7 7
8 properties: { 8 properties: {
9 /** @type {BookmarkTreeNode} */ 9 /** @type {BookmarkTreeNode} */
10 selectedNode: Object, 10 menuItem_: Object,
11 11
12 /** @type {BookmarkTreeNode} */ 12 displayedList: Array,
13 menuItem_: Object,
14 }, 13 },
15 14
16 listeners: { 15 listeners: {
17 'open-item-menu': 'onOpenItemMenu_', 16 'open-item-menu': 'onOpenItemMenu_',
18 }, 17 },
19 18
20 /** 19 /**
21 * @param {Event} e 20 * @param {Event} e
22 * @private 21 * @private
23 */ 22 */
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 }.bind(this)); 54 }.bind(this));
56 } 55 }
57 this.closeDropdownMenu_(); 56 this.closeDropdownMenu_();
58 }, 57 },
59 58
60 /** @private */ 59 /** @private */
61 closeDropdownMenu_: function() { 60 closeDropdownMenu_: function() {
62 var menu = /** @type {!CrActionMenuElement} */ ( 61 var menu = /** @type {!CrActionMenuElement} */ (
63 this.$.dropdown); 62 this.$.dropdown);
64 menu.close(); 63 menu.close();
65 } 64 },
66 }); 65 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698