diff options
Diffstat (limited to 'webkit/tools/test_shell/event_sending_controller.h')
-rw-r--r-- | webkit/tools/test_shell/event_sending_controller.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/webkit/tools/test_shell/event_sending_controller.h b/webkit/tools/test_shell/event_sending_controller.h index 906ccef..d6d62d5 100644 --- a/webkit/tools/test_shell/event_sending_controller.h +++ b/webkit/tools/test_shell/event_sending_controller.h @@ -19,12 +19,16 @@ #include "build/build_config.h" #include "base/gfx/point.h" #include "base/task.h" +#include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" #include "webkit/glue/cpp_bound_class.h" -#include "webkit/glue/webdropdata.h" -#include "webkit/glue/webinputevent.h" class TestShell; class WebView; +struct WebDropData; + +namespace WebKit { +class WebMouseEvent; +} class EventSendingController : public CppBoundClass { public: @@ -78,12 +82,13 @@ class EventSendingController : public CppBoundClass { // Sometimes we queue up mouse move and mouse up events for drag drop // handling purposes. These methods dispatch the event. - static void DoMouseMove(const WebMouseEvent& e); - static void DoMouseUp(const WebMouseEvent& e); + static void DoMouseMove(const WebKit::WebMouseEvent& e); + static void DoMouseUp(const WebKit::WebMouseEvent& e); static void ReplaySavedEvents(); // Helper to return the button type given a button code - static WebMouseEvent::Button GetButtonTypeFromButtonNumber(int button_code); + static WebKit::WebMouseEvent::Button GetButtonTypeFromButtonNumber( + int button_code); // Helper to extract the button number from the optional argument in // mouseDown and mouseUp @@ -102,7 +107,7 @@ class EventSendingController : public CppBoundClass { static gfx::Point last_mouse_pos_; // Currently pressed mouse button (Left/Right/Middle or None) - static WebMouseEvent::Button pressed_button_; + static WebKit::WebMouseEvent::Button pressed_button_; // The last button number passed to mouseDown and mouseUp. // Used to determine whether the click count continues to |