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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.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: third_party/WebKit/Source/core/editing/InputMethodController.h
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.h b/third_party/WebKit/Source/core/editing/InputMethodController.h
index 2d4ade7cd70d39177340681c753400766e9c0329..ad5f0acd77817c504e47d42b6e56427ae86415ac 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.h
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.h
@@ -64,7 +64,7 @@ public:
bool confirmComposition(const String& text, ConfirmCompositionBehavior confirmBehavior = KeepSelection);
// Inserts the text that is being composed or specified non-empty text and
// returns true.
- bool confirmCompositionOrInsertText(const String& text, ConfirmCompositionBehavior);
+ bool confirmCompositionOrInsertText(const String& text, ConfirmCompositionBehavior, int newCursorPosition);
// Deletes the existing composition text.
void cancelComposition();
void cancelCompositionIfSelectionIsInvalid();

Powered by Google App Engine
This is Rietveld 408576698