| 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 d979333feb1fd72972fe4109e1afc061f49af2d1..d59c1fb93c5e8745a6631ed4521f16290b9a7bbe 100644
|
| --- a/components/printing/renderer/print_web_view_helper.h
|
| +++ b/components/printing/renderer/print_web_view_helper.h
|
| @@ -175,11 +175,13 @@ class PrintWebViewHelper
|
| void DidFailProvisionalLoad(const blink::WebURLError& error) override;
|
| void DidFinishLoad() override;
|
| void ScriptedPrint(bool user_initiated) override;
|
| + void PrintFrame(const gfx::Rect& rect, int src_id) override;
|
| bool OnMessageReceived(const IPC::Message& message) override;
|
|
|
| // Message handlers ---------------------------------------------------------
|
| #if BUILDFLAG(ENABLE_BASIC_PRINTING)
|
| void OnPrintPages();
|
| + void OnPrintPagesWithSettings(const gfx::Rect& rect);
|
| void OnPrintForSystemDialog();
|
| void OnPrintForPrintPreview(const base::DictionaryValue& job_settings);
|
| #endif // BUILDFLAG(ENABLE_BASIC_PRINTING)
|
| @@ -319,7 +321,8 @@ class PrintWebViewHelper
|
| // Helper methods -----------------------------------------------------------
|
|
|
| bool CopyMetafileDataToSharedMem(const PdfMetafileSkia& metafile,
|
| - base::SharedMemoryHandle* shared_mem_handle);
|
| + base::SharedMemoryHandle* shared_mem_handle,
|
| + uint32_t* size);
|
|
|
| // Helper method to get page layout in points and fit to page if needed.
|
| static void ComputePageLayoutInPointsForCss(
|
|
|