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

Unified Diff: android_webview/native/aw_contents.cc

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: WindowAndroid.GetEventHandler 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..e9ab23c95c00477029148408c850a29a493a8610 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -1255,6 +1255,11 @@ void AwContents::ResumeLoadingCreatedPopupWebContents(
web_contents_->ResumeLoadingCreatedWebContents();
}
+jlong AwContents::GetNativeView(JNIEnv* env,
+ const JavaParamRef<jobject>& obj) {
+ return reinterpret_cast<intptr_t>(web_contents_->GetNativeView());
+}
+
void SetShouldDownloadFavicons(JNIEnv* env,
const JavaParamRef<jclass>& jclazz) {
g_should_download_favicons = true;

Powered by Google App Engine
This is Rietveld 408576698