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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 2523753003: Add inputmode to android ImeAdapater. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 6b029cdd966191472539ec589377a4a3207623f5..141e1f5981722ec7c5fea04450f105455eae84b1 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1277,6 +1277,7 @@ void ContentViewCoreImpl::ForceUpdateImeAdapter(long native_ime_adapter) {
void ContentViewCoreImpl::UpdateImeAdapter(long native_ime_adapter,
int text_input_type,
int text_input_flags,
+ int text_input_mode,
const std::string& text,
int selection_start,
int selection_end,
@@ -1292,8 +1293,9 @@ void ContentViewCoreImpl::UpdateImeAdapter(long native_ime_adapter,
ScopedJavaLocalRef<jstring> jstring_text = ConvertUTF8ToJavaString(env, text);
Java_ContentViewCore_updateImeAdapter(
env, obj, native_ime_adapter, text_input_type, text_input_flags,
- jstring_text, selection_start, selection_end, composition_start,
- composition_end, show_ime_if_needed, is_non_ime_change);
+ text_input_mode, jstring_text, selection_start, selection_end,
+ composition_start, composition_end, show_ime_if_needed,
+ is_non_ime_change);
}
void ContentViewCoreImpl::SetAccessibilityEnabled(
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698