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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.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/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 413a18408836bfee94cbd8aa5913bebee3555799..d5e29de0e3189090b262bd629ba91060de1ae119 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1421,9 +1421,10 @@ void RenderWidgetHostImpl::ImeSetComposition(
void RenderWidgetHostImpl::ImeConfirmComposition(
const base::string16& text,
const gfx::Range& replacement_range,
- bool keep_selection) {
+ bool keep_selection,
+ int new_cursor_pos) {
Send(new InputMsg_ImeConfirmComposition(
- GetRoutingID(), text, replacement_range, keep_selection));
+ GetRoutingID(), text, replacement_range, keep_selection, new_cursor_pos));
}
void RenderWidgetHostImpl::ImeCancelComposition() {

Powered by Google App Engine
This is Rietveld 408576698