Index: components/web_contents_delegate_android/web_contents_delegate_android.cc |
diff --git a/components/web_contents_delegate_android/web_contents_delegate_android.cc b/components/web_contents_delegate_android/web_contents_delegate_android.cc |
index d2c6e97719b4cfa8fc4287edea3fdae0c9b8b369..950d9d7dafc1d82f2e02fdebc1400731810e6f51 100644 |
--- a/components/web_contents_delegate_android/web_contents_delegate_android.cc |
+++ b/components/web_contents_delegate_android/web_contents_delegate_android.cc |
@@ -316,6 +316,16 @@ bool WebContentsDelegateAndroid::IsFullscreenForTabOrPending( |
env, obj.obj()); |
} |
+void WebContentsDelegateAndroid::DidProgrammaticallyScroll( |
+ WebContents* web_contents, const gfx::Vector2d& scroll_point) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); |
+ if (obj.is_null()) |
+ return; |
+ Java_WebContentsDelegateAndroid_didProgrammaticallyScroll( |
+ env, obj.obj(), scroll_point.x(), scroll_point.y()); |
+} |
+ |
// ---------------------------------------------------------------------------- |
// Native JNI methods |
// ---------------------------------------------------------------------------- |