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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

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/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index fad138cd84d910dfb561cfc29647bcf7195ed545..f0e3012e41b80cbf6c15b5cefaf373056f6bc37f 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -370,7 +370,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
// * when insertText of NSTextInput is called (on Mac).
void ImeConfirmComposition(const base::string16& text,
const gfx::Range& replacement_range,
- bool keep_selection);
+ bool keep_selection,
+ int new_cursor_pos = 1);
// Cancels an ongoing composition.
void ImeCancelComposition();

Powered by Google App Engine
This is Rietveld 408576698