summaryrefslogtreecommitdiffstats
path: root/printing/printed_page.h
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-10 23:17:32 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-10 23:17:32 +0000
commit732b813ab60ebaad3cd2a60e19154e2c29b5a144 (patch)
tree9ed80f722ccf2e478ec771614193e88f9126e419 /printing/printed_page.h
parent66122f44aec56f163aed88a673f062f035619bc2 (diff)
downloadchromium_src-732b813ab60ebaad3cd2a60e19154e2c29b5a144.zip
chromium_src-732b813ab60ebaad3cd2a60e19154e2c29b5a144.tar.gz
chromium_src-732b813ab60ebaad3cd2a60e19154e2c29b5a144.tar.bz2
PrintPreview: Honor the print media page size and margin values.
BUG=104210, 100819 TEST=Added PrintWebViewHelperPreviewTests. Review URL: http://codereview.chromium.org/8585017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117102 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_page.h')
-rw-r--r--printing/printed_page.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/printing/printed_page.h b/printing/printed_page.h
index 28bf191..40e96e0 100644
--- a/printing/printed_page.h
+++ b/printing/printed_page.h
@@ -25,13 +25,15 @@ class PRINTING_EXPORT PrintedPage
PrintedPage(int page_number,
Metafile* metafile,
const gfx::Size& page_size,
- const gfx::Rect& page_content_rect);
+ const gfx::Rect& page_content_rect,
+ double shrink_factor);
// Getters
int page_number() const { return page_number_; }
const Metafile* metafile() const;
const gfx::Size& page_size() const { return page_size_; }
const gfx::Rect& page_content_rect() const { return page_content_rect_; }
+ double shrink_factor() const { return shrink_factor_; }
// Get page content rect adjusted based on
// http://dev.w3.org/csswg/css3-page/#positioning-page-box
@@ -56,6 +58,9 @@ class PRINTING_EXPORT PrintedPage
// The printable area of the page.
const gfx::Rect page_content_rect_;
+ // Shrink done in comparison to desired_dpi.
+ double shrink_factor_;
+
DISALLOW_COPY_AND_ASSIGN(PrintedPage);
};