| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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-subpage-search' shows a search field in the subpage's header. | 7 * 'settings-subpage-search' shows a search field in the subpage's header. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| 11 is: 'settings-subpage-search', | 11 is: 'settings-subpage-search', |
| 12 | 12 |
| 13 behaviors: [CrSearchFieldBehavior], | 13 behaviors: [CrSearchFieldBehavior], |
| 14 | 14 |
| 15 properties: { |
| 16 autofocus: Boolean, |
| 17 }, |
| 18 |
| 15 /** @return {!HTMLInputElement} */ | 19 /** @return {!HTMLInputElement} */ |
| 16 getSearchInput: function() { | 20 getSearchInput: function() { |
| 17 return this.$.searchInput; | 21 return this.$.searchInput; |
| 18 }, | 22 }, |
| 19 | 23 |
| 20 /** @private */ | 24 /** @private */ |
| 21 onTapClear_: function() { | 25 onTapClear_: function() { |
| 22 this.setValue(''); | 26 this.setValue(''); |
| 23 }, | 27 }, |
| 24 }); | 28 }); |
| OLD | NEW |