| OLD | NEW |
| 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 Loading... |
| 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) { |
| 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 }); |
| OLD | NEW |