Lines Matching refs:webViewCore
31 #include "WebViewCore.h"
45 WebViewCore* getWebViewCore(JNIEnv* env, jobject webViewCore)
47 ScopedLocalRef<jclass> webViewCoreClass(env, env->FindClass("android/webkit/WebViewCore"));
49 return reinterpret_cast<WebViewCore*>(env->GetIntField(webViewCore, nativeClassField));
52 static void setUseMock(JNIEnv* env, jobject, jobject webViewCore)
54 getWebViewCore(env, webViewCore)->geolocationManager()->setUseMock();
57 static void setPosition(JNIEnv* env, jobject, jobject webViewCore, double latitude, double longitude, double accuracy)
59 getWebViewCore(env, webViewCore)->geolocationManager()->setMockPosition(GeolocationPosition::create(WTF::currentTime(),
69 static void setError(JNIEnv* env, jobject, jobject webViewCore, int code, jstring message)
72 getWebViewCore(env, webViewCore)->geolocationManager()->setMockError(GeolocationError::create(codeEnum, jstringToWtfString(env, message)));
75 static void setPermission(JNIEnv* env, jobject, jobject webViewCore, bool allow)
77 getWebViewCore(env, webViewCore)->geolocationManager()->setMockPermission(allow);
81 { "nativeSetUseMock", "(Landroid/webkit/WebViewCore;)V", (void*) setUseMock },
82 { "nativeSetPosition", "(Landroid/webkit/WebViewCore;DDD)V", (void*) setPosition },
83 { "nativeSetError", "(Landroid/webkit/WebViewCore;ILjava/lang/String;)V", (void*) setError },
84 { "nativeSetPermission", "(Landroid/webkit/WebViewCore;Z)V", (void*) setPermission },