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

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

Issue 1995333002: Handle newCursorPosition correctly for Android's commitText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/ime_adapter_android.h
diff --git a/content/browser/renderer_host/ime_adapter_android.h b/content/browser/renderer_host/ime_adapter_android.h
index 1f559c6ca772e7d70839f631d87d9f115d9aabd8..df39dbd0a1c9f9ac8372c0e14dc6c328ce68cd55 100644
--- a/content/browser/renderer_host/ime_adapter_android.h
+++ b/content/browser/renderer_host/ime_adapter_android.h
@@ -59,7 +59,8 @@ class ImeAdapterAndroid {
int new_cursor_pos);
void CommitText(JNIEnv*,
const base::android::JavaParamRef<jobject>&,
- const base::android::JavaParamRef<jstring>& text_str);
+ const base::android::JavaParamRef<jstring>& text_str,
+ int new_cursor_pos = 1);
void FinishComposingText(JNIEnv* env,
const base::android::JavaParamRef<jobject>&);
void AttachImeAdapter(

Powered by Google App Engine
This is Rietveld 408576698