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

Unified Diff: ui/android/window_android.cc

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: no overloaded 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
« ui/android/view_android.cc ('K') | « ui/android/window_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/window_android.cc
diff --git a/ui/android/window_android.cc b/ui/android/window_android.cc
index cff32ba6f571def1c787cd219296027d86f1cbc8..4cd7fbf4efb8ada5df03a29b20913b72e6151324 100644
--- a/ui/android/window_android.cc
+++ b/ui/android/window_android.cc
@@ -132,6 +132,12 @@ void WindowAndroid::OnActivityStarted(JNIEnv* env,
observer.OnActivityStarted();
}
+ScopedJavaLocalRef<jobject> WindowAndroid::GetEventHandlerForJava(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj) {
+ return GetEventHandler();
+}
+
bool WindowAndroid::HasPermission(const std::string& permission) {
JNIEnv* env = AttachCurrentThread();
return Java_WindowAndroid_hasPermission(
« ui/android/view_android.cc ('K') | « ui/android/window_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698