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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 3731f8e833be2091a9f9ca69a279ec617b817079..71ceef4236626b0b821c628f79a9c303d5550229 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -531,7 +531,8 @@ bool BrowserPlugin::setComposition(
bool BrowserPlugin::confirmComposition(
const blink::WebString& text,
- blink::WebWidget::ConfirmCompositionBehavior selectionBehavior) {
+ blink::WebWidget::ConfirmCompositionBehavior selectionBehavior,
+ int newCursorPosition) {
if (!attached())
return false;
bool keep_selection = (selectionBehavior == blink::WebWidget::KeepSelection);
@@ -539,7 +540,8 @@ bool BrowserPlugin::confirmComposition(
new BrowserPluginHostMsg_ImeConfirmComposition(
browser_plugin_instance_id_,
text.utf8(),
- keep_selection));
+ keep_selection,
+ newCursorPosition));
// TODO(kochi): This assumes the IPC handling always succeeds.
return true;
}

Powered by Google App Engine
This is Rietveld 408576698