summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/event_sending_controller.h
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-25 03:30:34 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-25 03:30:34 +0000
commit42be0ca594ed7980c7ee73ef04919cd890463e9a (patch)
tree2a842c204463a24dd792734ab7d4867974ca5381 /webkit/tools/test_shell/event_sending_controller.h
parent4fb105e615d1ee15127f8b293e7e3361ed7c74b0 (diff)
downloadchromium_src-42be0ca594ed7980c7ee73ef04919cd890463e9a.zip
chromium_src-42be0ca594ed7980c7ee73ef04919cd890463e9a.tar.gz
chromium_src-42be0ca594ed7980c7ee73ef04919cd890463e9a.tar.bz2
Ensure "contextmenu" event is dispatched _after_ "mouseup".
BUG=1330688 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/event_sending_controller.h')
-rw-r--r--webkit/tools/test_shell/event_sending_controller.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/event_sending_controller.h b/webkit/tools/test_shell/event_sending_controller.h
index b25d5e90..4edb60e 100644
--- a/webkit/tools/test_shell/event_sending_controller.h
+++ b/webkit/tools/test_shell/event_sending_controller.h
@@ -66,6 +66,10 @@ class EventSendingController : public CppBoundClass {
static void DoMouseUp(const WebMouseEvent& e);
static void ReplaySavedEvents();
+ // Helper to extract the optional arg from mouseDown() and mouseUp()
+ static WebMouseEvent::Button GetButtonTypeFromSingleArg(
+ const CppArgumentList& args);
+
// Returns true if the key_code passed in needs a shift key modifier to
// be passed into the generated event.
bool NeedsShiftModifer(wchar_t key_code);