Chromium Code Reviews| 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. | 9 // Name to display in the toolbar, in titlecase. |
| 10 pageName: String, | 10 pageName: String, |
| 11 | 11 |
| 12 // Prompt text to display in the search field. | 12 // Prompt text to display in the search field. |
| 13 searchPrompt: String, | 13 searchPrompt: String, |
| 14 | 14 |
| 15 // Tooltip to display on the clear search button. | 15 // Tooltip to display on the clear search button. |
| 16 clearLabel: String, | 16 clearLabel: String, |
| 17 | 17 |
| 18 // Tooltip to display on the menu button. | |
| 19 buttonLabel: String, | |
|
tsergeant
2016/08/15 03:02:47
How about calling this `menuLabel`? buttonLabel co
lshang
2016/08/15 05:39:10
Done.
| |
| 20 | |
| 18 // Value is proxied through to cr-toolbar-search-field. When true, | 21 // Value is proxied through to cr-toolbar-search-field. When true, |
| 19 // the search field will show a processing spinner. | 22 // the search field will show a processing spinner. |
| 20 spinnerActive: Boolean, | 23 spinnerActive: Boolean, |
| 21 | 24 |
| 22 // Controls whether the menu button is shown at the start of the menu. | 25 // Controls whether the menu button is shown at the start of the menu. |
| 23 showMenu: { | 26 showMenu: { |
| 24 type: Boolean, | 27 type: Boolean, |
| 25 reflectToAttribute: true, | 28 reflectToAttribute: true, |
| 26 value: true | 29 value: true |
| 27 }, | 30 }, |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 42 /** @return {!CrToolbarSearchFieldElement} */ | 45 /** @return {!CrToolbarSearchFieldElement} */ |
| 43 getSearchField: function() { | 46 getSearchField: function() { |
| 44 return this.$.search; | 47 return this.$.search; |
| 45 }, | 48 }, |
| 46 | 49 |
| 47 /** @private */ | 50 /** @private */ |
| 48 onMenuTap_: function(e) { | 51 onMenuTap_: function(e) { |
| 49 this.fire('cr-menu-tap'); | 52 this.fire('cr-menu-tap'); |
| 50 } | 53 } |
| 51 }); | 54 }); |
| OLD | NEW |