Chromium Code Reviews| Index: components/autofill/core/browser/suggestion.h |
| diff --git a/components/autofill/core/browser/suggestion.h b/components/autofill/core/browser/suggestion.h |
| index 6077185018ea1be0c3b1d62bc758ba990de13790..74311b1fad13fbf50f4748c6236f4e1cad29dd44 100644 |
| --- a/components/autofill/core/browser/suggestion.h |
| +++ b/components/autofill/core/browser/suggestion.h |
| @@ -17,6 +17,10 @@ class CreditCard; |
| struct Suggestion { |
| public: |
| + enum MatchMode { |
| + PREFIX_MATCH, // for prefix matched suggestions; |
| + SUBSTRING_MATCH // for substring matched suggestions; |
| + }; |
| Suggestion(); |
| // Copy constructor for STL containers. |
| @@ -46,8 +50,12 @@ struct Suggestion { |
| base::string16 value; |
| base::string16 label; |
| base::string16 icon; |
| + MatchMode match; |
| }; |
| +// Orders prefix matched suggestions prior to substring matched. |
| +void OrderPrefixBeforeSubstring(std::vector<Suggestion>* suggestions); |
|
Evan Stade
2015/06/08 23:23:38
I don't really think this belongs here --- it shou
Pritam Nikam
2015/06/09 11:39:06
Done.
|
| + |
| } // namespace autofill |
| #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ |