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)) |