| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const std::string& realm); | 82 const std::string& realm); |
| 83 | 83 |
| 84 // Methods called from Java. | 84 // Methods called from Java. |
| 85 void SetJavaPeers(JNIEnv* env, | 85 void SetJavaPeers(JNIEnv* env, |
| 86 jobject obj, | 86 jobject obj, |
| 87 jobject aw_contents, | 87 jobject aw_contents, |
| 88 jobject web_contents_delegate, | 88 jobject web_contents_delegate, |
| 89 jobject contents_client_bridge, | 89 jobject contents_client_bridge, |
| 90 jobject io_thread_client, | 90 jobject io_thread_client, |
| 91 jobject intercept_navigation_delegate); | 91 jobject intercept_navigation_delegate); |
| 92 jlong GetWebContents(JNIEnv* env, jobject obj); | 92 base::android::ScopedJavaLocalRef<jobject> GetWebContents(JNIEnv* env, |
| 93 jobject obj); |
| 93 | 94 |
| 94 void Destroy(JNIEnv* env, jobject obj); | 95 void Destroy(JNIEnv* env, jobject obj); |
| 95 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); | 96 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); |
| 96 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback); | 97 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback); |
| 97 void CreatePdfExporter(JNIEnv* env, jobject obj, jobject pdfExporter); | 98 void CreatePdfExporter(JNIEnv* env, jobject obj, jobject pdfExporter); |
| 98 void AddVisitedLinks(JNIEnv* env, jobject obj, jobjectArray jvisited_links); | 99 void AddVisitedLinks(JNIEnv* env, jobject obj, jobjectArray jvisited_links); |
| 99 base::android::ScopedJavaLocalRef<jbyteArray> GetCertificate( | 100 base::android::ScopedJavaLocalRef<jbyteArray> GetCertificate( |
| 100 JNIEnv* env, jobject obj); | 101 JNIEnv* env, jobject obj); |
| 101 void RequestNewHitTestDataAt(JNIEnv* env, | 102 void RequestNewHitTestDataAt(JNIEnv* env, |
| 102 jobject obj, | 103 jobject obj, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 GLViewRendererManager::Key renderer_manager_key_; | 259 GLViewRendererManager::Key renderer_manager_key_; |
| 259 | 260 |
| 260 DISALLOW_COPY_AND_ASSIGN(AwContents); | 261 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 bool RegisterAwContents(JNIEnv* env); | 264 bool RegisterAwContents(JNIEnv* env); |
| 264 | 265 |
| 265 } // namespace android_webview | 266 } // namespace android_webview |
| 266 | 267 |
| 267 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 268 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |