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

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: For yosin@'s review 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/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 ed9dafb029dd572b18cc6a88673e264d0e75f381..5b61dd7b6063be2aae1622b12f0208959969c393 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -556,15 +556,15 @@ bool BrowserPlugin::setComposition(
bool BrowserPlugin::confirmComposition(
const blink::WebString& text,
- blink::WebWidget::ConfirmCompositionBehavior selectionBehavior) {
+ blink::WebWidget::ConfirmCompositionBehavior selection_behavior,
+ int relative_cursor_pos) {
if (!attached())
return false;
- bool keep_selection = (selectionBehavior == blink::WebWidget::KeepSelection);
+ bool keep_selection = (selection_behavior == blink::WebWidget::KeepSelection);
BrowserPluginManager::Get()->Send(
new BrowserPluginHostMsg_ImeConfirmComposition(
- browser_plugin_instance_id_,
- text.utf8(),
- keep_selection));
+ browser_plugin_instance_id_, text.utf8(), keep_selection,
+ relative_cursor_pos));
// TODO(kochi): This assumes the IPC handling always succeeds.
return true;
}

Powered by Google App Engine
This is Rietveld 408576698