summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper_linux.cc
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 /chrome/renderer/print_web_view_helper_linux.cc
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 'chrome/renderer/print_web_view_helper_linux.cc')
-rw-r--r--chrome/renderer/print_web_view_helper_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/print_web_view_helper_linux.cc b/chrome/renderer/print_web_view_helper_linux.cc
index 3a72edd..6ece1a0 100644
--- a/chrome/renderer/print_web_view_helper_linux.cc
+++ b/chrome/renderer/print_web_view_helper_linux.cc
@@ -13,6 +13,7 @@
#include "printing/metafile.h"
#include "printing/metafile_impl.h"
#include "printing/metafile_skia_wrapper.h"
+#include "printing/page_size_margins.h"
#include "skia/ext/vector_canvas.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
@@ -180,7 +181,7 @@ void PrintWebViewHelper::PrintPageInternal(
const gfx::Size& canvas_size,
WebFrame* frame,
printing::Metafile* metafile) {
- PageSizeMargins page_layout_in_points;
+ printing::PageSizeMargins page_layout_in_points;
GetPageSizeAndMarginsInPoints(frame, params.page_number, params.params,
&page_layout_in_points);