Index: content/browser/renderer_host/render_widget_host_impl.cc |
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
index c282dd95ac9227e4aa9d47a82c14f214928135e0..a86df5bfb075737e3f934564b0baa8d97062b3ad 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -523,6 +523,10 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { |
OnQueueSyntheticGesture) |
IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition, |
OnImeCancelComposition) |
+ IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged, |
+ OnImeCompositionRangeChanged) |
+ IPC_MESSAGE_HANDLER(InputHostMsg_ShowTextSuggestionMenu, |
+ OnShowTextSuggestionMenu) |
IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) |
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, |
OnUpdateScreenRectsAck) |
@@ -540,8 +544,6 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { |
OnShowDisambiguationPopup) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, |
OnSelectionBoundsChanged) |
- IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged, |
- OnImeCompositionRangeChanged) |
IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad, |
OnFirstPaintAfterLoad) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames) |
@@ -1654,6 +1656,20 @@ void RenderWidgetHostImpl::ImeCancelComposition() { |
gfx::Range::InvalidRange(), 0, 0)); |
} |
+void RenderWidgetHostImpl::ApplySuggestionReplacement(int documentMarkerID, |
+ int suggestionIndex) { |
+ Send(new InputMsg_ApplySuggestionReplacement(GetRoutingID(), documentMarkerID, |
+ suggestionIndex)); |
+} |
+ |
+void RenderWidgetHostImpl::DeleteSuggestionHighlight() { |
+ Send(new InputMsg_DeleteSuggestionHighlight(GetRoutingID())); |
+} |
+ |
+void RenderWidgetHostImpl::SuggestionMenuClosed() { |
+ Send(new InputMsg_SuggestionMenuClosed(GetRoutingID())); |
+} |
+ |
void RenderWidgetHostImpl::RejectMouseLockOrUnlockIfNecessary() { |
DCHECK(!pending_mouse_lock_request_ || !IsMouseLocked()); |
if (pending_mouse_lock_request_) { |
@@ -1997,6 +2013,12 @@ void RenderWidgetHostImpl::OnImeCancelComposition() { |
view_->ImeCancelComposition(); |
} |
+void RenderWidgetHostImpl::OnShowTextSuggestionMenu( |
+ const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos) { |
+ if (view_) |
+ view_->ShowTextSuggestionMenu(suggestionInfos); |
+} |
+ |
void RenderWidgetHostImpl::OnLockMouse(bool user_gesture, |
bool last_unlocked_by_target, |
bool privileged) { |