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

Unified Diff: android_webview/native/aw_contents.cc

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: prevent view_root_ gc'ed Created 4 years 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: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index ccd4ff8c4e00aa932b8c7815ac8ae64671a40ec5..66a3c058a2b2a062128be2e682582a26b96ca0a5 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -1255,6 +1255,12 @@ void AwContents::ResumeLoadingCreatedPopupWebContents(
web_contents_->ResumeLoadingCreatedWebContents();
}
+ScopedJavaLocalRef<jobject> AwContents::GetViewRoot(
+ JNIEnv* env,
+ const JavaParamRef<jobject>& obj) {
+ return web_contents_->GetNativeView()->GetViewRoot();
+}
+
void SetShouldDownloadFavicons(JNIEnv* env,
const JavaParamRef<jclass>& jclazz) {
g_should_download_favicons = true;
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | blimp/client/core/contents/blimp_contents_view_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698