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

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

Issue 1635953002: Added replacement_range to ImeSetComposition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: erikchen's review Created 4 years, 11 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.cc
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index d70d4969d2ed28d4e424fb372cd512d94019e2a7..2468b62db62bd6a7dd7c50267be43029d63242a4 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -203,7 +203,8 @@ void ImeAdapterAndroid::SetComposingText(JNIEnv* env,
if (new_cursor_pos > 0)
new_cursor_pos = text16.length() + new_cursor_pos - 1;
- rwhi->ImeSetComposition(text16, underlines, new_cursor_pos, new_cursor_pos);
+ rwhi->ImeSetComposition(text16, underlines, gfx::Range::InvalidRange(),
+ new_cursor_pos, new_cursor_pos);
}
void ImeAdapterAndroid::CommitText(JNIEnv* env,
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698