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

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 2681933002: Add Java wrapper for RenderFrameHost (Closed)
Patch Set: Make test work with PlzNavigate Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index 141a83c3fe0fc433169269556f37b10daa6ae69b..c9f073ce8cc72e323f20306defd28dc2a1ecaba9 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -294,6 +294,12 @@ WebContentsAndroid::GetTopLevelNativeWindow(JNIEnv* env,
return window_android->GetJavaObject();
}
+ScopedJavaLocalRef<jobject> WebContentsAndroid::GetMainFrame(
+ JNIEnv* env,
+ const JavaParamRef<jobject>& obj) const {
+ return web_contents_->GetMainFrame()->GetJavaRenderFrameHost();
+}
+
ScopedJavaLocalRef<jstring> WebContentsAndroid::GetTitle(
JNIEnv* env,
const JavaParamRef<jobject>& obj) const {
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698