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 17 matching lines...) Expand all Loading... |
28 /** @private */ | 28 /** @private */ |
29 showingSearch_: { | 29 showingSearch_: { |
30 type: Boolean, | 30 type: Boolean, |
31 reflectToAttribute: true, | 31 reflectToAttribute: true, |
32 }, | 32 }, |
33 }, | 33 }, |
34 | 34 |
35 /** @return {!CrToolbarSearchFieldElement} */ | 35 /** @return {!CrToolbarSearchFieldElement} */ |
36 getSearchField: function() { | 36 getSearchField: function() { |
37 return this.$.search; | 37 return this.$.search; |
| 38 }, |
| 39 |
| 40 /** @private */ |
| 41 onMenuTap_: function(e) { |
| 42 this.fire('cr-menu-tap'); |
38 } | 43 } |
39 }); | 44 }); |
OLD | NEW |