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

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

Issue 2777223004: Migrate IME state update flow (Closed)
Patch Set: rebase 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 f9df957acc8ca68344f9caac2a8963664e563157..10998d2e83ca6e0921f65961428c616ee8299c42 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -718,13 +718,10 @@ void RenderWidgetHostViewAndroid::OnUpdateTextInputStateCalled(
? *GetTextInputManager()->GetTextInputState()
: TextInputState();
- if (!content_view_core_ || is_in_vr_)
+ if (!ime_adapter_android_ || 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);
+ ime_adapter_android_->UpdateState(state);
}
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