Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 cr.define('extensions', function() { | |
| 6 var Toolbar = Polymer({ | |
| 7 is: 'extensions-toolbar', | |
| 8 | |
| 9 /** | |
| 10 * @param {string} value | |
| 11 */ | |
| 12 onSearchTermSearch: function(value) { | |
| 13 }, | |
| 14 }); | |
| 15 | |
| 16 /** | |
| 17 * @constructor | |
| 18 * @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
| |
| 19 */ | |
| 20 function ToolbarSearchFieldDelegate(toolbar) { | |
| 21 this.toolbar_ = toolbar; | |
| 22 } | |
| 23 | |
| 24 ToolbarSearchFieldDelegate.prototype = { | |
| 25 /** @override */ | |
| 26 onSearchTermSearch: function(value) { | |
| 27 this.toolbar_.onSearchTermSearch(value); | |
| 28 } | |
| 29 }; | |
| 30 | |
| 31 return {Toolbar: Toolbar}; | |
| 32 }); | |
| OLD | NEW |