Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Unified Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js

Issue 1963503002: MD WebUI: Add shared cr-toolbar element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add todo and fix nits Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+ }
+});

Powered by Google App Engine
This is Rietveld 408576698