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

Unified Diff: ui/android/java/src/org/chromium/ui/DropdownItem.java

Issue 443193006: Show icons in Android web autofill dropdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix up build files Created 6 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: ui/android/java/src/org/chromium/ui/DropdownItem.java
diff --git a/ui/android/java/src/org/chromium/ui/DropdownItem.java b/ui/android/java/src/org/chromium/ui/DropdownItem.java
index 46d8d0e215318974131233e888892e772f7f0492..4b89a4984311567bfe6e5b2dd90c68a1f3ecab45 100644
--- a/ui/android/java/src/org/chromium/ui/DropdownItem.java
+++ b/ui/android/java/src/org/chromium/ui/DropdownItem.java
@@ -8,6 +8,9 @@ package org.chromium.ui;
* Dropdown item interface used to access all the information needed to show the item.
*/
public interface DropdownItem {
+ // A stand in for a resource ID which indicates no icon should be shown.
+ public static final int NO_ICON = 0;
+
/**
* Returns the label that should be shown in the dropdown.
*/
@@ -17,6 +20,10 @@ public interface DropdownItem {
*/
String getSublabel();
/**
+ * Returns the drawable id of the icon that should be shown in the dropdown, or NO_ICON.
+ */
+ int getIconId();
+ /**
* Returns true if the item should be enabled in the dropdown.
*/
boolean isEnabled();

Powered by Google App Engine
This is Rietveld 408576698