summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 05:11:03 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 05:11:03 +0000
commit50ae00ef9da3304a68d9f811380572a5e2ed03cb (patch)
treee58480c200f54468e61635a134cb6b51fb7809df /chrome/renderer/print_web_view_helper.h
parenta9e8a092db75a1aff5e03d29215390ade65dec1e (diff)
downloadchromium_src-50ae00ef9da3304a68d9f811380572a5e2ed03cb.zip
chromium_src-50ae00ef9da3304a68d9f811380572a5e2ed03cb.tar.gz
chromium_src-50ae00ef9da3304a68d9f811380572a5e2ed03cb.tar.bz2
Delete glue/webview{_delegate}.h
R=dglazkov BUG=10033 TEST=none Review URL: http://codereview.chromium.org/293001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.h')
-rw-r--r--chrome/renderer/print_web_view_helper.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index 1148ae4..87a7ca6 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -10,7 +10,7 @@
#include "base/gfx/size.h"
#include "base/scoped_ptr.h"
#include "base/time.h"
-#include "webkit/glue/webview_delegate.h"
+#include "webkit/api/public/WebViewClient.h"
namespace gfx {
class Size;
@@ -28,12 +28,10 @@ typedef PdfPsMetafile NativeMetafile;
#endif
class RenderView;
-class WebView;
struct ViewMsg_Print_Params;
struct ViewMsg_PrintPage_Params;
struct ViewMsg_PrintPages_Params;
-
// Class that calls the Begin and End print functions on the frame and changes
// the size of the view temporarily to support full page printing..
// Do not serve any events in the time between construction and destruction of
@@ -42,7 +40,7 @@ class PrepareFrameAndViewForPrint {
public:
PrepareFrameAndViewForPrint(const ViewMsg_Print_Params& print_params,
WebKit::WebFrame* frame,
- WebView* web_view);
+ WebKit::WebView* web_view);
~PrepareFrameAndViewForPrint();
int GetExpectedPageCount() const {
@@ -55,7 +53,7 @@ class PrepareFrameAndViewForPrint {
private:
WebKit::WebFrame* frame_;
- WebView* web_view_;
+ WebKit::WebView* web_view_;
gfx::Size print_canvas_size_;
gfx::Size prev_view_size_;
int expected_pages_count_;
@@ -67,7 +65,7 @@ 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 WebViewDelegate {
+class PrintWebViewHelper : public WebKit::WebViewClient {
public:
explicit PrintWebViewHelper(RenderView* render_view);
virtual ~PrintWebViewHelper();
@@ -76,7 +74,7 @@ class PrintWebViewHelper : public WebViewDelegate {
// Is there a background print in progress?
bool IsPrinting() {
- return print_web_view_.get() != NULL;
+ return print_web_view_ != NULL;
}
// Notification when printing is done - signal teardown
@@ -117,7 +115,7 @@ class PrintWebViewHelper : public WebViewDelegate {
int32 routing_id();
// WebKit::WebViewClient
- virtual WebView* createView(WebKit::WebFrame* creator) { return NULL; }
+ virtual WebKit::WebView* createView(WebKit::WebFrame* creator) { return NULL; }
virtual WebKit::WebWidget* createPopupMenu(bool activatable) { return NULL; }
virtual WebKit::WebWidget* createPopupMenu(
const WebKit::WebPopupMenuInfo& info) { return NULL; }
@@ -235,7 +233,7 @@ class PrintWebViewHelper : public WebViewDelegate {
private:
RenderView* render_view_;
- scoped_ptr<WebView> print_web_view_;
+ WebKit::WebView* print_web_view_;
scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_;
base::Time last_cancelled_script_print_;
int user_cancelled_scripted_print_count_;