OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 cr.define('print_preview', function() { |
| 6 'use strict'; |
| 7 |
| 8 /** |
| 9 * Object which contains information related to the document to print. |
| 10 * @constructor |
| 11 */ |
| 12 function DocumentInfo() { |
| 13 /** |
| 14 * Whether the document to print is modifiable (i.e. can be reflowed). |
| 15 * @type {boolean} |
| 16 */ |
| 17 this.isModifiable = true; |
| 18 |
| 19 /** |
| 20 * Number of pages in the document to print. |
| 21 * @type {number} |
| 22 */ |
| 23 this.pageCount = 1; |
| 24 |
| 25 /** |
| 26 * Size of the pages of the document in points. |
| 27 * @type {!print_preview.Size} |
| 28 */ |
| 29 this.pageSize = new print_preview.Size(0, 0); |
| 30 |
| 31 /** |
| 32 * Printable area of the document in points. |
| 33 * @type {!print_preview.PrintableArea} |
| 34 */ |
| 35 this.printableArea = new print_preview.PrintableArea( |
| 36 new print_preview.Coordinate2d(0, 0), new print_preview.Size(0, 0)); |
| 37 |
| 38 /** |
| 39 * Whether the document is styled by CSS media styles. |
| 40 * @type {boolean} |
| 41 */ |
| 42 this.hasCssMediaStyles = false; |
| 43 |
| 44 /** |
| 45 * Margins of the document in points. |
| 46 * @type {print_preview.Margins} |
| 47 */ |
| 48 this.margins = null; |
| 49 }; |
| 50 |
| 51 // Export |
| 52 return { |
| 53 DocumentInfo: DocumentInfo |
| 54 }; |
| 55 }); |
OLD | NEW |