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

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

Issue 56643003: Start using FocusedNodedChanged to restartInput. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes based on jamesr comments Created 7 years, 1 month 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 9e7fe47c27e44d0199b977e2ff0851d6e032fc5c..2d3a2618016ffbb73cd8e0d27aff1d429c486f76 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -178,6 +178,15 @@ void ImeAdapterAndroid::CancelComposition() {
Java_ImeAdapter_cancelComposition(AttachCurrentThread(), obj.obj());
}
+void ImeAdapterAndroid::FocusedNodeChanged(bool is_editable_node) {
+ base::android::ScopedJavaLocalRef<jobject> obj =
+ java_ime_adapter_.get(AttachCurrentThread());
+ if (!obj.is_null())
jamesr 2013/11/15 23:02:46 indentation here went off somehow. 183 should be i
aurimas (slooooooooow) 2013/11/20 00:25:44 Done.
+ Java_ImeAdapter_focusedNodeChanged(AttachCurrentThread(),
+ obj.obj(),
+ is_editable_node);
+}
+
void ImeAdapterAndroid::SetEditableSelectionOffsets(JNIEnv*, jobject,
int start, int end) {
RenderWidgetHostImpl* rwhi = GetRenderWidgetHostImpl();

Powered by Google App Engine
This is Rietveld 408576698