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

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: Fix error when searching from About page. 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 27 matching lines...) Expand all
38 onIronActivate_: function(event) { 38 onIronActivate_: function(event) {
39 if (event.detail.item.id != 'advancedPage') 39 if (event.detail.item.id != 'advancedPage')
40 this.$$('app-drawer').close(); 40 this.$$('app-drawer').close();
41 }, 41 },
42 42
43 /** @private */ 43 /** @private */
44 onMenuButtonTap_: function() { 44 onMenuButtonTap_: function() {
45 this.$$('app-drawer').toggle(); 45 this.$$('app-drawer').toggle();
46 }, 46 },
47 47
48 /** @override */
49 ready: function() {
50 this.$$('cr-toolbar').addEventListener('search-changed', function(e) {
51 this.$$('settings-main').searchContents(e.detail);
52 }.bind(this));
53 },
54
48 /** @private */ 55 /** @private */
49 directionDelegateChanged_: function() { 56 directionDelegateChanged_: function() {
50 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? 57 this.$$('app-drawer').align = this.directionDelegate.isRtl() ?
51 'right' : 'left'; 58 'right' : 'left';
52 }, 59 },
53 }); 60 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698