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: { |
+ type: Boolean, |
+ value: false, |
+ }, |
}, |
- /** @return {!CrToolbarSearchFieldElement} */ |
+ /** @return {CrToolbarSearchFieldElement} */ |
getSearchField: function() { |
- return this.$.search; |
+ return /** @type {CrToolbarSearchFieldElement} */ (this.$$('#search')); |
}, |
/** @private */ |