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

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

Issue 2803203003: Revert of Migrate IME state update flow (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/android/ime_adapter_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/android/ime_adapter_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698