Index: android_webview/renderer/aw_render_view_ext.cc |
diff --git a/android_webview/renderer/aw_render_view_ext.cc b/android_webview/renderer/aw_render_view_ext.cc |
index c895ed47bfc677a7611293a8b997361984fbd825..bcc2c20bf60a44997bd297b9f44b564fb4d49d12 100644 |
--- a/android_webview/renderer/aw_render_view_ext.cc |
+++ b/android_webview/renderer/aw_render_view_ext.cc |
@@ -145,6 +145,8 @@ bool AwRenderViewExt::OnMessageReceived(const IPC::Message& message) { |
IPC_MESSAGE_HANDLER(AwViewMsg_DocumentHasImages, OnDocumentHasImagesRequest) |
IPC_MESSAGE_HANDLER(AwViewMsg_DoHitTest, OnDoHitTest) |
IPC_MESSAGE_HANDLER(AwViewMsg_SetTextZoomLevel, OnSetTextZoomLevel) |
+ IPC_MESSAGE_HANDLER(AwViewMsg_ResetScrollAndScaleState, |
+ OnResetScrollAndScaleState) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -247,4 +249,10 @@ void AwRenderViewExt::OnSetTextZoomLevel(double zoom_level) { |
render_view()->GetWebView()->setZoomLevel(true, zoom_level); |
} |
+void AwRenderViewExt::OnResetScrollAndScaleState() { |
+ if (!render_view() || !render_view()->GetWebView()) |
+ return; |
+ render_view()->GetWebView()->resetScrollAndScaleState(); |
+} |
+ |
} // namespace android_webview |