| 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 27 matching lines...) Expand all Loading... |
| 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 }); |
| OLD | NEW |