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

Side by Side Diff: chrome/browser/resources/print_preview/search/destination_list_item.js

Issue 588713002: Compile print_preview, part 3: reduce down to 185 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_2
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 destination item in a destination list. 9 * Component that renders a destination item in a destination list.
10 * @param {!cr.EventTarget} eventTarget Event target to dispatch selection 10 * @param {!cr.EventTarget} eventTarget Event target to dispatch selection
11 * events to. 11 * events to.
12 * @param {!print_preview.Destination} destination Destination data object to 12 * @param {!print_preview.Destination} destination Destination data object to
13 * render. 13 * render.
14 * @param {RegExp} query Active filter query. 14 * @param {RegExp=} opt_query Active filter query.
15 * @constructor 15 * @constructor
16 * @extends {print_preview.Component} 16 * @extends {print_preview.Component}
17 */ 17 */
18 function DestinationListItem(eventTarget, destination, query) { 18 function DestinationListItem(eventTarget, destination, opt_query) {
19 print_preview.Component.call(this); 19 print_preview.Component.call(this);
20 20
21 /** 21 /**
22 * Event target to dispatch selection events to. 22 * Event target to dispatch selection events to.
23 * @type {!cr.EventTarget} 23 * @type {!cr.EventTarget}
24 * @private 24 * @private
25 */ 25 */
26 this.eventTarget_ = eventTarget; 26 this.eventTarget_ = eventTarget;
27 27
28 /** 28 /**
29 * Destination that the list item renders. 29 * Destination that the list item renders.
30 * @type {!print_preview.Destination} 30 * @type {!print_preview.Destination}
31 * @private 31 * @private
32 */ 32 */
33 this.destination_ = destination; 33 this.destination_ = destination;
34 34
35 /** 35 /**
36 * Active filter query text. 36 * Active filter query text.
37 * @type {RegExp} 37 * @type {(RegExp|undefined)}
38 * @private 38 * @private
39 */ 39 */
40 this.query_ = query; 40 this.query_ = opt_query;
Aleksey Shlyapnikov 2014/09/22 22:00:40 Can we have it this way: @type {RegExp} and this.q
Vitaly Pavlenko 2014/09/22 22:33:11 Done, with {?RegExp}.
41 41
42 /** 42 /**
43 * FedEx terms-of-service widget or {@code null} if this list item does not 43 * FedEx terms-of-service widget or {@code null} if this list item does not
44 * render the FedEx Office print destination. 44 * render the FedEx Office print destination.
45 * @type {print_preview.FedexTos} 45 * @type {print_preview.FedexTos}
46 * @private 46 * @private
47 */ 47 */
48 this.fedexTos_ = null; 48 this.fedexTos_ = null;
49 }; 49 };
50 50
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 promoClickedEvent.destination = this.destination_; 215 promoClickedEvent.destination = this.destination_;
216 this.eventTarget_.dispatchEvent(promoClickedEvent); 216 this.eventTarget_.dispatchEvent(promoClickedEvent);
217 } 217 }
218 }; 218 };
219 219
220 // Export 220 // Export
221 return { 221 return {
222 DestinationListItem: DestinationListItem 222 DestinationListItem: DestinationListItem
223 }; 223 };
224 }); 224 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698