Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: android_webview/native/aw_contents.h

Issue 831523005: Remove most native WebContents references from Java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Kept same error checking behavior for aw_contents.cc Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const std::string& realm); 81 const std::string& realm);
82 82
83 // Methods called from Java. 83 // Methods called from Java.
84 void SetJavaPeers(JNIEnv* env, 84 void SetJavaPeers(JNIEnv* env,
85 jobject obj, 85 jobject obj,
86 jobject aw_contents, 86 jobject aw_contents,
87 jobject web_contents_delegate, 87 jobject web_contents_delegate,
88 jobject contents_client_bridge, 88 jobject contents_client_bridge,
89 jobject io_thread_client, 89 jobject io_thread_client,
90 jobject intercept_navigation_delegate); 90 jobject intercept_navigation_delegate);
91 jlong GetWebContents(JNIEnv* env, jobject obj); 91 base::android::ScopedJavaLocalRef<jobject> GetWebContents(JNIEnv* env,
92 jobject obj);
92 93
93 void Destroy(JNIEnv* env, jobject obj); 94 void Destroy(JNIEnv* env, jobject obj);
94 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); 95 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message);
95 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback); 96 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback);
96 void CreatePdfExporter(JNIEnv* env, jobject obj, jobject pdfExporter); 97 void CreatePdfExporter(JNIEnv* env, jobject obj, jobject pdfExporter);
97 void AddVisitedLinks(JNIEnv* env, jobject obj, jobjectArray jvisited_links); 98 void AddVisitedLinks(JNIEnv* env, jobject obj, jobjectArray jvisited_links);
98 base::android::ScopedJavaLocalRef<jbyteArray> GetCertificate( 99 base::android::ScopedJavaLocalRef<jbyteArray> GetCertificate(
99 JNIEnv* env, jobject obj); 100 JNIEnv* env, jobject obj);
100 void RequestNewHitTestDataAt(JNIEnv* env, 101 void RequestNewHitTestDataAt(JNIEnv* env,
101 jobject obj, 102 jobject obj,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 GLViewRendererManager::Key renderer_manager_key_; 256 GLViewRendererManager::Key renderer_manager_key_;
256 257
257 DISALLOW_COPY_AND_ASSIGN(AwContents); 258 DISALLOW_COPY_AND_ASSIGN(AwContents);
258 }; 259 };
259 260
260 bool RegisterAwContents(JNIEnv* env); 261 bool RegisterAwContents(JNIEnv* env);
261 262
262 } // namespace android_webview 263 } // namespace android_webview
263 264
264 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 265 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698