| 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.
|
|
|