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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 12077046: Plumb an overscroll callback form the compositor to the Android UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index f4957bee42b38f73a4b601be1b040ba7a0762926..30048c8e2b05b7d1a24cb88da5f274f029e6ab66 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -389,6 +389,14 @@ void ContentViewCoreImpl::UpdateScrollOffsetAndPageScaleFactor(int x, int y,
y, scale);
}
+void ContentViewCoreImpl::UpdateUnusedScrollOffset(int x, int y) {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return;
+ Java_ContentViewCore_updateUnusedScrollOffset(env, obj.obj(), x, y);
+}
+
void ContentViewCoreImpl::UpdatePageScaleLimits(float minimum_scale,
float maximum_scale) {
JNIEnv* env = AttachCurrentThread();

Powered by Google App Engine
This is Rietveld 408576698