OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 cr.define('print_preview', function() { | 5 cr.define('print_preview', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** | 8 /** |
9 * Component that renders a search box for searching through destinations. | 9 * Component that renders a search box for searching through destinations. |
10 * @param {string} searchBoxPlaceholderText Search box placeholder text. | 10 * @param {string} searchBoxPlaceholderText Search box placeholder text. |
(...skipping 13 matching lines...) Expand all Loading... |
24 * Timeout used to control incremental search. | 24 * Timeout used to control incremental search. |
25 * @private {?number} | 25 * @private {?number} |
26 */ | 26 */ |
27 this.timeout_ = null; | 27 this.timeout_ = null; |
28 | 28 |
29 /** | 29 /** |
30 * Input box where the query is entered. | 30 * Input box where the query is entered. |
31 * @private {HTMLInputElement} | 31 * @private {HTMLInputElement} |
32 */ | 32 */ |
33 this.input_ = null; | 33 this.input_ = null; |
34 }; | 34 } |
35 | 35 |
36 /** | 36 /** |
37 * Enumeration of event types dispatched from the search box. | 37 * Enumeration of event types dispatched from the search box. |
38 * @enum {string} | 38 * @enum {string} |
39 */ | 39 */ |
40 SearchBox.EventType = { | 40 SearchBox.EventType = { |
41 SEARCH: 'print_preview.SearchBox.SEARCH' | 41 SEARCH: 'print_preview.SearchBox.SEARCH' |
42 }; | 42 }; |
43 | 43 |
44 /** | 44 /** |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 this.timeout_ = setTimeout( | 121 this.timeout_ = setTimeout( |
122 this.dispatchSearchEvent_.bind(this), SearchBox.SEARCH_DELAY_); | 122 this.dispatchSearchEvent_.bind(this), SearchBox.SEARCH_DELAY_); |
123 } | 123 } |
124 }; | 124 }; |
125 | 125 |
126 // Export | 126 // Export |
127 return { | 127 return { |
128 SearchBox: SearchBox | 128 SearchBox: SearchBox |
129 }; | 129 }; |
130 }); | 130 }); |
OLD | NEW |