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 <include src="../../pdf/pdf_scripting_api.js" /> | |
9 | |
10 /** | 8 /** |
11 * Creates a PreviewArea object. It represents the area where the preview | 9 * Creates a PreviewArea object. It represents the area where the preview |
12 * document is displayed. | 10 * document is displayed. |
13 * @param {!print_preview.DestinationStore} destinationStore Used to get the | 11 * @param {!print_preview.DestinationStore} destinationStore Used to get the |
14 * currently selected destination. | 12 * currently selected destination. |
15 * @param {!print_preview.PrintTicketStore} printTicketStore Used to get | 13 * @param {!print_preview.PrintTicketStore} printTicketStore Used to get |
16 * information about how the preview should be displayed. | 14 * information about how the preview should be displayed. |
17 * @param {!print_preview.NativeLayer} nativeLayer Needed to communicate with | 15 * @param {!print_preview.NativeLayer} nativeLayer Needed to communicate with |
18 * Chromium's preview generation system. | 16 * Chromium's preview generation system. |
19 * @param {!print_preview.DocumentInfo} documentInfo Document data model. | 17 * @param {!print_preview.DocumentInfo} documentInfo Document data model. |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 new print_preview.Size(viewportWidth, viewportHeight)); | 741 new print_preview.Size(viewportWidth, viewportHeight)); |
744 } | 742 } |
745 } | 743 } |
746 }; | 744 }; |
747 | 745 |
748 // Export | 746 // Export |
749 return { | 747 return { |
750 PreviewArea: PreviewArea | 748 PreviewArea: PreviewArea |
751 }; | 749 }; |
752 }); | 750 }); |
OLD | NEW |