void ChromeClient::requestGeolocationPermissionForFrame(Frame* frame, Geolocation* geolocation) { WebKitWebFrame* webFrame = kit(frame); GRefPtr<WebKitGeolocationPolicyDecision> policyDecision(adoptGRef(webkit_geolocation_policy_decision_new(webFrame, geolocation))); gboolean isHandled = FALSE; g_signal_emit_by_name(m_webView, "geolocation-policy-decision-requested", webFrame, policyDecision.get(), &isHandled); if (!isHandled) webkit_geolocation_policy_deny(policyDecision.get()); }
void ChromeClient::requestGeolocationPermissionForFrame(Frame* frame, Geolocation* geolocation) { WebKitWebFrame* webFrame = kit(frame); WebKitWebView* webView = getViewFromFrame(webFrame); WebKitGeolocationPolicyDecision* policyDecision = webkit_geolocation_policy_decision_new(webFrame, geolocation); gboolean isHandled = FALSE; g_signal_emit_by_name(webView, "geolocation-policy-decision-requested", webFrame, policyDecision, &isHandled); if (!isHandled) webkit_geolocation_policy_deny(policyDecision); }
void GeolocationClient::requestPermission(WebCore::Geolocation* geolocation) { WebKitWebFrame* webFrame = kit(geolocation->frame()); GRefPtr<WebKitGeolocationPolicyDecision> policyDecision(adoptGRef(webkit_geolocation_policy_decision_new(webFrame, geolocation))); gboolean isHandled = FALSE; g_signal_emit_by_name(m_webView, "geolocation-policy-decision-requested", webFrame, policyDecision.get(), &isHandled); if (!isHandled) webkit_geolocation_policy_deny(policyDecision.get()); #if MODIFY(ENGINE) else webkit_geolocation_policy_allow(policyDecision.get()); #endif }