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}; |
+}); |