summaryrefslogtreecommitdiffstats
path: root/printing/page_size_margins.h
diff options
context:
space:
mode:
authoraayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 19:56:18 +0000
committeraayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 19:56:18 +0000
commit7a9b03e386c6ca34575c1819ba0ad413a15e2d76 (patch)
tree84b7a18a28042a7d4b6d0f14e4126a666fd68c54 /printing/page_size_margins.h
parent12dd463c5497498e49214ae186c681adcbcd445c (diff)
downloadchromium_src-7a9b03e386c6ca34575c1819ba0ad413a15e2d76.zip
chromium_src-7a9b03e386c6ca34575c1819ba0ad413a15e2d76.tar.gz
chromium_src-7a9b03e386c6ca34575c1819ba0ad413a15e2d76.tar.bz2
Backend changes for custom margins.
The UI for margin options are hidden by default. BUG=69337 TEST= There is currently minimal UI for testing this. The custom margins option does nothing. You can however click the no margins option to see the page print without margins. Review URL: http://codereview.chromium.org/7552033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97901 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/page_size_margins.h')
-rw-r--r--printing/page_size_margins.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/printing/page_size_margins.h b/printing/page_size_margins.h
new file mode 100644
index 0000000..4f74c297
--- /dev/null
+++ b/printing/page_size_margins.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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.
+
+#ifndef PRINTING_PAGE_SIZE_MARGINS_H_
+#define PRINTING_PAGE_SIZE_MARGINS_H_
+
+namespace printing {
+
+// Struct that holds margin and content area sizes of a page. Units are
+// arbitrary and can be chosen by the programmer.
+struct PageSizeMargins {
+ double content_width;
+ double content_height;
+ double margin_top;
+ double margin_right;
+ double margin_bottom;
+ double margin_left;
+};
+
+} // namespace printing
+
+#endif // PRINTING_PAGE_SIZE_MARGINS_H_
+