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

Unified Diff: chrome/renderer/print_web_view_helper.cc

Issue 6216003: Make PrintWebViewHelper work with new WebKit API for printing a plugin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper.cc
===================================================================
--- chrome/renderer/print_web_view_helper.cc (revision 71015)
+++ chrome/renderer/print_web_view_helper.cc (working copy)
@@ -68,9 +68,15 @@
web_view->resize(print_layout_size);
+#if defined(WEBFRAME_PRINTBEGIN_TAKES_NODE)
expected_pages_count_ = frame->printBegin(
+ print_canvas_size_, NULL, static_cast<int>(print_params.dpi),
+ &use_browser_overlays_);
+#else
+ expected_pages_count_ = frame->printBegin(
print_canvas_size_, static_cast<int>(print_params.dpi),
&use_browser_overlays_);
+#endif
}
PrepareFrameAndViewForPrint::~PrepareFrameAndViewForPrint() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698