summaryrefslogtreecommitdiff
path: root/Tools/WebKitTestRunner/TestController.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-09-24 13:09:44 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-09-24 13:09:44 +0200
commitdc6262b587c71c14e30d93e57ed812e36a79a33e (patch)
tree03ff986e7aa38bba0c0ef374f44fda52aff93f01 /Tools/WebKitTestRunner/TestController.h
parent02e1fbbefd49229b102ef107bd70ce974a2d85fb (diff)
downloadqtwebkit-dc6262b587c71c14e30d93e57ed812e36a79a33e.tar.gz
Imported WebKit commit 6339232fec7f5d9984a33388aecfd2cbc7832053 (http://svn.webkit.org/repository/webkit/trunk@129343)
New snapshot with build fixes for latest qtbase
Diffstat (limited to 'Tools/WebKitTestRunner/TestController.h')
-rw-r--r--Tools/WebKitTestRunner/TestController.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tools/WebKitTestRunner/TestController.h b/Tools/WebKitTestRunner/TestController.h
index 0d33717b7..8125a3646 100644
--- a/Tools/WebKitTestRunner/TestController.h
+++ b/Tools/WebKitTestRunner/TestController.h
@@ -27,6 +27,7 @@
#define TestController_h
#include "WebNotificationProvider.h"
+#include <GeolocationProviderMock.h>
#include <WebKit2/WKRetainPtr.h>
#include <string>
#include <vector>
@@ -65,6 +66,11 @@ public:
void simulateWebNotificationClick(uint64_t notificationID);
+ // Geolocation.
+ void setGeolocationPermission(bool enabled) { m_isGeolocationPermissionAllowed = enabled; }
+ bool isGeolocationPermissionAllowed() const { return m_isGeolocationPermissionAllowed; }
+ void setMockGeolocationPosition(double latitude, double longitude, double accuracy);
+
bool resetStateToConsistentValues();
private:
@@ -123,6 +129,7 @@ private:
OwnPtr<PlatformWebView> m_mainWebView;
WKRetainPtr<WKContextRef> m_context;
WKRetainPtr<WKPageGroupRef> m_pageGroup;
+ OwnPtr<GeolocationProviderMock> m_geolocationProvider;
enum State {
Initial,
@@ -143,6 +150,8 @@ private:
bool m_beforeUnloadReturnValue;
+ bool m_isGeolocationPermissionAllowed;
+
EventSenderProxy* m_eventSenderProxy;
};