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 273b70920af920c4027a5ecfce287cbd08dd215c..885f80a4590e6e6f0af5238e4a3ccca4b0101b38 100644 |
--- a/components/printing/renderer/print_web_view_helper.h |
+++ b/components/printing/renderer/print_web_view_helper.h |
@@ -85,6 +85,14 @@ class PrintWebViewHelper |
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(); |
+ |
// Returns true if printing is overridden and the default behavior should be |
// skipped for |frame|. |
virtual bool OverridePrint(blink::WebLocalFrame* frame) = 0; |