Chromium Code Reviews| Index: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js |
| diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js |
| index b119b9e05fcbd3ab382694598ffd2668fd70e94d..d11f3afc11e5fd9bc85b4ac5d3436f03d01f991f 100644 |
| --- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js |
| +++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js |
| @@ -30,11 +30,20 @@ Polymer({ |
| type: Boolean, |
| reflectToAttribute: true, |
| }, |
| + |
| + /** |
| + * Whether search field should be hidden. |
| + * @type {boolean} |
| + */ |
| + 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
|
| + type: Boolean, |
| + value: false, |
| + }, |
| }, |
| - /** @return {!CrToolbarSearchFieldElement} */ |
| + /** @return {CrToolbarSearchFieldElement} */ |
| getSearchField: function() { |
| - return this.$.search; |
| + return /** @type {CrToolbarSearchFieldElement} */ (this.$$('#search')); |
| }, |
| /** @private */ |