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

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: [WIP] check with try bots Created 4 years, 5 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 92b3346747006bb3ccefa7a4477b55df70496d7a..284e29eb53e20377c220c9ec1b7a5e49937ad6b9 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -328,6 +328,13 @@ bool ImeAdapterAndroid::RequestTextInputStateUpdate(
return true;
}
+void ImeAdapterAndroid::RequestCursorUpdate(
+ JNIEnv* env, const base::android::JavaParamRef<jobject>& obj, int mode) {
+ RenderWidgetHostImpl* rwhi = GetRenderWidgetHostImpl();
+ if (rwhi)
yosin_UTC9 2016/07/06 02:02:01 nit: better to use early return style if (!rwhi)
Seigo Nonaka 2016/07/06 03:25:56 Done.
+ rwhi->Send(new InputMsg_RequestCursorUpdate(rwhi->GetRoutingID(), mode));
+}
+
bool ImeAdapterAndroid::IsImeThreadEnabled(
JNIEnv* env,
const base::android::JavaParamRef<jobject>&) {

Powered by Google App Engine
This is Rietveld 408576698