Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 a62b7f8cd18f1ac9a9a4f9aa57a18f1fad49ce28..2cd8f543d18e73d3a1db58b7396ded505fe40908 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -320,6 +320,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;
@@ -693,6 +695,14 @@ void RenderFrameHostImpl::OnCancelDesktopNotification(int notification_id) {
cancel_notification_callbacks_.erase(notification_id);
}
+void RenderFrameHostImpl::OnTextSurroundingSelectionResponse(
+ const base::string16& content,
+ unsigned start_offset,
+ unsigned end_offset) {
+ render_view_host_->OnTextSurroundingSelectionResponse(
nasko 2014/05/22 18:59:04 It will be better to avoid forwarding new function
+ content, start_offset, end_offset);
+}
+
void RenderFrameHostImpl::OnDidAccessInitialDocument() {
delegate_->DidAccessInitialDocument();
}

Powered by Google App Engine
This is Rietveld 408576698