| 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..829b44e17ffa21061a30cc9a99ac6aa93b3547cf
|
| --- /dev/null
|
| +++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js
|
| @@ -0,0 +1,35 @@
|
| +// 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: {
|
| + /** @private */
|
| + narrow_: {
|
| + type: Boolean,
|
| + reflectToAttribute: true
|
| + },
|
| +
|
| + /** @private */
|
| + showingSearch_: {
|
| + 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} */
|
| + getSearchField: function() {
|
| + return this.$.search;
|
| + }
|
| +});
|
|
|