Chromium Code Reviews| Index: components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java |
| diff --git a/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java b/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java |
| index cfe248c61ac5de25b3877cc29d0a1842fc9a85ae..be0a49429cb2b8dac22cc9f952a1adf751d9dbde 100644 |
| --- a/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java |
| +++ b/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java |
| @@ -16,6 +16,7 @@ public class AutofillSuggestion implements DropdownItem { |
| private final int mSuggestionId; |
| private final boolean mDeletable; |
| private final boolean mIsMultilineLabel; |
| + private final boolean mIsHttpWarningMessage; |
| /** |
| * Constructs a Autofill suggestion container. |
| @@ -24,15 +25,17 @@ public class AutofillSuggestion implements DropdownItem { |
| * @param suggestionId The type of suggestion. |
| * @param deletable Whether the item can be deleted by the user. |
| * @param multilineLabel Whether the label is displayed over multiple lines. |
| + * @param isHttpWarningMessage Whether the item is a Http bad warning message. |
| */ |
| public AutofillSuggestion(String label, String sublabel, int iconId, int suggestionId, |
| - boolean deletable, boolean multilineLabel) { |
| + boolean deletable, boolean multilineLabel, boolean isHttpWarningMessage) { |
| mLabel = label; |
| mSublabel = sublabel; |
| mIconId = iconId; |
| mSuggestionId = suggestionId; |
| mDeletable = deletable; |
| mIsMultilineLabel = multilineLabel; |
| + mIsHttpWarningMessage = isHttpWarningMessage; |
| } |
| @Override |
| @@ -65,6 +68,11 @@ public class AutofillSuggestion implements DropdownItem { |
| return mIsMultilineLabel; |
| } |
| + @Override |
| + public boolean isHttpWarningMessage() { |
|
Mathieu
2016/11/12 12:52:05
Too specific. Let me try to make a suggestion... I
csashi
2016/11/12 22:45:55
For context, I am working on experimenting with cr
lshang
2016/11/14 10:51:01
I try to add interfaces to get font color and font
Mathieu
2016/11/14 14:40:15
In order to access dimens and color from component
Mathieu
2016/11/14 14:41:58
The other suggestions I made regarding calling the
|
| + return mIsHttpWarningMessage; |
| + } |
| + |
| public int getSuggestionId() { |
| return mSuggestionId; |
| } |