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

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

Issue 822133003: Refactor webview to use //components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments 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..b588c9e26fda5536183d0fded6fc7715f76fb301 100644
--- a/components/printing/renderer/print_web_view_helper.h
+++ b/components/printing/renderer/print_web_view_helper.h
@@ -84,6 +84,14 @@ class PrintWebViewHelper
virtual bool IsOutOfProcessPdfEnabled() = 0;
virtual bool IsPrintPreviewEnabled() = 0;
+
+ // If true, the user can be asked to provide print settings.
+ // The default implementation returns |true|.
+ virtual bool IsAskPrintSettingsEnabled();
+
+ // If false, window.print() won't do anything.
+ // The default implementation returns |true|.
+ virtual bool IsScriptedPrintEnabled();
};
PrintWebViewHelper(content::RenderView* render_view,

Powered by Google App Engine
This is Rietveld 408576698