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

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

Issue 5120002: TestShell: Backported EventSender.contextClick() improvement (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed feedback Created 10 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
« no previous file with comments | « webkit/tools/test_shell/mock_spellcheck.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c63cb9f112153243a2ad904ff704c059b887012f..3c7f38d419a28374b5aa4386c85c3445eb7812a9 100644
--- a/webkit/tools/test_shell/test_webview_delegate.h
+++ b/webkit/tools/test_shell/test_webview_delegate.h
@@ -325,6 +325,16 @@ class TestWebViewDelegate : public WebKit::WebViewClient,
void SetGeolocationPermission(bool allowed);
+ void ClearContextMenuData();
+
+ const WebKit::WebContextMenuData* last_context_menu_data() const {
+ return last_context_menu_data_.get();
+ }
+
+ MockSpellCheck* mock_spellcheck() {
+ return &mock_spellcheck_;
+ }
+
private:
// Called the title of the page changes.
@@ -402,6 +412,7 @@ class TestWebViewDelegate : public WebKit::WebViewClient,
std::string GetResourceDescription(uint32 identifier);
CapturedContextMenuEvents captured_context_menu_events_;
+ scoped_ptr<WebKit::WebContextMenuData> last_context_menu_data_;
WebCursor current_cursor_;
« no previous file with comments | « webkit/tools/test_shell/mock_spellcheck.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698