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

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

Issue 2309983002: Allow selection change update before beginBatchEdit (Closed)
Patch Set: fixed a test failure Created 4 years, 3 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 8107f74abb50360e5d92d723a107c32c659a8b14..a49e27296e665afd7f262e9aaaaed338d71832cd 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -298,6 +298,26 @@ bool ImeAdapterAndroid::RequestTextInputStateUpdate(
return true;
}
+bool ImeAdapterAndroid::BeginBatchEdit(
+ JNIEnv* env,
+ const JavaParamRef<jobject>&) {
+ RenderWidgetHostImpl* rwhi = GetRenderWidgetHostImpl();
+ if (!rwhi)
+ return false;
+ rwhi->Send(new InputMsg_ImeBatchEdit(rwhi->GetRoutingID(), true));
+ return true;
+}
+
+bool ImeAdapterAndroid::EndBatchEdit(
+ JNIEnv* env,
+ const JavaParamRef<jobject>&) {
+ RenderWidgetHostImpl* rwhi = GetRenderWidgetHostImpl();
+ if (!rwhi)
+ return false;
+ rwhi->Send(new InputMsg_ImeBatchEdit(rwhi->GetRoutingID(), false));
+ return true;
+}
+
void ImeAdapterAndroid::RequestCursorUpdate(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj,
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.h ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698