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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « chrome/renderer/external_extension.cc ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper.h
===================================================================
--- chrome/renderer/print_web_view_helper.h (revision 29380)
+++ chrome/renderer/print_web_view_helper.h (working copy)
@@ -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 @@
#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 @@
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 @@
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 @@
// 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 @@
// 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 @@
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 @@
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_;
« no previous file with comments | « chrome/renderer/external_extension.cc ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698