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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 11763002: Implementing native chromium GeolocationPermissionContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Passing AwGeolocationPermission to the ctor 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
11 #include "android_webview/browser/find_helper.h" 11 #include "android_webview/browser/find_helper.h"
12 #include "android_webview/native/aw_geolocation_permission_context.h"
12 #include "android_webview/public/browser/draw_gl.h" 13 #include "android_webview/public/browser/draw_gl.h"
13 #include "base/android/scoped_java_ref.h" 14 #include "base/android/scoped_java_ref.h"
14 #include "base/android/jni_helper.h" 15 #include "base/android/jni_helper.h"
15 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
16 #include "content/public/browser/android/compositor.h" 17 #include "content/public/browser/android/compositor.h"
17 #include "content/public/browser/javascript_dialogs.h" 18 #include "content/public/browser/javascript_dialogs.h"
18 19
19 typedef void* EGLContext; 20 typedef void* EGLContext;
20 class TabContents; 21 class TabContents;
21 22
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool view_visible); 96 bool view_visible);
96 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h); 97 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h);
97 void OnDetachedFromWindow(JNIEnv* env, jobject obj); 98 void OnDetachedFromWindow(JNIEnv* env, jobject obj);
98 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState( 99 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState(
99 JNIEnv* env, jobject obj); 100 JNIEnv* env, jobject obj);
100 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state); 101 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state);
101 void SetScrollForHWFrame(JNIEnv* env, jobject obj, 102 void SetScrollForHWFrame(JNIEnv* env, jobject obj,
102 int scroll_x, int scroll_y); 103 int scroll_x, int scroll_y);
103 void FocusFirstNode(JNIEnv* env, jobject obj); 104 void FocusFirstNode(JNIEnv* env, jobject obj);
104 105
106 // Geolocation API support
107 void GeolocationShowPrompt(int render_process_id, int render_view_id,
108 int bridge_id, const GURL& requesting_frame);
109 void GeolocationHidePrompt();
110
105 // Find-in-page API and related methods. 111 // Find-in-page API and related methods.
106 jint FindAllSync(JNIEnv* env, jobject obj, jstring search_string); 112 jint FindAllSync(JNIEnv* env, jobject obj, jstring search_string);
107 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); 113 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string);
108 void FindNext(JNIEnv* env, jobject obj, jboolean forward); 114 void FindNext(JNIEnv* env, jobject obj, jboolean forward);
109 void ClearMatches(JNIEnv* env, jobject obj); 115 void ClearMatches(JNIEnv* env, jobject obj);
110 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 116 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
111 117
112 FindHelper* GetFindHelper(); 118 FindHelper* GetFindHelper();
113 119
114 // FindHelper::Listener implementation. 120 // FindHelper::Listener implementation.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 EGLContext last_frame_context_; 159 EGLContext last_frame_context_;
154 160
155 DISALLOW_COPY_AND_ASSIGN(AwContents); 161 DISALLOW_COPY_AND_ASSIGN(AwContents);
156 }; 162 };
157 163
158 bool RegisterAwContents(JNIEnv* env); 164 bool RegisterAwContents(JNIEnv* env);
159 165
160 } // namespace android_webview 166 } // namespace android_webview
161 167
162 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 168 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698