Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / android / java / src / org / chromium / ui / autofill / AutofillSuggestion.java
index a1fb2b0..8feaafb 100644 (file)
@@ -12,6 +12,7 @@ import org.chromium.ui.DropdownItem;
 public class AutofillSuggestion implements DropdownItem {
     private final String mLabel;
     private final String mSublabel;
+    private final int mIconId;
     private final int mSuggestionId;
 
     /**
@@ -20,9 +21,10 @@ public class AutofillSuggestion implements DropdownItem {
      * @param label The describing label of the Autofill suggestion.
      * @param suggestionId The type of suggestion.
      */
-    public AutofillSuggestion(String name, String label, int suggestionId) {
+    public AutofillSuggestion(String name, String label, int iconId, int suggestionId) {
         mLabel = name;
         mSublabel = label;
+        mIconId = iconId;
         mSuggestionId = suggestionId;
     }
 
@@ -37,6 +39,11 @@ public class AutofillSuggestion implements DropdownItem {
     }
 
     @Override
+    public int getIconId() {
+        return mIconId;
+    }
+
+    @Override
     public boolean isEnabled() {
         return true;
     }