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

Side by Side Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2082793003: MD Settings: First iteration of searching within settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cr_search_migration0
Patch Set: Address comments. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-ui' implements the UI for the Settings page. 7 * 'settings-ui' implements the UI for the Settings page.
8 * 8 *
9 * Example: 9 * Example:
10 * 10 *
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 onIronActivate_: function(event) { 50 onIronActivate_: function(event) {
51 if (event.detail.item.id != 'advancedPage') 51 if (event.detail.item.id != 'advancedPage')
52 this.$$('app-drawer').close(); 52 this.$$('app-drawer').close();
53 }, 53 },
54 54
55 /** @private */ 55 /** @private */
56 onMenuButtonTap_: function() { 56 onMenuButtonTap_: function() {
57 this.$$('app-drawer').toggle(); 57 this.$$('app-drawer').toggle();
58 }, 58 },
59 59
60 /** @override */
61 ready: function() {
62 this.$$('cr-toolbar').addEventListener('search-changed', function(e) {
michaelpg 2016/07/04 19:23:56 is it possible to type something in the search fie
dpapad 2016/07/06 18:24:55 The cr-toolbar fires a bogus event during its init
63 this.$$('settings-main').searchContents(e.detail);
64 }.bind(this));
65 },
66
60 /** @private */ 67 /** @private */
61 directionDelegateChanged_: function() { 68 directionDelegateChanged_: function() {
62 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? 69 this.$$('app-drawer').align = this.directionDelegate.isRtl() ?
63 'right' : 'left'; 70 'right' : 'left';
64 }, 71 },
65 }); 72 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698