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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 11316066: Merge 167311 - Print headers and footers with WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src/
Patch Set: Created 8 years, 1 month 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
Index: chrome/renderer/print_web_view_helper.h
===================================================================
--- chrome/renderer/print_web_view_helper.h (revision 168378)
+++ chrome/renderer/print_web_view_helper.h (working copy)
@@ -292,6 +292,17 @@
printing::Metafile* metafile);
#endif // defined(OS_WIN)
+ // Renders page contents from |frame| to |content_area| of |canvas|.
+ // |page_number| is zero-based.
+ // When method is called, canvas should be setup to draw to |canvas_area|
+ // with |scale_factor|.
+ static float RenderPageContent(WebKit::WebFrame* frame,
+ int page_number,
+ const gfx::Rect& canvas_area,
+ const gfx::Rect& content_area,
+ double scale_factor,
+ WebKit::WebCanvas* canvas);
+
// Helper methods -----------------------------------------------------------
bool CopyAndPrint(WebKit::WebFrame* web_frame);
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview_page.html ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698