| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 */ | 47 */ |
| 48 onPaperResponsiveChange_: function(e) { | 48 onPaperResponsiveChange_: function(e) { |
| 49 if (Polymer.dom(e).rootTarget == this.$.panel) | 49 if (Polymer.dom(e).rootTarget == this.$.panel) |
| 50 this.classList.toggle('narrowing', e.detail.narrow); | 50 this.classList.toggle('narrowing', e.detail.narrow); |
| 51 }, | 51 }, |
| 52 | 52 |
| 53 /** @private */ | 53 /** @private */ |
| 54 directionDelegateChanged_: function() { | 54 directionDelegateChanged_: function() { |
| 55 this.$.panel.rightDrawer = this.directionDelegate.isRtl(); | 55 this.$.panel.rightDrawer = this.directionDelegate.isRtl(); |
| 56 }, | 56 }, |
| 57 |
| 58 attached: function() { |
| 59 this.$.searchInput.addEventListener('search', function(event) { |
| 60 search(this.$.searchInput.value, this); |
| 61 }.bind(this)); |
| 62 }, |
| 63 |
| 64 onCancelSearchTap_: function() { |
| 65 this.$.searchInput.value = ''; |
| 66 search(this.$.searchInput.value, this); |
| 67 }, |
| 57 }); | 68 }); |
| OLD | NEW |