Chromium Code Reviews| 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>&, |