diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-13 17:27:45 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-13 17:27:45 +0000 |
commit | 16cd533f95ab1d2046f64bb6a18df634f62bda80 (patch) | |
tree | 8b16d305f56f4bec542ffc1103fe31d776555db1 /chrome/renderer/print_web_view_helper.h | |
parent | 28ac70d17d634c99a14b6707d88cd8506a5d27f6 (diff) | |
download | chromium_src-16cd533f95ab1d2046f64bb6a18df634f62bda80.zip chromium_src-16cd533f95ab1d2046f64bb6a18df634f62bda80.tar.gz chromium_src-16cd533f95ab1d2046f64bb6a18df634f62bda80.tar.bz2 |
Fix Print Selection.
(And re-enable it on Windows; other platforms need more work.)
BUG=22937,27621
TEST=Go to a suitable web page; select something; Ctrl-P to print; select "Selection" under "Page Range"; print; etc.
Review URL: http://codereview.chromium.org/1992017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.h')
-rw-r--r-- | chrome/renderer/print_web_view_helper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h index f80c507..0c971b5 100644 --- a/chrome/renderer/print_web_view_helper.h +++ b/chrome/renderer/print_web_view_helper.h @@ -10,6 +10,7 @@ #include "base/scoped_ptr.h" #include "base/time.h" #include "gfx/size.h" +#include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" #include "third_party/WebKit/WebKit/chromium/public/WebViewClient.h" namespace gfx { @@ -70,7 +71,8 @@ class PrepareFrameAndViewForPrint { // PrintWebViewHelper handles most of the printing grunt work for RenderView. // We plan on making print asynchronous and that will require copying the DOM // of the document and creating a new WebView with the contents. -class PrintWebViewHelper : public WebKit::WebViewClient { +class PrintWebViewHelper : public WebKit::WebViewClient, + public WebKit::WebFrameClient { public: explicit PrintWebViewHelper(RenderView* render_view); virtual ~PrintWebViewHelper(); |