Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: chrome/browser/resources/print_preview/data/document_info.js

Issue 10108001: Refactor print preview web ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes broken tests Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698