diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
commit | a4e969f4965059196ca948db781e52f7cfebf19e (patch) | |
tree | 6ca352808c8fdc52006a0f33f6ae3c593b23867d /Tools/WebKitTestRunner/EventSenderProxy.h | |
parent | 41386e9cb918eed93b3f13648cbef387e371e451 (diff) | |
download | WebKitGtk-tarball-a4e969f4965059196ca948db781e52f7cfebf19e.tar.gz |
webkitgtk-2.12.3webkitgtk-2.12.3
Diffstat (limited to 'Tools/WebKitTestRunner/EventSenderProxy.h')
-rw-r--r-- | Tools/WebKitTestRunner/EventSenderProxy.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/Tools/WebKitTestRunner/EventSenderProxy.h b/Tools/WebKitTestRunner/EventSenderProxy.h index db2c58b0d..70d94014c 100644 --- a/Tools/WebKitTestRunner/EventSenderProxy.h +++ b/Tools/WebKitTestRunner/EventSenderProxy.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Apple Inc. All rights reserved. + * Copyright (C) 2011, 2014 Apple Inc. All rights reserved. * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). * * Redistribution and use in source and binary forms, with or without @@ -29,6 +29,7 @@ #include <wtf/Deque.h> #include <wtf/HashMap.h> +#include <wtf/RetainPtr.h> #include <wtf/Vector.h> #if PLATFORM(GTK) @@ -36,7 +37,11 @@ #include <gdk/gdk.h> #include <wtf/HashSet.h> #elif PLATFORM(EFL) -#include <WebKit2/EWebKit2.h> +#include "EWebKit2.h" +#endif + +#if PLATFORM(COCOA) +OBJC_CLASS NSEvent; #endif namespace WTR { @@ -58,8 +63,15 @@ public: void mouseDown(unsigned button, WKEventModifiers); void mouseUp(unsigned button, WKEventModifiers); + void mouseForceDown(); + void mouseForceUp(); + void mouseForceChanged(float); + void mouseForceClick(); + void startAndCancelMouseForceClick(); void mouseMoveTo(double x, double y); void mouseScrollBy(int x, int y); + void mouseScrollByWithWheelAndMomentumPhases(int x, int y, int phase, int momentum); + void swipeGestureWithWheelAndMomentumPhases(int x, int y, int phase, int momentum); void continuousMouseScrollBy(int x, int y, bool paged); void leapForward(int milliseconds); @@ -91,8 +103,17 @@ private: void replaySavedEvents(); #endif + void sendMouseDownToStartPressureEvents(); +#if PLATFORM(COCOA) + enum class PressureChangeDirection { Increasing, Decreasing }; + RetainPtr<NSEvent> beginPressureEvent(int stage); + RetainPtr<NSEvent> pressureChangeEvent(int stage, PressureChangeDirection); + RetainPtr<NSEvent> pressureChangeEvent(int stage, float pressure, PressureChangeDirection); +#endif + #if PLATFORM(GTK) void sendOrQueueEvent(GdkEvent*); + void dispatchEvent(GdkEvent*); GdkEvent* createMouseButtonEvent(GdkEventType, unsigned button, WKEventModifiers); GUniquePtr<GdkEvent> createTouchEvent(GdkEventType, int id); void sendUpdatedTouchEvents(); @@ -111,7 +132,7 @@ private: double m_clickTime; WKPoint m_clickPosition; WKEventMouseButton m_clickButton; -#if PLATFORM(MAC) +#if PLATFORM(COCOA) int eventNumber; #elif PLATFORM(GTK) Deque<WTREventQueueItem> m_eventQueue; |