| Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java
|
| index 8266579e627fd955cb7a3fc6b8a88efb263ba1e4..764da8f6c347b5afe9f5a44f4efc4349819010f6 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java
|
| @@ -92,10 +92,20 @@ public class AutofillPopupBridge implements AutofillDelegate, DialogInterface.On
|
| /**
|
| * Shows an Autofill popup with specified suggestions.
|
| * @param suggestions Autofill suggestions to be displayed.
|
| + * @param isRtl @code true if right-to-left text.
|
| + * @param backgroundColor popup background color, or 0 if not specified in experiment.
|
| + * @param dividerColor color for divider between popup items, or 0 if not specified in
|
| + * experiment.
|
| + * @param dropdownItemHeight height of each dropdown item in dimension independent pixel units,
|
| + * -1 if not specified in experiemnt.
|
| + * @param isIconAtLeft {@code true} if suggestion icon must be displayed to left of |mLabel| and
|
| + * |mSublabel| suggestion text.
|
| */
|
| @CalledByNative
|
| - private void show(AutofillSuggestion[] suggestions, boolean isRtl) {
|
| - if (mAutofillPopup != null) mAutofillPopup.filterAndShow(suggestions, isRtl);
|
| + private void show(AutofillSuggestion[] suggestions, boolean isRtl, int backgroundColor,
|
| + int dividerColor, int dropdownItemHeight, boolean isIconAtLeft) {
|
| + if (mAutofillPopup != null) mAutofillPopup.filterAndShow(suggestions, isRtl,
|
| + backgroundColor, dividerColor, dropdownItemHeight, isIconAtLeft);
|
| }
|
|
|
| @CalledByNative
|
| @@ -125,14 +135,16 @@ public class AutofillPopupBridge implements AutofillDelegate, DialogInterface.On
|
| * @param suggestionId Identifier for the suggestion type.
|
| * @param deletable Whether this item is deletable.
|
| * @param isLabelMultiline Whether the label should be should over multiple lines.
|
| + * @param isLabelBold true if {@param label} should be displayed in {@code Typeface.BOLD},
|
| + * false if {@param label} should be displayed in {@code Typeface.NORMAL}.
|
| */
|
| @CalledByNative
|
| private static void addToAutofillSuggestionArray(AutofillSuggestion[] array, int index,
|
| String label, String sublabel, int iconId, int suggestionId, boolean deletable,
|
| - boolean isLabelMultiline) {
|
| + boolean isLabelMultiline, boolean isLabelBold) {
|
| int drawableId = iconId == 0 ? DropdownItem.NO_ICON : ResourceId.mapToDrawableId(iconId);
|
| - array[index] = new AutofillSuggestion(
|
| - label, sublabel, drawableId, suggestionId, deletable, isLabelMultiline);
|
| + array[index] = new AutofillSuggestion(label, sublabel, drawableId, suggestionId, deletable,
|
| + isLabelMultiline, isLabelBold);
|
| }
|
|
|
| private native void nativeSuggestionSelected(long nativeAutofillPopupViewAndroid,
|
|
|