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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 10836330: Rasterize page before printing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 | « chrome/common/chrome_switches.cc ('k') | chrome/renderer/print_web_view_helper_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper.h
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index c76bf33cf2e1a666fc246c3e5920f4e613865ad5..1180a5dcaa891f970c5ec8c81fa620a7ff5c7650 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -269,18 +269,14 @@ class PrintWebViewHelper
// Platform specific helper function for rendering page(s) to |metafile|.
#if defined(OS_WIN)
- // Because of mixed support for alpha channels on printers, this method may
- // need to create a new metafile. The result may be either the passed
- // |metafile| or a new one. In either case, the caller owns both |metafile|
- // and the result.
- printing::Metafile* RenderPage(const PrintMsg_Print_Params& params,
- int page_number,
- WebKit::WebFrame* frame,
- bool is_preview,
- printing::Metafile* metafile,
- double* scale_factor,
- gfx::Size* page_size_in_dpi,
- gfx::Rect* content_area_in_dpi);
+ void RenderPage(const PrintMsg_Print_Params& params,
+ int page_number,
+ WebKit::WebFrame* frame,
+ bool is_preview,
+ printing::Metafile* metafile,
+ double* scale_factor,
+ gfx::Size* page_size_in_dpi,
+ gfx::Rect* content_area_in_dpi);
#elif defined(OS_MACOSX)
void RenderPage(const PrintMsg_Print_Params& params, int page_number,
WebKit::WebFrame* frame, bool is_preview,
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/renderer/print_web_view_helper_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698