diff options
Diffstat (limited to 'Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp')
| -rw-r--r-- | Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp b/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp index 6197a794f..13c18388b 100644 --- a/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp +++ b/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp @@ -393,11 +393,6 @@ void TestRunner::setPluginsEnabled(bool enabled) WKBundleSetPluginsEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); } -void TestRunner::setGeolocationPermission(bool enabled) -{ - WKBundleSetGeolocationPermission(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); -} - void TestRunner::setJavaScriptCanAccessClipboard(bool enabled) { WKBundleSetJavaScriptCanAccessClipboard(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); @@ -772,6 +767,17 @@ void TestRunner::simulateWebNotificationClick(JSValueRef notification) InjectedBundle::shared().postSimulateWebNotificationClick(notificationID); } +void TestRunner::setGeolocationPermission(bool enabled) +{ + // FIXME: this should be done by frame. + InjectedBundle::shared().setGeolocationPermission(enabled); +} + +void TestRunner::setMockGeolocationPosition(double latitude, double longitude, double accuracy) +{ + InjectedBundle::shared().setMockGeolocationPosition(latitude, longitude, accuracy); +} + bool TestRunner::callShouldCloseOnWebView() { WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); |
