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

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

Issue 858363002: OOP PDF: Override printing for MimeHandlerViewContainers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mime-handler-api-simpler
Patch Set: fix android compile and remove the test as it hits a probably dodgy assert Created 5 years, 11 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_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 5a8242b771104ae84202d68080797042ae15cb5c..273b70920af920c4027a5ecfce287cbd08dd215c 100644
--- a/components/printing/renderer/print_web_view_helper.h
+++ b/components/printing/renderer/print_web_view_helper.h
@@ -84,6 +84,10 @@ class PrintWebViewHelper
virtual bool IsOutOfProcessPdfEnabled() = 0;
virtual bool IsPrintPreviewEnabled() = 0;
+
+ // Returns true if printing is overridden and the default behavior should be
+ // skipped for |frame|.
+ virtual bool OverridePrint(blink::WebLocalFrame* frame) = 0;
};
PrintWebViewHelper(content::RenderView* render_view,

Powered by Google App Engine
This is Rietveld 408576698