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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.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/ime_adapter_android.cc ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index b9357054358a9489167bc5874d98e5ed4da236d5..90cd9523e338a2066b975f0ef15d4a8844855b0a 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -720,10 +720,13 @@
? *GetTextInputManager()->GetTextInputState()
: TextInputState();
- if (!ime_adapter_android_ || is_in_vr_)
- return;
-
- ime_adapter_android_->UpdateState(state);
+ if (!content_view_core_ || is_in_vr_)
+ return;
+
+ content_view_core_->UpdateImeAdapter(
+ static_cast<int>(state.type), state.flags, state.mode, state.value,
+ state.selection_start, state.selection_end, state.composition_start,
+ state.composition_end, state.show_ime_if_needed, state.reply_to_request);
}
void RenderWidgetHostViewAndroid::OnImeCompositionRangeChanged(
« no previous file with comments | « content/browser/android/ime_adapter_android.cc ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698