Index: components/omnibox/browser/autocomplete_match.h |
diff --git a/components/omnibox/browser/autocomplete_match.h b/components/omnibox/browser/autocomplete_match.h |
index bcc9d9ab5e05cb773b7cbd38942bd031030cb9ea..270a2e25f38a67ba32c09316224453e3a2e0e231 100644 |
--- a/components/omnibox/browser/autocomplete_match.h |
+++ b/components/omnibox/browser/autocomplete_match.h |
@@ -25,6 +25,10 @@ namespace base { |
class Time; |
} // namespace base |
+namespace gfx { |
+enum class VectorIconId; |
+} // namespace gfx |
+ |
const char kACMatchPropertyInputText[] = "input text"; |
const char kACMatchPropertyContentsPrefix[] = "match contents prefix"; |
const char kACMatchPropertyContentsStartIndex[] = "match contents start index"; |
@@ -102,6 +106,9 @@ struct AutocompleteMatch { |
// type to show in the completion popup. |
static int TypeToIcon(Type type); |
+ // Gets the vector icon identifier for the icon to be shown for |type|. |
+ static gfx::VectorIconId TypeToVectorIcon(Type type); |
+ |
// Comparison function for determining when one match is better than another. |
static bool MoreRelevant(const AutocompleteMatch& elem1, |
const AutocompleteMatch& elem2); |