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

Unified Diff: ui/android/view_android.cc

Issue 2804953003: Refactor ContentViewClient (6/6) (Closed)
Patch Set: Created 3 years, 8 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: ui/android/view_android.cc
diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
index 672ae01b8644db47f86de0da19e2b599bbb7e1cc..5635577cd25528f875def14e5445d1a49a46ff0f 100644
--- a/ui/android/view_android.cc
+++ b/ui/android/view_android.cc
@@ -283,6 +283,14 @@ void ViewAndroid::StartContentIntent(const GURL& content_url,
is_main_frame);
}
+int ViewAndroid::GetSystemWindowInsetBottom() {
+ ScopedJavaLocalRef<jobject> delegate(GetViewAndroidDelegate());
+ if (delegate.is_null())
+ return 0;
+ JNIEnv* env = base::android::AttachCurrentThread();
+ return Java_ViewAndroidDelegate_getSystemWindowInsetBottom(env, delegate);
+}
+
bool ViewAndroid::OnTouchEvent(const MotionEventAndroid& event,
bool for_touch_handle) {
return HitTest(

Powered by Google App Engine
This is Rietveld 408576698