| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * Page number set used to generate the last preview. | 80 * Page number set used to generate the last preview. |
| 81 * @type {print_preview.PageNumberSet} | 81 * @type {print_preview.PageNumberSet} |
| 82 * @private | 82 * @private |
| 83 */ | 83 */ |
| 84 this.pageNumberSet_ = null; | 84 this.pageNumberSet_ = null; |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * Margins type used to generate the last preview. | 87 * Margins type used to generate the last preview. |
| 88 * @type {print_preview.ticket_items.MarginsType.Value} | 88 * @type {!print_preview.ticket_items.MarginsType.Value} |
| 89 * @private | 89 * @private |
| 90 */ | 90 */ |
| 91 this.marginsType_ = print_preview.ticket_items.MarginsType.Value.DEFAULT; | 91 this.marginsType_ = print_preview.ticket_items.MarginsType.Value.DEFAULT; |
| 92 | 92 |
| 93 /** | 93 /** |
| 94 * Destination that was selected for the last preview. | 94 * Destination that was selected for the last preview. |
| 95 * @type {print_preview.Destination} | 95 * @type {print_preview.Destination} |
| 96 * @private | 96 * @private |
| 97 */ | 97 */ |
| 98 this.selectedDestination_ = null; | 98 this.selectedDestination_ = null; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // current one. | 383 // current one. |
| 384 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL); | 384 cr.dispatchSimpleEvent(this, PreviewGenerator.EventType.FAIL); |
| 385 } | 385 } |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 // Export | 388 // Export |
| 389 return { | 389 return { |
| 390 PreviewGenerator: PreviewGenerator | 390 PreviewGenerator: PreviewGenerator |
| 391 }; | 391 }; |
| 392 }); | 392 }); |
| OLD | NEW |