| 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 1efb3283987649d8573c19c13f9c7e9457f97038..5366bc9335a6e03b718a21b7f3e6dca1f9f1d10a 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -1087,6 +1087,28 @@
|
| SendScreenRectsAndResizeWidget();
|
| }
|
|
|
| +void ContentViewCoreImpl::UpdateImeAdapter(int text_input_type,
|
| + int text_input_flags,
|
| + int text_input_mode,
|
| + const std::string& text,
|
| + int selection_start,
|
| + int selection_end,
|
| + int composition_start,
|
| + int composition_end,
|
| + bool show_ime_if_needed,
|
| + bool reply_to_request) {
|
| + JNIEnv* env = AttachCurrentThread();
|
| + ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
|
| + if (obj.is_null())
|
| + return;
|
| +
|
| + ScopedJavaLocalRef<jstring> jstring_text = ConvertUTF8ToJavaString(env, text);
|
| + Java_ContentViewCore_updateImeAdapter(
|
| + env, obj, text_input_type, text_input_flags, text_input_mode,
|
| + jstring_text, selection_start, selection_end, composition_start,
|
| + composition_end, show_ime_if_needed, reply_to_request);
|
| +}
|
| +
|
| void ContentViewCoreImpl::SetAccessibilityEnabled(
|
| JNIEnv* env,
|
| const JavaParamRef<jobject>& obj,
|
|
|