Index: components/printing/renderer/print_web_view_helper.h |
diff --git a/components/printing/renderer/print_web_view_helper.h b/components/printing/renderer/print_web_view_helper.h |
index 15d2c288e78a4722d272ce1b784339b82fdad075..dadefd0653d42d4cabb807d76bd263714f05f22e 100644 |
--- a/components/printing/renderer/print_web_view_helper.h |
+++ b/components/printing/renderer/print_web_view_helper.h |
@@ -293,10 +293,12 @@ class PrintWebViewHelper |
#if defined(OS_MACOSX) |
void PrintPagesInternal(const PrintMsg_Print_Params& params, |
const std::vector<int>& printed_pages, |
+ int page_count, |
blink::WebLocalFrame* frame); |
#else |
void PrintPageInternal(const PrintMsg_Print_Params& params, |
int page_number, |
+ int page_count, |
blink::WebLocalFrame* frame, |
PdfMetafileSkia* metafile, |
gfx::Size* page_size_in_dpi, |
@@ -308,6 +310,7 @@ class PrintWebViewHelper |
#if defined(OS_MACOSX) |
void RenderPage(const PrintMsg_Print_Params& params, |
int page_number, |
+ int page_count, |
blink::WebLocalFrame* frame, |
bool is_preview, |
PdfMetafileSkia* metafile, |
@@ -346,7 +349,6 @@ class PrintWebViewHelper |
const PrintMsg_PrintPages_Params& params, |
int page_count); |
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
// Given the |device| and |canvas| to draw on, prints the appropriate headers |
Lei Zhang
2017/05/04 07:29:36
Uh, I noticed this is wrong. Would you mind correc
jzfeng
2017/05/05 02:41:33
Done.
|
// and footers using strings from |header_footer_info| on to the canvas. |
static void PrintHeaderAndFooter(blink::WebCanvas* canvas, |
@@ -356,7 +358,6 @@ class PrintWebViewHelper |
float webkit_scale_factor, |
const PageSizeMargins& page_layout_in_points, |
const PrintMsg_Print_Params& params); |
-#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
// Script Initiated Printing ------------------------------------------------ |