summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-02 16:25:15 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-02 16:25:15 +0000
commitf56eed44ee5f199604fdf32cfab3d4abe183182a (patch)
tree0036230729aaf09d2f9c8fc057df006c91064505 /webkit/glue/webview.h
parent789fbb7cd36822230870c3beff00fa30b532d14e (diff)
downloadchromium_src-f56eed44ee5f199604fdf32cfab3d4abe183182a.zip
chromium_src-f56eed44ee5f199604fdf32cfab3d4abe183182a.tar.gz
chromium_src-f56eed44ee5f199604fdf32cfab3d4abe183182a.tar.bz2
Fix tests that depend on setCustomPolicyDelegate and waitForPolicyDelegate.
Changes: 1- Need to support a second parameter to setCustomPolicyDelegate that controls whether subsequent loads are permitted or not. Previously, we would always deny any subsequent loads. 2- Need to change the string that we produce when writing out the URL that is impacted by a custom policy delegate. We need to write out only the filename part of the URL. (We need to do this only for file:// URLs.) 3- Add LayoutTestController::waitForPolicyDelegate and corresponding method on TestWebViewDelegate. 4- Improve the way we reset the TestWebViewDelegate. Now, instead of having support for reseting individual fields, we just reallocate the delegate. This requires adding a SetDelegate method to WebView. BUG=9582 R=dglazkov Review URL: http://codereview.chromium.org/56169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview.h')
-rw-r--r--webkit/glue/webview.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webview.h b/webkit/glue/webview.h
index 4a569d6..fb557e9 100644
--- a/webkit/glue/webview.h
+++ b/webkit/glue/webview.h
@@ -52,6 +52,9 @@ class WebView : public WebWidget {
// it, it will be NULL during closing of the view.
virtual WebViewDelegate* GetDelegate() = 0;
+ // Changes the delegate for this WebView. It is valid to set this to NULL.
+ virtual void SetDelegate(WebViewDelegate* delegate) = 0;
+
// Instructs the EditorClient whether to pass editing notifications on to a
// delegate, if one is present. This allows embedders that haven't
// overridden any editor delegate methods to avoid the performance impact of