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

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

Issue 1278593004: Introduce ThreadedInputConnection behind a switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.h ('k') | content/common/input_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88b1e126bfdefb043d1a73c0e26e499bbb9b49f0..57f243715bd8ec54031cb5121f3edf862650b878 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -269,6 +269,14 @@ void ImeAdapterAndroid::DeleteSurroundingText(JNIEnv*, jobject,
rfh->ExtendSelectionAndDelete(before, after);
}
+void ImeAdapterAndroid::RequestTextInputStateUpdate(JNIEnv* env, jobject) {
+ RenderFrameHost* rfh = GetFocusedFrame();
+ if (!rfh)
+ return;
+
+ rfh->Send(new InputMsg_RequestTextInputStateUpdate(rfh->GetRoutingID()));
+}
+
void ImeAdapterAndroid::ResetImeAdapter(JNIEnv* env, jobject) {
java_ime_adapter_.reset();
}
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.h ('k') | content/common/input_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698