Index: content/browser/browser_plugin/browser_plugin_guest.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc |
index d0a39e22c2d7afa3dcd1fddb5d72c12c4b03d299..6d06122d6ab931eb89bad7cb5c679c152c8c77d6 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -256,8 +256,11 @@ bool BrowserPluginGuest::OnMessageReceivedFromEmbedder( |
OnExecuteEditCommand) |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ExtendSelectionAndDelete, |
OnExtendSelectionAndDelete) |
- IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ImeConfirmComposition, |
- OnImeConfirmComposition) |
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ImeCommitText, OnImeCommitText) |
+ |
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ImeFinishComposingText, |
+ OnImeFinishComposingText) |
+ |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ImeSetComposition, |
OnImeSetComposition) |
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_LockMouse_ACK, OnLockMouseAck) |
@@ -862,14 +865,16 @@ void BrowserPluginGuest::OnImeSetComposition( |
selection_start, selection_end)); |
} |
-void BrowserPluginGuest::OnImeConfirmComposition( |
- int browser_plugin_instance_id, |
- const std::string& text, |
- bool keep_selection) { |
- Send(new InputMsg_ImeConfirmComposition(routing_id(), |
- base::UTF8ToUTF16(text), |
- gfx::Range::InvalidRange(), |
- keep_selection)); |
+void BrowserPluginGuest::OnImeCommitText(int browser_plugin_instance_id, |
+ const std::string& text, |
+ int relative_cursor_pos) { |
+ Send(new InputMsg_ImeCommitText(routing_id(), base::UTF8ToUTF16(text), |
+ gfx::Range::InvalidRange(), |
+ relative_cursor_pos)); |
+} |
+ |
+void BrowserPluginGuest::OnImeFinishComposingText(bool keep_selection) { |
+ Send(new InputMsg_ImeFinishComposingText(routing_id(), keep_selection)); |
} |
void BrowserPluginGuest::OnExtendSelectionAndDelete( |