| 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' shows a subpage beneath a subheader. The header contains | 7 * 'settings-subpage' shows a subpage beneath a subheader. The header contains |
| 8 * the subpage title and a back icon. The back icon fires an event which | 8 * the subpage title and a back icon. The back icon fires an event which |
| 9 * is caught by settings-animated-pages, so it requires no separate handling. | 9 * is caught by settings-animated-pages, so it requires no separate handling. |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 Polymer({ | 12 Polymer({ |
| 13 is: 'settings-subpage-search', | 13 is: 'settings-subpage-search', |
| 14 | 14 |
| 15 behaviors: [CrSearchFieldBehavior], | 15 behaviors: [CrSearchFieldBehavior], |
| 16 | 16 |
| 17 /** @return {!HTMLInputElement} */ |
| 18 getSearchInput: function() { |
| 19 return this.$.searchInput; |
| 20 }, |
| 21 |
| 17 /** @private */ | 22 /** @private */ |
| 18 onTapClear_: function() { | 23 onTapClear_: function() { |
| 19 this.setValue(''); | 24 this.setValue(''); |
| 20 }, | 25 }, |
| 21 }); | 26 }); |
| OLD | NEW |