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

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: Nits. 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 23 matching lines...) Expand all
34 /** @private */ 34 /** @private */
35 onIronActivate_: function() { 35 onIronActivate_: function() {
36 this.$$('app-drawer').close(); 36 this.$$('app-drawer').close();
37 }, 37 },
38 38
39 /** @private */ 39 /** @private */
40 onMenuButtonTap_: function() { 40 onMenuButtonTap_: function() {
41 this.$$('app-drawer').toggle(); 41 this.$$('app-drawer').toggle();
42 }, 42 },
43 43
44 /** @override */
45 ready: function() {
46 this.$$('cr-toolbar').addEventListener('search-changed', function(e) {
47 this.$$('settings-main').searchContents(e.detail);
48 }.bind(this));
49 },
50
44 /** @private */ 51 /** @private */
45 directionDelegateChanged_: function() { 52 directionDelegateChanged_: function() {
46 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? 53 this.$$('app-drawer').align = this.directionDelegate.isRtl() ?
47 'right' : 'left'; 54 'right' : 'left';
48 }, 55 },
49 }); 56 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698