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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.h

Issue 9735: test_webview_delegate.cc was forked for the Mac test shell, and then (Closed)
Patch Set: Created 12 years, 1 month 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
Index: webkit/tools/test_shell/test_webview_delegate.h
diff --git a/webkit/tools/test_shell/test_webview_delegate.h b/webkit/tools/test_shell/test_webview_delegate.h
index 36bfac009ab417abe2a5e8aac5fb37f96012409b..9c54213f82c830a4537d61daa2f9785e285f03c0 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.

Powered by Google App Engine
This is Rietveld 408576698