diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 22:17:38 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 22:17:38 +0000 |
commit | e916edeebbac7a403adf06fe543dacb52962c230 (patch) | |
tree | 073e8fac5b86967ba41dda972cdc678bc73f8313 /chrome/renderer | |
parent | 96613eb98e8c56e3046d391e40d4fdadf696614e (diff) | |
download | chromium_src-e916edeebbac7a403adf06fe543dacb52962c230.zip chromium_src-e916edeebbac7a403adf06fe543dacb52962c230.tar.gz chromium_src-e916edeebbac7a403adf06fe543dacb52962c230.tar.bz2 |
Modify printing methods on WebFrame to be more inline with the version
specified in webkit/api/public/WebFrame.h.
Removes an unused method on WebFrame related to printing.
BUG=10034
TEST=none
R=brettw
Review URL: http://codereview.chromium.org/150027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/print_web_view_helper.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc index e575c72..d5389af 100644 --- a/chrome/renderer/print_web_view_helper.cc +++ b/chrome/renderer/print_web_view_helper.cc @@ -66,7 +66,7 @@ class PrepareFrameAndViewForPrint { web_view->Resize(print_layout_size); - frame->BeginPrint(print_canvas_size_, &expected_pages_count_); + expected_pages_count_ = frame->PrintBegin(print_canvas_size_); } int GetExpectedPageCount() const { @@ -78,7 +78,7 @@ class PrepareFrameAndViewForPrint { } ~PrepareFrameAndViewForPrint() { - frame_->EndPrint(); + frame_->PrintEnd(); web_view_->Resize(prev_view_size_); } |