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

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

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Created 3 years, 8 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/android/ime_adapter_android.cc
diff --git a/content/browser/android/ime_adapter_android.cc b/content/browser/android/ime_adapter_android.cc
index 695e53727c802388abe4594840a74010db712c56..8dbd4b1dae51df605c40ee97cbf05662733f60c0 100644
--- a/content/browser/android/ime_adapter_android.cc
+++ b/content/browser/android/ime_adapter_android.cc
@@ -20,6 +20,7 @@
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_android.h"
#include "content/browser/web_contents/web_contents_impl.h"
+#include "content/common/frame_messages.h"
#include "content/common/input_messages.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_thread.h"
@@ -303,6 +304,16 @@ void ImeAdapterAndroid::FocusedNodeChanged(bool is_editable_node) {
}
}
+void ImeAdapterAndroid::AdvanceFocusInForm(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ jboolean forward) {
+ RenderFrameHost* rfh = GetFocusedFrame();
+ if (!rfh)
+ return;
+
+ rfh->Send(new FrameMsg_AdvanceFocusInForm(rfh->GetRoutingID(), forward));
EhsanK 2017/04/25 22:43:08 Is it important if this message arrives out of ord
AKVT 2017/04/26 10:33:04 If that's a problematic situation, could you help
EhsanK 2017/04/26 21:31:59 I suggest making the IPC an InputMsg instead. I am
AKVT 2017/04/27 15:07:02 Thank you for your suggestion. I will wait for res
+ }
+
void ImeAdapterAndroid::SetEditableSelectionOffsets(
JNIEnv*,
const JavaParamRef<jobject>&,

Powered by Google App Engine
This is Rietveld 408576698