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 * @param {boolean} isModifiable Whether the document is modifiable. I.e. can | |
11 * the content of the document be reflowed. | |
12 * @param {number} pageCount Number of pages in the document. | |
13 * @param {!print_preview.Size} pageSize Size of the document pages. | |
14 * @param {!print_preview.PrintableArea} printableArea Area of the document | |
15 * which the destination can print to. | |
16 * @constructor | |
17 */ | |
18 function DocumentInfo(isModifiable, pageCount, pageSize, printableArea) { | |
19 /** | |
20 * Whether the document to print is modifiable (i.e. can be reflowed). | |
21 * @type {boolean} | |
22 */ | |
23 this.isModifiable = isModifiable; | |
24 | |
25 /** | |
26 * Number of pages in the document to print. | |
27 * @type {number} | |
28 */ | |
29 this.pageCount = pageCount; | |
30 | |
31 /** | |
32 * Size of the pages of the document. | |
dpapad
2012/05/09 15:48:56
Document the unit of measurement.
Robert Toscano
2012/05/10 00:23:27
Done.
| |
33 * @type {!print_preview.Size} | |
34 */ | |
35 this.pageSize = pageSize; | |
36 | |
37 /** | |
38 * Printable area of the document. | |
dpapad
2012/05/09 15:48:56
Same here.
Robert Toscano
2012/05/10 00:23:27
Done.
| |
39 * @type {!print_preview.PrintableArea} | |
40 */ | |
41 this.printableArea = printableArea; | |
42 }; | |
43 | |
44 // Export | |
45 return { | |
46 DocumentInfo: DocumentInfo | |
47 }; | |
48 }); | |
OLD | NEW |