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

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: adjust selection in confirmCompositionOrInsertText() 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 93947fdeeb898165dccdcdfaf2d70e7648deadf8..afd5a9a6859c02c3bb9da769017cc72078557509 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -541,15 +541,15 @@ bool BrowserPlugin::setComposition(
bool BrowserPlugin::confirmComposition(
const blink::WebString& text,
- blink::WebWidget::ConfirmCompositionBehavior selectionBehavior) {
+ blink::WebWidget::ConfirmCompositionBehavior selectionBehavior,
Changwan Ryu 2016/08/03 07:37:29 selection_behavior
yabinh 2016/08/08 07:33:43 Done.
+ int newCursorPosition) {
Changwan Ryu 2016/08/03 07:37:29 new_cursor_position
yabinh 2016/08/08 07:33:43 Done.
if (!attached())
return false;
bool keep_selection = (selectionBehavior == 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,
+ newCursorPosition));
// TODO(kochi): This assumes the IPC handling always succeeds.
return true;
}

Powered by Google App Engine
This is Rietveld 408576698