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

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

Issue 2121953002: Do not calculate composition bounds until IME requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test failures Created 4 years, 4 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
Index: content/browser/renderer_host/ime_adapter_android.cc
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index 47a060f50313db29773fb95e2fdf0e6a6c8e3f64..a712e543098b953a5da2483d49c964def08b3cb8 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -329,6 +329,18 @@ bool ImeAdapterAndroid::RequestTextInputStateUpdate(
return true;
}
+void ImeAdapterAndroid::RequestCursorUpdate(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ bool immediate_request,
+ bool monitor_request) {
+ RenderWidgetHostImpl* rwhi = GetRenderWidgetHostImpl();
+ if (!rwhi)
+ return;
+ rwhi->Send(new InputMsg_RequestCompositionUpdate(
+ rwhi->GetRoutingID(), immediate_request, monitor_request));
+}
+
bool ImeAdapterAndroid::IsImeThreadEnabled(
JNIEnv* env,
const base::android::JavaParamRef<jobject>&) {
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698