Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Unified Diff: components/printing/renderer/print_web_view_helper.h

Issue 1553643002: Unify some platform-specific methods for PrintWebViewHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@printcros
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e3c4794dd5c84450908563fa200b08107e52e368..ca103840a32eef7a1a5e5541a585e2aaa3007414 100644
--- a/components/printing/renderer/print_web_view_helper.h
+++ b/components/printing/renderer/print_web_view_helper.h
@@ -268,20 +268,16 @@ class PrintWebViewHelper
#endif // defined(ENABLE_BASIC_PRINTING)
// Prints the page listed in |params|.
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if defined(OS_MACOSX)
void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
- blink::WebFrame* frame,
- PdfMetafileSkia* metafile);
-#elif defined(OS_WIN)
+ blink::WebFrame* frame);
+#else
void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
blink::WebFrame* frame,
PdfMetafileSkia* metafile,
gfx::Size* page_size_in_dpi,
gfx::Rect* content_area_in_dpi);
-#else
- void PrintPageInternal(const PrintMsg_PrintPage_Params& params,
- blink::WebFrame* frame);
-#endif
+#endif // defined(OS_MACOSX)
// Platform specific helper function for rendering page(s) to |metafile|.
#if defined(OS_MACOSX)
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698