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 bbb0ec982690b34d7d61052a70e15a434d525663..080bc2fe9989dd27d5d9e2832b36a2d26f66abe9 100644 |
--- a/content/browser/android/ime_adapter_android.cc |
+++ b/content/browser/android/ime_adapter_android.cc |
@@ -18,6 +18,7 @@ |
#include "content/browser/renderer_host/render_view_host_delegate.h" |
#include "content/browser/renderer_host/render_widget_host_impl.h" |
#include "content/browser/renderer_host/render_widget_host_view_android.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" |
@@ -284,6 +285,17 @@ void ImeAdapterAndroid::FocusedNodeChanged(bool is_editable_node) { |
} |
} |
+void ImeAdapterAndroid::AdvanceFocusInForm(JNIEnv* env, |
+ const JavaParamRef<jobject>& obj, |
+ jint focus_type) { |
+ RenderFrameHost* rfh = GetFocusedFrame(); |
+ if (!rfh) |
+ return; |
+ |
+ rfh->Send(new FrameMsg_AdvanceFocusInForm( |
+ rfh->GetRoutingID(), static_cast<blink::WebFocusType>(focus_type))); |
+} |
+ |
void ImeAdapterAndroid::SetEditableSelectionOffsets( |
JNIEnv*, |
const JavaParamRef<jobject>&, |