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

Unified Diff: chrome/renderer/print_web_view_helper.cc

Issue 6750018: Cleanup: Stop creating RenderViewObservers from chrome/ in RenderViewer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build on win/mac Created 9 years, 9 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/print_web_view_helper.cc
===================================================================
--- chrome/renderer/print_web_view_helper.cc (revision 79652)
+++ chrome/renderer/print_web_view_helper.cc (working copy)
@@ -59,7 +59,7 @@
bool PrintMsg_Print_Params_IsEmpty(const PrintMsg_Print_Params& params) {
return !params.document_cookie && !params.desired_dpi && !params.max_shrink &&
- !params.min_shrink && !params.dpi && params.printable_size.IsEmpty() &&
+ !params.min_shrink && !params.dpi && params.printable_size.IsEmpty() &&
!params.selection_only && params.page_size.IsEmpty() &&
!params.margin_top && !params.margin_left &&
!params.supports_alpha_blend;
@@ -126,7 +126,8 @@
PrintWebViewHelper::~PrintWebViewHelper() {}
-void PrintWebViewHelper::ScriptInitiatedPrint(WebKit::WebFrame* frame) {
+void PrintWebViewHelper::printPage(WebKit::WebFrame* frame) {
+ // Prints |frame| which called window.print().
DCHECK(frame);
if (IsScriptInitiatedPrintTooFrequent(frame))

Powered by Google App Engine
This is Rietveld 408576698