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 f883a45098cb08d4634e0c40f904f8aa70943d1e..9bbf125c4fc55d93607c3ce614075920ff693f03 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, |
+ unsigned int start_offset, |
+ unsigned int end_offset) { |
+ render_view_host_->OnTextSurroundingSelectionResponse( |
+ content, start_offset, end_offset); |
+} |
+ |
void RenderFrameHostImpl::OnDidAccessInitialDocument() { |
delegate_->DidAccessInitialDocument(); |
} |