 Chromium Code Reviews
 Chromium Code Reviews Issue 1080693002:
  Implementation of Smart GO NEXT feature in Android Chrome  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1080693002:
  Implementation of Smart GO NEXT feature in Android Chrome  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java | 
| diff --git a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java | 
| index c27a60f74288dd191dd1ba43228c7840c143e1b4..ebf0f9c499ad77d4b59037c8a45e0485df60562b 100644 | 
| --- a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java | 
| +++ b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java | 
| @@ -612,6 +612,16 @@ public class ImeAdapter { | 
| return true; | 
| } | 
| + /** | 
| + * Advances the focus to next input field in the current form. | 
| + * | 
| + * @param direction indicates whether to advance forward or backward direction. | 
| + */ | 
| + public void advanceFocusToNextInputField(boolean direction) { | 
| 
bcwhite
2015/04/13 16:51:34
direction -> forward  (here and elsewhere)
 
AKV
2015/04/13 18:35:46
Done.
 | 
| + if (mNativeImeAdapterAndroid == 0) return; | 
| + nativeAdvanceFocusToNextInputField(mNativeImeAdapterAndroid, direction); | 
| + } | 
| + | 
| // Calls from C++ to Java | 
| @CalledByNative | 
| @@ -686,4 +696,6 @@ public class ImeAdapter { | 
| private native void nativeCopy(long nativeImeAdapterAndroid); | 
| private native void nativePaste(long nativeImeAdapterAndroid); | 
| private native void nativeResetImeAdapter(long nativeImeAdapterAndroid); | 
| + private native void nativeAdvanceFocusToNextInputField( | 
| + long nativeImeAdapterAndroid, boolean direction); | 
| } |