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-09-16 16:47:52 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 16:47:52 +0000
commit48c9cf2d85fa8a6a2de61946d377d561b9bb5c6e (patch)
treeedf21dfb828b0b18ed2db136424f0a12e5cb9655 /chrome/renderer/print_web_view_helper.h
parent2dd011df2acf628a0d23346a8a518000d18dd683 (diff)
downloadchromium_src-48c9cf2d85fa8a6a2de61946d377d561b9bb5c6e.zip
chromium_src-48c9cf2d85fa8a6a2de61946d377d561b9bb5c6e.tar.gz
chromium_src-48c9cf2d85fa8a6a2de61946d377d561b9bb5c6e.tar.bz2
Hook up WebViewClient, part 1.
This change makes WebViewDelegate extend from WebViewClient as a temporary means to start having consumers implement and use WebViewClient. R=dglazkov BUG=10033 TEST=none Review URL: http://codereview.chromium.org/196128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.h')
-rw-r--r--chrome/renderer/print_web_view_helper.h42
1 files changed, 40 insertions, 2 deletions
diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
index 63a973b..7100ae9 100644
--- a/chrome/renderer/print_web_view_helper.h
+++ b/chrome/renderer/print_web_view_helper.h
@@ -116,7 +116,46 @@ class PrintWebViewHelper : public WebViewDelegate {
int32 routing_id();
- // WebViewDeletegate
+ // WebKit::WebViewClient
+ virtual 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; }
+ virtual void didAddMessageToConsole(
+ const WebKit::WebConsoleMessage& message,
+ const WebKit::WebString& source_name, unsigned source_line) {}
+ virtual void printPage(WebKit::WebFrame* frame) {}
+ virtual void didStartLoading() {}
+ virtual void didStopLoading();
+ virtual void runModalAlertDialog(
+ WebKit::WebFrame* frame, const WebKit::WebString& message) {}
+ virtual bool runModalConfirmDialog(
+ WebKit::WebFrame* frame, const WebKit::WebString& message) {
+ return false;
+ }
+ virtual bool runModalPromptDialog(
+ WebKit::WebFrame* frame, const WebKit::WebString& message,
+ const WebKit::WebString& default_value,
+ WebKit::WebString* actual_value) { return false; }
+ virtual bool runModalBeforeUnloadDialog(
+ WebKit::WebFrame* frame, const WebKit::WebString& message) {
+ return true;
+ }
+ virtual void setStatusText(const WebKit::WebString& text) {}
+ virtual void setMouseOverURL(const WebKit::WebURL& url) {}
+ virtual void setToolTipText(
+ const WebKit::WebString& text, WebKit::WebTextDirection hint) {}
+ virtual void startDragging(
+ const WebKit::WebPoint& from, const WebKit::WebDragData& data,
+ WebKit::WebDragOperationsMask mask) {}
+ virtual void focusNext() {}
+ virtual void focusPrevious() {}
+ virtual void navigateBackForwardSoon(int offset) {}
+ virtual int historyBackListCount() { return 0; }
+ virtual int historyForwardListCount() { return 0; }
+ virtual void didAddHistoryItem() {}
+
+ // WebKit::WebWidgetClient
virtual void didInvalidateRect(const WebKit::WebRect&) {}
virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect) {}
virtual void didFocus() {}
@@ -130,7 +169,6 @@ class PrintWebViewHelper : public WebViewDelegate {
virtual WebKit::WebRect windowResizerRect();
virtual WebKit::WebRect rootWindowRect();
virtual WebKit::WebScreenInfo screenInfo();
- virtual void DidStopLoading(WebView* webview);
private:
RenderView* render_view_;