Index: content/browser/renderer_host/render_widget_host_view_android.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc |
index ae875fcb6ef94a83829d86f8802e9ff0e3d91f30..e0b5781f5658efc3f5fcff74dce38b5b5b373e05 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
@@ -526,6 +526,8 @@ bool RenderWidgetHostViewAndroid::OnMessageReceived( |
IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostViewAndroid, message) |
IPC_MESSAGE_HANDLER(ViewHostMsg_ShowUnhandledTapUIIfNeeded, |
OnShowUnhandledTapUIIfNeeded) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SelectWordAroundCaretAck, |
+ OnSelectWordAroundCaretAck) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -651,6 +653,15 @@ void RenderWidgetHostViewAndroid::OnShowUnhandledTapUIIfNeeded(int x_dip, |
content_view_core_->OnShowUnhandledTapUIIfNeeded(x_dip, y_dip); |
} |
+void RenderWidgetHostViewAndroid::OnSelectWordAroundCaretAck(bool did_select, |
+ int start_adjust, |
+ int end_adjust) { |
+ if (!content_view_core_) |
+ return; |
+ content_view_core_->OnSelectWordAroundCaretAck(did_select, start_adjust, |
+ end_adjust); |
+} |
+ |
gfx::Rect RenderWidgetHostViewAndroid::GetViewBounds() const { |
if (!content_view_core_) |
return default_bounds_; |