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

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

Issue 2865633004: Fix all remaining print preview closure compiler errors (Closed)
Patch Set: Fix onkeydown function Created 3 years, 7 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 * @type {print_preview.ValueType}
63 * @private 63 * @private
64 */ 64 */
65 this.mediaSize_ = null; 65 this.mediaSize_ = null;
66 66
67 /** 67 /**
68 * Whether the previews are being generated in landscape mode. 68 * Whether the previews are being generated in landscape mode.
69 * @type {boolean} 69 * @type {boolean}
70 * @private 70 * @private
71 */ 71 */
72 this.isLandscapeEnabled_ = false; 72 this.isLandscapeEnabled_ = false;
(...skipping 22 matching lines...) Expand all
95 /** 95 /**
96 * The scaling factor (in percent) for the document. Ignored if fit to page 96 * The scaling factor (in percent) for the document. Ignored if fit to page
97 * is true. 97 * is true.
98 * @type {number} 98 * @type {number}
99 * @private 99 * @private
100 */ 100 */
101 this.scalingValue_ = 100; 101 this.scalingValue_ = 100;
102 102
103 /** 103 /**
104 * Page ranges setting used used to generate the last preview. 104 * Page ranges setting used used to generate the last preview.
105 * @type {!Array<object<{from: number, to: number}>>} 105 * @type {Array<{from: number, to: number}>}
106 * @private 106 * @private
107 */ 107 */
108 this.pageRanges_ = null; 108 this.pageRanges_ = null;
109 109
110 /** 110 /**
111 * Margins type used to generate the last preview. 111 * Margins type used to generate the last preview.
112 * @type {!print_preview.ticket_items.MarginsTypeValue} 112 * @type {!print_preview.ticket_items.MarginsTypeValue}
113 * @private 113 * @private
114 */ 114 */
115 this.marginsType_ = print_preview.ticket_items.MarginsTypeValue.DEFAULT; 115 this.marginsType_ = print_preview.ticket_items.MarginsTypeValue.DEFAULT;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // current one. 404 // current one.
405 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL); 405 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL);
406 } 406 }
407 }; 407 };
408 408
409 // Export 409 // Export
410 return { 410 return {
411 PreviewGenerator: PreviewGenerator 411 PreviewGenerator: PreviewGenerator
412 }; 412 };
413 }); 413 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698