| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 jint visible_bottom); | 123 jint visible_bottom); |
| 124 jlong GetAwDrawGLViewContext(JNIEnv* env, jobject obj); | 124 jlong GetAwDrawGLViewContext(JNIEnv* env, jobject obj); |
| 125 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height); | 125 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height); |
| 126 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); | 126 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); |
| 127 void ClearView(JNIEnv* env, jobject obj); | 127 void ClearView(JNIEnv* env, jobject obj); |
| 128 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj, | 128 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj, |
| 129 jstring url, jstring extra_headers); | 129 jstring url, jstring extra_headers); |
| 130 void SendCheckRenderThreadResponsiveness(JNIEnv* env, jobject obj); | 130 void SendCheckRenderThreadResponsiveness(JNIEnv* env, jobject obj); |
| 131 | 131 |
| 132 void DrawGL(AwDrawGLInfo* draw_info); | 132 void DrawGL(AwDrawGLInfo* draw_info); |
| 133 void DrawGLForTesting(JNIEnv* env, jobject obj, jint width, jint height); |
| 133 | 134 |
| 134 void InvokeGeolocationCallback(JNIEnv* env, | 135 void InvokeGeolocationCallback(JNIEnv* env, |
| 135 jobject obj, | 136 jobject obj, |
| 136 jboolean value, | 137 jboolean value, |
| 137 jstring origin); | 138 jstring origin); |
| 138 | 139 |
| 139 // PermissionRequestHandlerClient implementation. | 140 // PermissionRequestHandlerClient implementation. |
| 140 virtual void OnPermissionRequest(AwPermissionRequest* request) OVERRIDE; | 141 virtual void OnPermissionRequest(AwPermissionRequest* request) OVERRIDE; |
| 141 virtual void OnPermissionRequestCanceled( | 142 virtual void OnPermissionRequestCanceled( |
| 142 AwPermissionRequest* request) OVERRIDE; | 143 AwPermissionRequest* request) OVERRIDE; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 GLViewRendererManager::Key renderer_manager_key_; | 260 GLViewRendererManager::Key renderer_manager_key_; |
| 260 | 261 |
| 261 DISALLOW_COPY_AND_ASSIGN(AwContents); | 262 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 262 }; | 263 }; |
| 263 | 264 |
| 264 bool RegisterAwContents(JNIEnv* env); | 265 bool RegisterAwContents(JNIEnv* env); |
| 265 | 266 |
| 266 } // namespace android_webview | 267 } // namespace android_webview |
| 267 | 268 |
| 268 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 269 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |