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

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: 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 3e8e573b6dd28c02c01392c8767ca5cf2df837d9..3d4b38cac75b39b03cdec4b58b284615e9e4bbf4 100644
--- a/components/printing/renderer/print_web_view_helper.h
+++ b/components/printing/renderer/print_web_view_helper.h
@@ -84,6 +84,7 @@ class PrintWebViewHelper
PrintWebViewHelper(content::RenderView* render_view,
bool out_of_process_pdf_enabled,
bool print_preview_disabled,
+ bool should_ask_print_settings,
scoped_ptr<Delegate> delegate);
~PrintWebViewHelper() override;
@@ -348,6 +349,9 @@ class PrintWebViewHelper
// Whether the content to print could be nested in an iframe.
const bool out_of_process_pdf_enabled_;
+ // Whether settings should be asked when printing.
+ const bool should_ask_print_settings_;
+
// Used to check the prerendering status.
const scoped_ptr<Delegate> delegate_;

Powered by Google App Engine
This is Rietveld 408576698