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, |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 narrow_: { | 23 narrow_: { |
| 24 type: Boolean, | 24 type: Boolean, |
| 25 reflectToAttribute: true | 25 reflectToAttribute: true |
| 26 }, | 26 }, |
| 27 | 27 |
| 28 /** @private */ | 28 /** @private */ |
| 29 showingSearch_: { | 29 showingSearch_: { |
| 30 type: Boolean, | 30 type: Boolean, |
| 31 reflectToAttribute: true, | 31 reflectToAttribute: true, |
| 32 }, | 32 }, |
| 33 | |
| 34 /** | |
| 35 * Whether search field should be hidden. | |
| 36 * @type {boolean} | |
| 37 */ | |
| 38 hideSearch: { | |
|
michaelpg
2016/07/13 00:01:36
unused?
Moe
2016/07/13 20:17:17
No, it's used in cr_toolbar.html to hide the searc
michaelpg
2016/07/14 00:31:28
but where is it set?
Moe
2016/07/14 17:19:55
in settings_ui.html
| |
| 39 type: Boolean, | |
| 40 value: false, | |
| 41 }, | |
| 33 }, | 42 }, |
| 34 | 43 |
| 35 /** @return {!CrToolbarSearchFieldElement} */ | 44 /** @return {CrToolbarSearchFieldElement} */ |
| 36 getSearchField: function() { | 45 getSearchField: function() { |
| 37 return this.$.search; | 46 return /** @type {CrToolbarSearchFieldElement} */ (this.$$('#search')); |
| 38 }, | 47 }, |
| 39 | 48 |
| 40 /** @private */ | 49 /** @private */ |
| 41 onMenuTap_: function(e) { | 50 onMenuTap_: function(e) { |
| 42 this.fire('cr-menu-tap'); | 51 this.fire('cr-menu-tap'); |
| 43 } | 52 } |
| 44 }); | 53 }); |
| OLD | NEW |