Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java |
index b339c1a1388c9a46d0106ef60d662e9c8e74c328..8b3f976e1e02c8cec0c2c68e726283591147afb9 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillKeyboardAccessoryBridge.java |
@@ -71,9 +71,17 @@ public class AutofillKeyboardAccessoryBridge |
* This function should be called at most one time. |
* @param nativeAutofillKeyboardAccessory Handle to the native counterpart. |
* @param windowAndroid The window on which to show the suggestions. |
+ * @param animationDurationMillis If 0, do not animate. Otherwise, animation duration. |
+ * @param shouldLimitLabelWidth If true, limit suggestion label width to 1/2 device's |
+ * pixel width. |
please use gerrit instead
2017/05/15 14:37:29
No need for the word "pixel" in this comment.
csashi
2017/05/15 20:07:26
Done.
|
+ * @param isFirstSuggestionAHint If true, the first suggestion is a nin-fillable hint. |
please use gerrit instead
2017/05/15 14:37:29
non-fillable
csashi
2017/05/15 20:07:26
I removed this as a constructor parameter because
|
+ * If {@param animationDurationMillis} > 0, we reverse animation to scroll the first |
+ * suggestion out of the viewport at the end of the reversed animation. |
*/ |
@CalledByNative |
- private void init(long nativeAutofillKeyboardAccessory, WindowAndroid windowAndroid) { |
+ private void init(long nativeAutofillKeyboardAccessory, WindowAndroid windowAndroid, |
+ int animationDurationMillis, boolean shouldLimitLabelWidth, |
+ boolean isFirstSuggestionAHint) { |
if (windowAndroid == null || windowAndroid.getActivity().get() == null) { |
nativeViewDismissed(nativeAutofillKeyboardAccessory); |
dismissed(); |
@@ -81,7 +89,8 @@ public class AutofillKeyboardAccessoryBridge |
} |
mNativeAutofillKeyboardAccessory = nativeAutofillKeyboardAccessory; |
- mAccessoryView = new AutofillKeyboardAccessory(windowAndroid, this); |
+ mAccessoryView = new AutofillKeyboardAccessory(windowAndroid, this, animationDurationMillis, |
+ shouldLimitLabelWidth, isFirstSuggestionAHint); |
mContext = windowAndroid.getActivity().get(); |
} |