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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 1999423002: tyrbot test for commitText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetHasCompositionTextToTrue Created 4 years, 3 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/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(
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | content/browser/renderer_host/ime_adapter_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698