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

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

Issue 595153003: Compile print_preview, part 5: reduce down to 104 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_4
Patch Set: revert movement of enums: now handle in compiler pass 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 /** 52 /**
53 * ID of current in-flight request. Requests that do not share this ID will 53 * ID of current in-flight request. Requests that do not share this ID will
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 * @type {cp.cdd.MediaSizeTicketItem} 62 * Actual type is cp.cdd.MediaSizeTicketItem which is generated from proto
63 * defs.
Dan Beam 2014/09/29 22:13:41 why don't we have @externs for protos?
64 * @type {print_preview.ValueType}
63 * @private 65 * @private
64 */ 66 */
65 this.mediaSize_ = null; 67 this.mediaSize_ = null;
66 68
67 /** 69 /**
68 * Whether the previews are being generated in landscape mode. 70 * Whether the previews are being generated in landscape mode.
69 * @type {boolean} 71 * @type {boolean}
70 * @private 72 * @private
71 */ 73 */
72 this.isLandscapeEnabled_ = false; 74 this.isLandscapeEnabled_ = false;
(...skipping 14 matching lines...) Expand all
87 89
88 /** 90 /**
89 * Whether the document should be fitted to the page. 91 * Whether the document should be fitted to the page.
90 * @type {boolean} 92 * @type {boolean}
91 * @private 93 * @private
92 */ 94 */
93 this.isFitToPageEnabled_ = false; 95 this.isFitToPageEnabled_ = false;
94 96
95 /** 97 /**
96 * Page ranges setting used used to generate the last preview. 98 * Page ranges setting used used to generate the last preview.
97 * @type {!Array.<object.<{from: number, to: number}>>} 99 * @type {Array.<Object.<{from: number, to: number}>>}
98 * @private 100 * @private
99 */ 101 */
100 this.pageRanges_ = null; 102 this.pageRanges_ = null;
101 103
102 /** 104 /**
103 * Margins type used to generate the last preview. 105 * Margins type used to generate the last preview.
104 * @type {!print_preview.ticket_items.MarginsType.Value} 106 * @type {!print_preview.ticket_items.MarginsType.Value}
105 * @private 107 * @private
106 */ 108 */
107 this.marginsType_ = print_preview.ticket_items.MarginsType.Value.DEFAULT; 109 this.marginsType_ = print_preview.ticket_items.MarginsType.Value.DEFAULT;
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // current one. 396 // current one.
395 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL); 397 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL);
396 } 398 }
397 }; 399 };
398 400
399 // Export 401 // Export
400 return { 402 return {
401 PreviewGenerator: PreviewGenerator 403 PreviewGenerator: PreviewGenerator
402 }; 404 };
403 }); 405 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698