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

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

Issue 12209086: Page range comparisons should use document size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698