void DumpRenderTreeSupportGtk::setMockGeolocationPermission(WebKitWebView* webView, bool allowed) { #if ENABLE(GEOLOCATION) GeolocationClientMock* mock = static_cast<GeolocationClientMock*>(GeolocationController::from(core(webView))->client()); mock->setPermission(allowed); #endif }
void DumpRenderTreeSupport::setMockGeolocationPermission(WebPage* webPage, bool allowed) { #if ENABLE(CLIENT_BASED_GEOLOCATION) GeolocationClientMock* mockClient = toGeolocationClientMock(corePage(webPage)->geolocationController()->client()); mockClient->setPermission(allowed); #endif }
void DumpRenderTreeSupportQt::setMockGeolocationPermission(QWebPageAdapter* adapter, bool allowed) { #if ENABLE(GEOLOCATION) Page* corePage = adapter->page; GeolocationClientMock* mockClient = toGeolocationClientMock(GeolocationController::from(corePage)->client()); mockClient->setPermission(allowed); #endif }
void DumpRenderTreeSupportQt::setMockGeolocationPermission(QWebPage* page, bool allowed) { #if ENABLE(CLIENT_BASED_GEOLOCATION) Page* corePage = QWebPagePrivate::core(page); GeolocationClientMock* mockClient = toGeolocationClientMock(corePage->geolocationController()->client()); mockClient->setPermission(allowed); #endif }
void DumpRenderTreeSupport::setMockGeolocationPermission(WebPage* webPage, bool allowed) { GeolocationClientMock* mockClient = toGeolocationClientMock(GeolocationController::from(corePage(webPage))->client()); mockClient->setPermission(allowed); }