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

Unified Diff: components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java

Issue 2496683003: Http Bad: Add a PopupItemId to identify http warning message (Closed)
Patch Set: minor change Created 4 years, 1 month 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698