| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |