Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index d8e4d6e21caa423232c2a17eca697dcb5679e589..7f16f136050813b4045b40e968e5e0489f5da866 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -663,6 +663,8 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host, |
IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
OnRegisterProtocolHandler) |
IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_DidProgrammaticallyScroll, |
+ OnDidProgrammaticallyScroll) |
IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin) |
IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
IPC_MESSAGE_HANDLER(ViewHostMsg_OpenColorChooser, OnOpenColorChooser) |
@@ -2294,6 +2296,12 @@ void WebContentsImpl::OnFindReply(int request_id, |
} |
} |
+void WebContentsImpl::OnDidProgrammaticallyScroll( |
+ const gfx::Vector2d& scroll_point) { |
+ if (delegate_) |
+ delegate_->DidProgrammaticallyScroll(this, scroll_point); |
+} |
+ |
#if defined(OS_ANDROID) |
void WebContentsImpl::OnFindMatchRectsReply( |
int version, |