diff options
Diffstat (limited to 'components/omnibox/suggestion_answer.h')
-rw-r--r-- | components/omnibox/suggestion_answer.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/components/omnibox/suggestion_answer.h b/components/omnibox/suggestion_answer.h index a2df1bc..98e3969 100644 --- a/components/omnibox/suggestion_answer.h +++ b/components/omnibox/suggestion_answer.h @@ -35,6 +35,24 @@ class SuggestionAnswer { typedef std::vector<TextField> TextFields; typedef std::vector<GURL> URLs; + // These values are named and numbered to match a specification at go/ais_api. + // The values are only used for answer results. + enum TextType { + ANSWER = 1, + HEADLINE = 2, + TOP_ALIGNED = 3, + DESCRIPTION = 4, + DESCRIPTION_NEGATIVE = 5, + DESCRIPTION_POSITIVE = 6, + MORE_INFO = 7, + SUGGESTION = 8, + SUGGESTION_POSITIVE = 9, + SUGGESTION_NEGATIVE = 10, + SUGGESTION_LINK = 11, + STATUS = 12, + PERSONALIZED_SUGGESTION = 13, + }; + class TextField { public: TextField(); |