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

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

Issue 1080693002: Implementation of Smart GO NEXT feature in Android Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved overridden function to correct location in header. Created 5 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/renderer_host/ime_adapter_android.cc
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index ac820f5765c3a7bf214293e8271e7bba7951f972..612dd2507fe66de0c3b9a772d2db33959407dc39 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -299,6 +299,15 @@ void ImeAdapterAndroid::Paste(JNIEnv* env, jobject) {
wc->Paste();
}
+void ImeAdapterAndroid::AdvanceFocusToNextFormControl(JNIEnv* env,
+ jobject obj,
+ jboolean forward) {
Avi (use Gerrit) 2015/04/17 16:26:38 fix indentation
AKV 2015/04/17 16:40:37 Done. Sorry for it, recently I changed the name of
+ WebContents* web_contents = GetWebContents();
+ if (!web_contents)
+ return;
+ web_contents->AdvanceFocusToNextFormControl(forward);
+}
+
void ImeAdapterAndroid::ResetImeAdapter(JNIEnv* env, jobject) {
java_ime_adapter_.reset();
}

Powered by Google App Engine
This is Rietveld 408576698