Index: chrome/browser/resources/print_preview/data/document_info.js |
diff --git a/chrome/browser/resources/print_preview/data/document_info.js b/chrome/browser/resources/print_preview/data/document_info.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dd2fdcda0676b047bbd4ce6976970cbf83d0f21d |
--- /dev/null |
+++ b/chrome/browser/resources/print_preview/data/document_info.js |
@@ -0,0 +1,55 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+cr.define('print_preview', function() { |
+ 'use strict'; |
+ |
+ /** |
+ * Object which contains information related to the document to print. |
+ * @constructor |
+ */ |
+ function DocumentInfo() { |
+ /** |
+ * Whether the document to print is modifiable (i.e. can be reflowed). |
+ * @type {boolean} |
+ */ |
+ this.isModifiable = true; |
+ |
+ /** |
+ * Number of pages in the document to print. |
+ * @type {number} |
+ */ |
+ this.pageCount = 1; |
+ |
+ /** |
+ * Size of the pages of the document in points. |
+ * @type {!print_preview.Size} |
+ */ |
+ this.pageSize = new print_preview.Size(0, 0); |
+ |
+ /** |
+ * Printable area of the document in points. |
+ * @type {!print_preview.PrintableArea} |
+ */ |
+ this.printableArea = new print_preview.PrintableArea( |
+ new print_preview.Coordinate2d(0, 0), new print_preview.Size(0, 0)); |
+ |
+ /** |
+ * Whether the document is styled by CSS media styles. |
+ * @type {boolean} |
+ */ |
+ this.hasCssMediaStyles = false; |
+ |
+ /** |
+ * Margins of the document in points. |
+ * @type {print_preview.Margins} |
+ */ |
+ this.margins = null; |
+ }; |
+ |
+ // Export |
+ return { |
+ DocumentInfo: DocumentInfo |
+ }; |
+}); |