| 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 Polymer({ | 5 Polymer({ |
| 6 is: 'cr-toolbar', | 6 is: 'cr-toolbar', |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 // Name to display in the toolbar, in titlecase. |
| 10 pageName: String, |
| 11 |
| 12 // Prompt text to display in the search field. |
| 13 searchPrompt: String, |
| 14 |
| 15 // Tooltip to display on the clear search button. |
| 16 clearLabel: String, |
| 17 |
| 18 // Value is proxied through to cr-toolbar-search-field. When true, |
| 19 // the search field will show a processing spinner. |
| 20 spinnerActive: Boolean, |
| 21 |
| 9 /** @private */ | 22 /** @private */ |
| 10 narrow_: { | 23 narrow_: { |
| 11 type: Boolean, | 24 type: Boolean, |
| 12 reflectToAttribute: true | 25 reflectToAttribute: true |
| 13 }, | 26 }, |
| 14 | 27 |
| 15 /** @private */ | 28 /** @private */ |
| 16 showingSearch_: { | 29 showingSearch_: { |
| 17 type: Boolean, | 30 type: Boolean, |
| 18 reflectToAttribute: true, | 31 reflectToAttribute: true, |
| 19 }, | 32 }, |
| 20 | |
| 21 // Name to display in the toolbar, in titlecase. | |
| 22 pageName: String, | |
| 23 | |
| 24 // Prompt text to display in the search field. | |
| 25 searchPrompt: String, | |
| 26 | |
| 27 // Tooltip to display on the clear search button. | |
| 28 clearLabel: String, | |
| 29 }, | 33 }, |
| 30 | 34 |
| 31 /** @return {!CrToolbarSearchFieldElement} */ | 35 /** @return {!CrToolbarSearchFieldElement} */ |
| 32 getSearchField: function() { | 36 getSearchField: function() { |
| 33 return this.$.search; | 37 return this.$.search; |
| 34 } | 38 } |
| 35 }); | 39 }); |
| OLD | NEW |