Index: content/browser/renderer_host/render_widget_host.cc |
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc |
index 77db54b22089e152677a1991e2d7c82d7cb7cca6..339b3106cb1d3698b2dc80456a87294a34e2dfcb 100644 |
--- a/content/browser/renderer_host/render_widget_host.cc |
+++ b/content/browser/renderer_host/render_widget_host.cc |
@@ -174,6 +174,8 @@ bool RenderWidgetHost::OnMessageReceived(const IPC::Message &msg) { |
IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnMsgSetCursor) |
IPC_MESSAGE_HANDLER(ViewHostMsg_ImeUpdateTextInputState, |
OnMsgImeUpdateTextInputState) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCompositionRangeChanged, |
+ OnMsgImeCompositionRangeChanged) |
IPC_MESSAGE_HANDLER(ViewHostMsg_ImeCancelComposition, |
OnMsgImeCancelComposition) |
IPC_MESSAGE_HANDLER(ViewHostMsg_DidActivateAcceleratedCompositing, |
@@ -1029,6 +1031,11 @@ void RenderWidgetHost::OnMsgImeUpdateTextInputState( |
view_->ImeUpdateTextInputState(type, caret_rect); |
} |
+void RenderWidgetHost::OnMsgImeCompositionRangeChanged(const ui::Range& range) { |
+ if (view_) |
+ view_->ImeCompositionRangeChanged(range); |
+} |
+ |
void RenderWidgetHost::OnMsgImeCancelComposition() { |
if (view_) |
view_->ImeCancelComposition(); |