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 2b5904cf30830150e7df663f6d050f9e227020dd..c864386984a9abd5ff21c99610f652fe72ca2460 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>&, |