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

Unified Diff: chrome/browser/resources/md_extensions/toolbar.js

Issue 1308893009: [MD Extensions] Move search field out of downloads, use it in extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: chrome/browser/resources/md_extensions/toolbar.js
diff --git a/chrome/browser/resources/md_extensions/toolbar.js b/chrome/browser/resources/md_extensions/toolbar.js
new file mode 100644
index 0000000000000000000000000000000000000000..aacf2bde29a26b9777dec7c8c62898fc0ef221c1
--- /dev/null
+++ b/chrome/browser/resources/md_extensions/toolbar.js
@@ -0,0 +1,32 @@
+// Copyright 2015 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.
+
+cr.define('extensions', function() {
+ var Toolbar = Polymer({
+ is: 'extensions-toolbar',
+
+ /**
+ * @param {string} value
+ */
+ onSearchTermSearch: function(value) {
+ },
+ });
+
+ /**
+ * @constructor
+ * @implements {cr.ui.SearchField.Delegate}
+ */
+ function ToolbarSearchFieldDelegate(toolbar) {
+ this.toolbar_ = toolbar;
+ };
Dan Beam 2015/09/14 19:22:05 }; -> }
Devlin 2015/09/14 21:47:18 Done.
+
+ ToolbarSearchFieldDelegate.prototype = {
+ /** @override */
+ onSearchTermSearch: function(value) {
+ this.toolbar_.onSearchTermSearch(value);
+ }
+ };
+
+ return {Toolbar: Toolbar};
+});

Powered by Google App Engine
This is Rietveld 408576698