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

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

Issue 597933002: Restored disable print preview policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wed Sep 24 10:32:18 PDT 2014 Created 6 years, 3 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: chrome/renderer/printing/print_web_view_helper.h
diff --git a/chrome/renderer/printing/print_web_view_helper.h b/chrome/renderer/printing/print_web_view_helper.h
index cfc0c1b68bdd338e75446658e7e3948273496e8a..0463148411847a528b1563144e7502fce6c4dcaf 100644
--- a/chrome/renderer/printing/print_web_view_helper.h
+++ b/chrome/renderer/printing/print_web_view_helper.h
@@ -69,10 +69,6 @@ class PrintWebViewHelper
explicit PrintWebViewHelper(content::RenderView* render_view);
virtual ~PrintWebViewHelper();
- // Disable print preview and switch to system dialog printing even if full
Lei Zhang 2014/09/24 17:53:43 Not sure if you want to keep this around for CEF?
Vitaly Buka (NO REVIEWS) 2014/09/24 18:07:03 Done. it duplicates kDisablePrintPreview, but we
- // printing is build-in. This method is used by CEF.
- static void DisablePreview();
-
bool IsPrintingEnabled();
void PrintNode(const blink::WebNode& node);
@@ -309,6 +305,7 @@ class PrintWebViewHelper
bool reset_prep_frame_view_;
scoped_ptr<PrintMsg_PrintPages_Params> print_pages_params_;
+ bool is_preview_enabled_;
bool is_print_ready_metafile_sent_;
bool ignore_css_margins_;

Powered by Google App Engine
This is Rietveld 408576698