diff options
author | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 11:24:42 +0000 |
---|---|---|
committer | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 11:24:42 +0000 |
commit | 53384397a95e97c0cc3e8fdee68640e20a2ce5fd (patch) | |
tree | acb3d3b48f70928f935b2acbc88a439c250d330f /webkit/tools/test_shell/test_webview_delegate.h | |
parent | 12b626b4a7f274f2e52e0b271309e2e2cb524d96 (diff) | |
download | chromium_src-53384397a95e97c0cc3e8fdee68640e20a2ce5fd.zip chromium_src-53384397a95e97c0cc3e8fdee68640e20a2ce5fd.tar.gz chromium_src-53384397a95e97c0cc3e8fdee68640e20a2ce5fd.tar.bz2 |
TestShell: Backported EventSender.contextClick() improvement to mock menu item strings.
BUG=63460
TEST=LayoutTest/editing/spelling/context-menu-suggestions.html
TBR=morrita@chromium.org
Review URL: http://codereview.chromium.org/5120002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67248 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.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.h b/webkit/tools/test_shell/test_webview_delegate.h index c63cb9f..3c7f38d 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_; |