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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 jint clip_bottom); | 113 jint clip_bottom); |
114 void SetGlobalVisibleRect(JNIEnv* env, | 114 void SetGlobalVisibleRect(JNIEnv* env, |
115 jobject obj, | 115 jobject obj, |
116 jint visible_left, | 116 jint visible_left, |
117 jint visible_top, | 117 jint visible_top, |
118 jint visible_right, | 118 jint visible_right, |
119 jint visible_bottom); | 119 jint visible_bottom); |
120 jint GetAwDrawGLViewContext(JNIEnv* env, jobject obj); | 120 jint GetAwDrawGLViewContext(JNIEnv* env, jobject obj); |
121 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height); | 121 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height); |
122 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); | 122 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); |
| 123 void ClearView(JNIEnv* env, jobject obj); |
123 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj, | 124 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj, |
124 jstring url, jstring extra_headers); | 125 jstring url, jstring extra_headers); |
125 | 126 |
126 // Geolocation API support | 127 // Geolocation API support |
127 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 128 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
128 void HideGeolocationPrompt(const GURL& origin); | 129 void HideGeolocationPrompt(const GURL& origin); |
129 void InvokeGeolocationCallback(JNIEnv* env, | 130 void InvokeGeolocationCallback(JNIEnv* env, |
130 jobject obj, | 131 jobject obj, |
131 jboolean value, | 132 jboolean value, |
132 jstring origin); | 133 jstring origin); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 std::list<OriginCallback> pending_geolocation_prompts_; | 210 std::list<OriginCallback> pending_geolocation_prompts_; |
210 | 211 |
211 DISALLOW_COPY_AND_ASSIGN(AwContents); | 212 DISALLOW_COPY_AND_ASSIGN(AwContents); |
212 }; | 213 }; |
213 | 214 |
214 bool RegisterAwContents(JNIEnv* env); | 215 bool RegisterAwContents(JNIEnv* env); |
215 | 216 |
216 } // namespace android_webview | 217 } // namespace android_webview |
217 | 218 |
218 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 219 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |