OLD | NEW |
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 <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 jint clip_bottom); | 122 jint clip_bottom); |
123 jlong GetAwDrawGLViewContext(JNIEnv* env, jobject obj); | 123 jlong GetAwDrawGLViewContext(JNIEnv* env, jobject obj); |
124 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height); | 124 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height); |
125 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); | 125 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); |
126 void ClearView(JNIEnv* env, jobject obj); | 126 void ClearView(JNIEnv* env, jobject obj); |
127 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj, | 127 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj, |
128 jstring url, jstring extra_headers); | 128 jstring url, jstring extra_headers); |
129 | 129 |
130 void DrawGL(AwDrawGLInfo* draw_info); | 130 void DrawGL(AwDrawGLInfo* draw_info); |
131 | 131 |
| 132 // TODO(sgurun) test this. |
| 133 void ClearClientCertPreferences(JNIEnv* env, jobject obj); |
| 134 |
132 // Geolocation API support | 135 // Geolocation API support |
133 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 136 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
134 void HideGeolocationPrompt(const GURL& origin); | 137 void HideGeolocationPrompt(const GURL& origin); |
135 void InvokeGeolocationCallback(JNIEnv* env, | 138 void InvokeGeolocationCallback(JNIEnv* env, |
136 jobject obj, | 139 jobject obj, |
137 jboolean value, | 140 jboolean value, |
138 jstring origin); | 141 jstring origin); |
139 | 142 |
140 // Find-in-page API and related methods. | 143 // Find-in-page API and related methods. |
141 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); | 144 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 std::list<OriginCallback> pending_geolocation_prompts_; | 232 std::list<OriginCallback> pending_geolocation_prompts_; |
230 | 233 |
231 DISALLOW_COPY_AND_ASSIGN(AwContents); | 234 DISALLOW_COPY_AND_ASSIGN(AwContents); |
232 }; | 235 }; |
233 | 236 |
234 bool RegisterAwContents(JNIEnv* env); | 237 bool RegisterAwContents(JNIEnv* env); |
235 | 238 |
236 } // namespace android_webview | 239 } // namespace android_webview |
237 | 240 |
238 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 241 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |