Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2572)

Unified Diff: android_webview/native/aw_contents.cc

Issue 11763002: Implementing native chromium GeolocationPermissionContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small corrections Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index fbdc7105404dc1332c40a633a462cb11fa2320a7..576b9296271d6fc5f17e49c473543aea0a4f00fd 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -647,6 +647,22 @@ bool RegisterAwContents(JNIEnv* env) {
return RegisterNativesImpl(env) >= 0;
}
+void AwContents::GeolocationShowPrompt(int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ const GURL& requesting_frame) {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jstring> j_requesting_frame(
+ ConvertUTF8ToJavaString(env, requesting_frame.spec()));
+ Java_AwContents_onGeolocationPermissionsShowPrompt(env,
+ java_ref_.get(env).obj(), render_process_id, render_view_id, bridge_id,
+ j_requesting_frame.obj());
+}
+
+void AwContents::GeolocationHidePrompt() {
+ // TODO(kristianm): Implement this
+}
+
jint AwContents::FindAllSync(JNIEnv* env, jobject obj, jstring search_string) {
return GetFindHelper()->FindAllSync(
ConvertJavaStringToUTF16(env, search_string));

Powered by Google App Engine
This is Rietveld 408576698