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

Unified 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: Resolve conflicts 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 side-by-side diff with in-line comments
Download patch
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
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698