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

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

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Fixed FocusController and ImeAdapter related review comments. Created 3 years, 7 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 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>&,

Powered by Google App Engine
This is Rietveld 408576698