Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 707e69a636f7ea0b1d79939c6513311c9bc0812c..a9434607bc0b925aedb5815a8b6fb030371613fc 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -321,6 +321,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) { |
OnShowDesktopNotification) |
IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Cancel, |
OnCancelDesktopNotification) |
+ IPC_MESSAGE_HANDLER(FrameHostMsg_TextSurroundingSelectionResponse, |
+ OnTextSurroundingSelectionResponse) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -698,6 +700,14 @@ void RenderFrameHostImpl::OnCancelDesktopNotification(int notification_id) { |
cancel_notification_callbacks_.erase(notification_id); |
} |
+void RenderFrameHostImpl::OnTextSurroundingSelectionResponse( |
+ const base::string16& content, |
+ size_t start_offset, |
+ size_t end_offset) { |
+ render_view_host_->OnTextSurroundingSelectionResponse( |
+ content, start_offset, end_offset); |
+} |
+ |
void RenderFrameHostImpl::OnDidAccessInitialDocument() { |
delegate_->DidAccessInitialDocument(); |
} |