Index: chrome/renderer/printing/print_web_view_helper.h |
diff --git a/chrome/renderer/printing/print_web_view_helper.h b/chrome/renderer/printing/print_web_view_helper.h |
index e63a0a382160e671b13fc91203b023f31be90dd0..f5fb10e6236533726d07926000ff6e57b6d8378b 100644 |
--- a/chrome/renderer/printing/print_web_view_helper.h |
+++ b/chrome/renderer/printing/print_web_view_helper.h |
@@ -206,6 +206,15 @@ class PrintWebViewHelper |
const gfx::Size& canvas_size, |
blink::WebFrame* frame, |
Metafile* metafile); |
+#elif defined(WIN_PDF_METAFILE_FOR_PRINTING) |
+ void PrintPageInternal(const PrintMsg_PrintPage_Params& params, |
+ const gfx::Size& canvas_size, |
+ blink::WebFrame* frame, |
+ Metafile* metafile, |
+ bool is_preview, |
+ double* actual_shrink, |
+ gfx::Size* page_size_in_dpi, |
+ gfx::Rect* content_area_in_dpi); |
#else |
void PrintPageInternal(const PrintMsg_PrintPage_Params& params, |
const gfx::Size& canvas_size, |
@@ -217,7 +226,7 @@ class PrintWebViewHelper |
const blink::WebNode& node); |
// Platform specific helper function for rendering page(s) to |metafile|. |
-#if defined(OS_WIN) |
+#if defined(OS_WIN) && !defined(WIN_PDF_METAFILE_FOR_PRINTING) |
void RenderPage(const PrintMsg_Print_Params& params, |
int page_number, |
blink::WebFrame* frame, |