summaryrefslogtreecommitdiffstats
path: root/printing/printed_document.h
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-12 09:49:08 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-12 09:49:08 +0000
commit9de1347ae1cb4b93ebf28d1d65ea48d8ec4b1cf7 (patch)
treee023cf3d9ebf59efc7c6919f41f42b621ee2b666 /printing/printed_document.h
parent191b853fd4b0178094f79ba352462280c1b72f10 (diff)
downloadchromium_src-9de1347ae1cb4b93ebf28d1d65ea48d8ec4b1cf7.zip
chromium_src-9de1347ae1cb4b93ebf28d1d65ea48d8ec4b1cf7.tar.gz
chromium_src-9de1347ae1cb4b93ebf28d1d65ea48d8ec4b1cf7.tar.bz2
Guarded shrink setting with ifdefs to make clear where it is used.
Shrink value passed over IPC only in if defined (OS_WIN && !WIN_PDF_METAFILE_FOR_PRINTING) This build config should be gone in near future. PrintedPage::shrink_factor_ is used only for OS_WIN. BUG=379961 NOTRY=true Review URL: https://codereview.chromium.org/335473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document.h')
-rw-r--r--printing/printed_document.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/printing/printed_document.h b/printing/printed_document.h
index b8af4bb..3341d54 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -42,8 +42,13 @@ class PRINTING_EXPORT PrintedDocument
// Sets a page's data. 0-based. Takes metafile ownership.
// Note: locks for a short amount of time.
- void SetPage(int page_number, Metafile* metafile, double shrink,
- const gfx::Size& paper_size, const gfx::Rect& page_rect);
+ void SetPage(int page_number,
+ Metafile* metafile,
+#if defined(OS_WIN)
+ double shrink,
+#endif // OS_WIN
+ const gfx::Size& paper_size,
+ const gfx::Rect& page_rect);
// Retrieves a page. If the page is not available right now, it
// requests to have this page be rendered and returns false.