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

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: 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: 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 2a36cd448c04744b1a4cd951af5f87b778700fef..6267ae601545473a82ccd932357cd1615ec26b68 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.h
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.h
@@ -65,7 +65,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