summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_webview_delegate.h
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-09 18:46:04 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-09 18:46:04 +0000
commit526f26d994827a45530311d6770f5a59aafa5227 (patch)
treeaec5021062348d980bfa7f59e960449190a7ab40 /webkit/tools/test_shell/test_webview_delegate.h
parentbaa010b1e95fa47097f4bb34ea178bdfe2d98325 (diff)
downloadchromium_src-526f26d994827a45530311d6770f5a59aafa5227.zip
chromium_src-526f26d994827a45530311d6770f5a59aafa5227.tar.gz
chromium_src-526f26d994827a45530311d6770f5a59aafa5227.tar.bz2
test_webview_delegate.cc was forked for the Mac test shell, and then
the GTK test shell was a fork of that. This change reunifies the Windows and GTK versions by refactoring the basic functionality out. It should be easy enough to fix the Mac one as well following this. Review URL: http://codereview.chromium.org/9735 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5089 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.h')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.h b/webkit/tools/test_shell/test_webview_delegate.h
index 36bfac0..9c54213 100644
--- a/webkit/tools/test_shell/test_webview_delegate.h
+++ b/webkit/tools/test_shell/test_webview_delegate.h
@@ -236,8 +236,23 @@ class TestWebViewDelegate : public base::RefCounted<TestWebViewDelegate>,
void RegisterDragDrop();
protected:
+ // Called the title of the page changes.
+ // Can be used to update the title of the window.
+ void SetPageTitle(const std::wstring& title);
+
+ // Called when the URL of the page changes.
+ // Extracts the URL and forwards on to SetAddressBarURL().
void UpdateAddressBar(WebView* webView);
+ // Called when the URL of the page changes.
+ // Should be used to update the text of the URL bar.
+ void SetAddressBarURL(const GURL& url);
+
+ // Show a JavaScript alert as a popup message.
+ // The caller should test whether we're in interactive mode and only
+ // call this function when we really want a message to pop up.
+ void ShowJavaScriptAlert(const std::wstring& message);
+
// In the Mac code, this is called to trigger the end of a test after the
// page has finished loading. From here, we can generate the dump for the
// test.