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 * Object which contains information related to the document to print. | 9 * Object which contains information related to the document to print. |
10 * @constructor | 10 * @constructor |
11 */ | 11 */ |
12 function DocumentInfo() { | 12 function DocumentInfo() { |
13 /** | 13 /** |
14 * Whether the document to print is modifiable (i.e. can be reflowed). | 14 * Whether the document to print is modifiable (i.e. can be reflowed). |
15 * @type {boolean} | 15 * @type {boolean} |
16 */ | 16 */ |
17 this.isModifiable = true; | 17 this.isModifiable = true; |
18 | 18 |
19 /** | 19 /** |
20 * Number of pages in the document to print. | 20 * Number of pages in the document to print. |
21 * @type {number} | 21 * @type {number} |
22 */ | 22 */ |
23 this.pageCount = 1; | 23 this.pageCount = 0; |
24 | 24 |
25 /** | 25 /** |
26 * Size of the pages of the document in points. | 26 * Size of the pages of the document in points. |
27 * @type {!print_preview.Size} | 27 * @type {!print_preview.Size} |
28 */ | 28 */ |
29 this.pageSize = new print_preview.Size(0, 0); | 29 this.pageSize = new print_preview.Size(0, 0); |
30 | 30 |
31 /** | 31 /** |
32 * Printable area of the document in points. | 32 * Printable area of the document in points. |
33 * @type {!print_preview.PrintableArea} | 33 * @type {!print_preview.PrintableArea} |
(...skipping 24 matching lines...) Expand all Loading... |
58 * @type {string} | 58 * @type {string} |
59 */ | 59 */ |
60 this.title = ''; | 60 this.title = ''; |
61 }; | 61 }; |
62 | 62 |
63 // Export | 63 // Export |
64 return { | 64 return { |
65 DocumentInfo: DocumentInfo | 65 DocumentInfo: DocumentInfo |
66 }; | 66 }; |
67 }); | 67 }); |
OLD | NEW |