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 05d75abfecc1fe70379e70b9f9c34141d9f32a54..96d65badae9f2e735be16106a74ded8f640403c7 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -1192,6 +1192,8 @@ bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) { |
IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnSelectionChanged) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, |
OnSelectionBoundsChanged) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionRootBoundsChanged, |
+ OnSelectionRootBoundsChanged) |
IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse) |
IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) |
IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission, |
@@ -1452,6 +1454,13 @@ void RenderViewHostImpl::OnSelectionBoundsChanged( |
} |
} |
+void RenderViewHostImpl::OnSelectionRootBoundsChanged( |
+ const gfx::Rect& bounds) { |
+ if (view_) { |
+ view_->SelectionRootBoundsChanged(bounds); |
+ } |
+} |
+ |
void RenderViewHostImpl::OnRouteCloseEvent() { |
// Have the delegate route this to the active RenderViewHost. |
delegate_->RouteCloseEvent(this); |