diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h')
-rw-r--r-- | Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h b/Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h index c6a9131e4..3eb8129c7 100644 --- a/Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h +++ b/Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. + * Copyright (C) 2010, 2011, 2014-2015 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -23,19 +23,18 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef EventSendingController_h -#define EventSendingController_h +#pragma once #include "JSWrappable.h" -#include <WebKit2/WKEvent.h> -#include <WebKit2/WKGeometry.h> -#include <wtf/PassRefPtr.h> +#include <WebKit/WKEvent.h> +#include <WebKit/WKGeometry.h> +#include <wtf/Ref.h> namespace WTR { class EventSendingController : public JSWrappable { public: - static PassRefPtr<EventSendingController> create(); + static Ref<EventSendingController> create(); virtual ~EventSendingController(); void makeWindowObject(JSContextRef, JSObjectRef windowObject, JSValueRef* exception); @@ -46,11 +45,20 @@ public: void mouseDown(int button, JSValueRef modifierArray); void mouseUp(int button, JSValueRef modifierArray); void mouseMoveTo(int x, int y); + void mouseForceClick(); + void startAndCancelMouseForceClick(); + void mouseForceDown(); + void mouseForceUp(); + void mouseForceChanged(double force); void mouseScrollBy(int x, int y); + void mouseScrollByWithWheelAndMomentumPhases(int x, int y, JSStringRef phase, JSStringRef momentum); + void swipeGestureWithWheelAndMomentumPhases(int x, int y, JSStringRef phase, JSStringRef momentum); void continuousMouseScrollBy(int x, int y, bool paged); JSValueRef contextClick(); void leapForward(int milliseconds); void scheduleAsynchronousClick(); + void monitorWheelEvents(); + void callAfterScrollingCompletes(JSValueRef functionCallback); void keyDown(JSStringRef key, JSValueRef modifierArray, int location); void scheduleAsynchronousKeyDown(JSStringRef key); @@ -79,8 +87,7 @@ public: private: EventSendingController(); + WKPoint m_position; }; } // namespace WTR - -#endif // EventSendingController_h |