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

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

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Almost the same to the previous patch. Created 4 years, 4 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..4027768001b06bec9e6718aa4b9db785f7fdda75 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -862,14 +862,13 @@ 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),
+void BrowserPluginGuest::OnImeConfirmComposition(int browser_plugin_instance_id,
+ const std::string& text,
+ bool keep_selection,
+ int new_cursor_pos) {
+ Send(new InputMsg_ImeConfirmComposition(routing_id(), base::UTF8ToUTF16(text),
gfx::Range::InvalidRange(),
- keep_selection));
+ keep_selection, new_cursor_pos));
}
void BrowserPluginGuest::OnExtendSelectionAndDelete(

Powered by Google App Engine
This is Rietveld 408576698