| 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 SetExtraHeadersForUrl(JNIEnv* env, jobject obj, |
| 124 jstring url, jstring extra_headers); |
| 123 | 125 |
| 124 // Geolocation API support | 126 // Geolocation API support |
| 125 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 127 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
| 126 void HideGeolocationPrompt(const GURL& origin); | 128 void HideGeolocationPrompt(const GURL& origin); |
| 127 void InvokeGeolocationCallback(JNIEnv* env, | 129 void InvokeGeolocationCallback(JNIEnv* env, |
| 128 jobject obj, | 130 jobject obj, |
| 129 jboolean value, | 131 jboolean value, |
| 130 jstring origin); | 132 jstring origin); |
| 131 | 133 |
| 132 // Find-in-page API and related methods. | 134 // Find-in-page API and related methods. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 std::list<OriginCallback> pending_geolocation_prompts_; | 209 std::list<OriginCallback> pending_geolocation_prompts_; |
| 208 | 210 |
| 209 DISALLOW_COPY_AND_ASSIGN(AwContents); | 211 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 bool RegisterAwContents(JNIEnv* env); | 214 bool RegisterAwContents(JNIEnv* env); |
| 213 | 215 |
| 214 } // namespace android_webview | 216 } // namespace android_webview |
| 215 | 217 |
| 216 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 218 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |