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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..18d559906915652c395eaa6e5d5940e471f0f204 |
| --- /dev/null |
| +++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +Polymer({ |
| + is: 'cr-toolbar', |
| + |
| + properties: { |
| + narrow_: { |
|
dpapad
2016/05/26 00:42:52
/** @private */
tsergeant
2016/05/26 01:34:52
Done.
|
| + type: Boolean, |
| + reflectToAttribute: true |
| + }, |
| + showingSearch_: { |
|
dpapad
2016/05/26 00:42:52
Blank line between polymer properties.
Also add @
tsergeant
2016/05/26 01:34:52
Done.
|
| + type: Boolean, |
| + reflectToAttribute: true, |
| + }, |
| + // Name to display in the toolbar, in titlecase. |
| + pageName: String, |
| + // Prompt text to display in the search field. |
| + searchPrompt: String, |
| + // Tooltip to display on the clear search button. |
| + clearLabel: String, |
| + }, |
| + |
| + /** @return {CrToolbarSearchFieldElement} */ |
|
dpapad
2016/05/26 00:42:52
!CrToolbarSearchFieldElement
tsergeant
2016/05/26 01:34:52
Done.
|
| + getSearchField: function() { |
| + return this.$.search; |
| + } |
| +}); |