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

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

Issue 2920013002: Use pdf compositor service for printing when OOPIF is enabled
Patch Set: rebase Created 3 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
Index: components/printing/renderer/print_render_frame_helper.h
diff --git a/components/printing/renderer/print_render_frame_helper.h b/components/printing/renderer/print_render_frame_helper.h
index 05bf469e6e9a851daa5e5a55536d35cbe1510758..1922098bfb62b4906edaf4de53f81ec0b1fd0c0e 100644
--- a/components/printing/renderer/print_render_frame_helper.h
+++ b/components/printing/renderer/print_render_frame_helper.h
@@ -353,8 +353,11 @@ class PrintRenderFrameHelper
const PrintMsg_PrintPages_Params& params,
int page_count);
- // Given the |canvas| to draw on, prints the appropriate headers and footers
- // to |canvas| using information from the remaining parameters.
+ // Helper function to find document type.
+ static SkiaDocumentType GetDocType(const PrintMsg_Print_Params& params);
+
+ // Given the |device| and |canvas| to draw on, prints the appropriate headers
+ // and footers using strings from |header_footer_info| on to the canvas.
static void PrintHeaderAndFooter(blink::WebCanvas* canvas,
int page_number,
int total_pages,
@@ -433,7 +436,8 @@ class PrintRenderFrameHelper
// Create the print preview document. |pages| is empty to print all pages.
// Takes ownership of |prepared_frame|.
bool CreatePreviewDocument(PrepareFrameAndViewForPrint* prepared_frame,
- const std::vector<int>& pages);
+ const std::vector<int>& pages,
+ SkiaDocumentType doc_type);
// Called after a page gets rendered. |page_time| is how long the
// rendering took.

Powered by Google App Engine
This is Rietveld 408576698