summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-11 23:42:48 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-11 23:42:48 +0000
commit21c968e0dd0f36e36151d6c167f779aa0f73a487 (patch)
tree768cb6b8a55d9580a5e0f1b604aea574ad91e3f8 /chrome/renderer
parentb53285e087786283c71ddd9cf016eef447d88a45 (diff)
downloadchromium_src-21c968e0dd0f36e36151d6c167f779aa0f73a487.zip
chromium_src-21c968e0dd0f36e36151d6c167f779aa0f73a487.tar.gz
chromium_src-21c968e0dd0f36e36151d6c167f779aa0f73a487.tar.bz2
Make PrintWebViewHelper work with new WebKit API for printing a plugin.
Review URL: http://codereview.chromium.org/6216003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/print_web_view_helper.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc
index 2a2f2d0..cdf3127 100644
--- a/chrome/renderer/print_web_view_helper.cc
+++ b/chrome/renderer/print_web_view_helper.cc
@@ -68,9 +68,15 @@ PrepareFrameAndViewForPrint::PrepareFrameAndViewForPrint(
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() {