Index: content/browser/renderer_host/render_view_host_impl.cc |
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc |
index fc076b9a8b94c6efe95943c4d10831bbfdd3f220..8d83e3d677f71e295ec92d996861b15d4da93113 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -1124,6 +1124,10 @@ bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) { |
IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnSelectionChanged) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, |
OnSelectionBoundsChanged) |
+#if defined(OS_ANDROID) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionRootBoundsChanged, |
+ OnSelectionRootBoundsChanged) |
+#endif |
IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse) |
IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) |
IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission, |
@@ -1361,6 +1365,15 @@ void RenderViewHostImpl::OnSelectionBoundsChanged( |
} |
} |
+#if defined(OS_ANDROID) |
+void RenderViewHostImpl::OnSelectionRootBoundsChanged( |
+ const gfx::Rect& bounds) { |
+ if (view_) { |
+ view_->SelectionRootBoundsChanged(bounds); |
+ } |
+} |
+#endif |
+ |
void RenderViewHostImpl::OnRouteCloseEvent() { |
// Have the delegate route this to the active RenderViewHost. |
delegate_->RouteCloseEvent(this); |