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

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

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager Created 3 years, 9 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 | « components/printing/common/print_messages.cc ('k') | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « components/printing/common/print_messages.cc ('k') | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698