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

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: Fixing clang errors 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
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool view_visible); 96 bool view_visible);
97 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h); 97 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h);
98 void OnDetachedFromWindow(JNIEnv* env, jobject obj); 98 void OnDetachedFromWindow(JNIEnv* env, jobject obj);
99 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState( 99 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState(
100 JNIEnv* env, jobject obj); 100 JNIEnv* env, jobject obj);
101 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state); 101 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state);
102 void SetScrollForHWFrame(JNIEnv* env, jobject obj, 102 void SetScrollForHWFrame(JNIEnv* env, jobject obj,
103 int scroll_x, int scroll_y); 103 int scroll_x, int scroll_y);
104 void FocusFirstNode(JNIEnv* env, jobject obj); 104 void FocusFirstNode(JNIEnv* env, jobject obj);
105 105
106 // Geolocation API support
107 void OnGeolocationShowPrompt(int render_process_id,
108 int render_view_id,
109 int bridge_id,
110 const GURL& requesting_frame);
111 void OnGeolocationHidePrompt();
112
106 // Find-in-page API and related methods. 113 // Find-in-page API and related methods.
107 jint FindAllSync(JNIEnv* env, jobject obj, jstring search_string); 114 jint FindAllSync(JNIEnv* env, jobject obj, jstring search_string);
108 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); 115 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string);
109 void FindNext(JNIEnv* env, jobject obj, jboolean forward); 116 void FindNext(JNIEnv* env, jobject obj, jboolean forward);
110 void ClearMatches(JNIEnv* env, jobject obj); 117 void ClearMatches(JNIEnv* env, jobject obj);
111 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 118 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
112 119
113 FindHelper* GetFindHelper(); 120 FindHelper* GetFindHelper();
114 121
115 // FindHelper::Listener implementation. 122 // FindHelper::Listener implementation.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 EGLContext last_frame_context_; 164 EGLContext last_frame_context_;
158 165
159 DISALLOW_COPY_AND_ASSIGN(AwContents); 166 DISALLOW_COPY_AND_ASSIGN(AwContents);
160 }; 167 };
161 168
162 bool RegisterAwContents(JNIEnv* env); 169 bool RegisterAwContents(JNIEnv* env);
163 170
164 } // namespace android_webview 171 } // namespace android_webview
165 172
166 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 173 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698