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

Side by Side Diff: chrome/browser/resources/print_preview/preview_generator.js

Issue 606213002: Compile print_preview, part 6: reduce down to 48 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@J_print_preview_5
Patch Set: vitalybuka@'s review Created 6 years, 2 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 * Interface to the Chromium print preview generator. 9 * Interface to the Chromium print preview generator.
10 * @param {!print_preview.DestinationStore} destinationStore Used to get the 10 * @param {!print_preview.DestinationStore} destinationStore Used to get the
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 * be ignored. 54 * be ignored.
55 * @type {number} 55 * @type {number}
56 * @private 56 * @private
57 */ 57 */
58 this.inFlightRequestId_ = -1; 58 this.inFlightRequestId_ = -1;
59 59
60 /** 60 /**
61 * Media size to generate preview with. {@code null} indicates default size. 61 * Media size to generate preview with. {@code null} indicates default size.
62 * Actual type is cp.cdd.MediaSizeTicketItem which is generated from proto 62 * Actual type is cp.cdd.MediaSizeTicketItem which is generated from proto
63 * defs. 63 * defs.
64 * @type {print_preview.ValueType} 64 * @type {?}
65 * @private 65 * @private
66 */ 66 */
67 this.mediaSize_ = null; 67 this.mediaSize_ = null;
68 68
69 /** 69 /**
70 * Whether the previews are being generated in landscape mode. 70 * Whether the previews are being generated in landscape mode.
71 * @type {boolean} 71 * @type {boolean}
72 * @private 72 * @private
73 */ 73 */
74 this.isLandscapeEnabled_ = false; 74 this.isLandscapeEnabled_ = false;
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // current one. 396 // current one.
397 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL); 397 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL);
398 } 398 }
399 }; 399 };
400 400
401 // Export 401 // Export
402 return { 402 return {
403 PreviewGenerator: PreviewGenerator 403 PreviewGenerator: PreviewGenerator
404 }; 404 };
405 }); 405 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698