summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/event_sending_controller.h
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 22:24:36 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 22:24:36 +0000
commit7c38b9089a9f57d576eee01ef7f10e8a54eadd8e (patch)
tree6e6bd80349d93f2944a31a3993dbb614f38b3325 /webkit/tools/test_shell/event_sending_controller.h
parent5dd784f366d0cc2388bcb764e1f1b2b5d2ec0a91 (diff)
downloadchromium_src-7c38b9089a9f57d576eee01ef7f10e8a54eadd8e.zip
chromium_src-7c38b9089a9f57d576eee01ef7f10e8a54eadd8e.tar.gz
chromium_src-7c38b9089a9f57d576eee01ef7f10e8a54eadd8e.tar.bz2
Fix EventSendingController so that we do event saving and replay like what WebKit does. Also fix a bunch of small issues in EventSendingController.
BUG=12197,12477 TEST=existing layout tests Review URL: http://codereview.chromium.org/266076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29043 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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/event_sending_controller.h b/webkit/tools/test_shell/event_sending_controller.h
index 409e0f2..ba2a3b2 100644
--- a/webkit/tools/test_shell/event_sending_controller.h
+++ b/webkit/tools/test_shell/event_sending_controller.h
@@ -28,7 +28,6 @@ class WebView;
namespace WebKit {
class WebDragData;
-class WebMouseEvent;
struct WebPoint;
}
@@ -91,6 +90,7 @@ class EventSendingController : public CppBoundClass {
// handling purposes. These methods dispatch the event.
static void DoMouseMove(const WebKit::WebMouseEvent& e);
static void DoMouseUp(const WebKit::WebMouseEvent& e);
+ static void DoLeapForward(int milliseconds);
static void ReplaySavedEvents();
// Helper to return the button type given a button code
@@ -105,6 +105,8 @@ class EventSendingController : public CppBoundClass {
// be passed into the generated event.
bool NeedsShiftModifier(int key_code);
+ void UpdateClickCountForButton(WebKit::WebMouseEvent::Button button_type);
+
ScopedRunnableMethodFactory<EventSendingController> method_factory_;
// Non-owning pointer. The LayoutTestController is owned by the host.
@@ -119,7 +121,7 @@ class EventSendingController : public CppBoundClass {
// The last button number passed to mouseDown and mouseUp.
// Used to determine whether the click count continues to
// increment or not.
- static int last_button_number_;
+ static WebKit::WebMouseEvent::Button last_button_type_;
};
#endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_