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..891d7d84ca16823dd8bbca8e96a0278f4cec10ec |
--- /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 {SearchField.Delegate} |
Dan Beam
2015/09/14 23:16:06
same nit here
Dan Beam
2015/09/14 23:52:54
can ignore
Devlin
2015/09/15 17:24:06
As discussed offline, this would work if we could
|
+ */ |
+ function ToolbarSearchFieldDelegate(toolbar) { |
+ this.toolbar_ = toolbar; |
+ } |
+ |
+ ToolbarSearchFieldDelegate.prototype = { |
+ /** @override */ |
+ onSearchTermSearch: function(value) { |
+ this.toolbar_.onSearchTermSearch(value); |
+ } |
+ }; |
+ |
+ return {Toolbar: Toolbar}; |
+}); |