Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_AUTOCOMPLETE_MATCH_TYPE_H_ | 5 #ifndef CHROME_COMMON_AUTOCOMPLETE_MATCH_TYPE_H_ |
| 6 #define CHROME_COMMON_AUTOCOMPLETE_MATCH_TYPE_H_ | 6 #define CHROME_COMMON_AUTOCOMPLETE_MATCH_TYPE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 struct AutocompleteMatchType { | 10 struct AutocompleteMatchType { |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 // specific suggestion categories below. | 27 // specific suggestion categories below. |
| 28 SEARCH_SUGGEST_ENTITY, // A suggested search for an entity. | 28 SEARCH_SUGGEST_ENTITY, // A suggested search for an entity. |
| 29 SEARCH_SUGGEST_INFINITE, // A suggested search to complete the tail of | 29 SEARCH_SUGGEST_INFINITE, // A suggested search to complete the tail of |
| 30 // the query. | 30 // the query. |
| 31 SEARCH_SUGGEST_PERSONALIZED, // A personalized suggested search. | 31 SEARCH_SUGGEST_PERSONALIZED, // A personalized suggested search. |
| 32 SEARCH_SUGGEST_PROFILE, // A personalized suggested search for a | 32 SEARCH_SUGGEST_PROFILE, // A personalized suggested search for a |
| 33 // Google+ profile. | 33 // Google+ profile. |
| 34 SEARCH_OTHER_ENGINE, // A search with a non-default engine. | 34 SEARCH_OTHER_ENGINE, // A search with a non-default engine. |
| 35 EXTENSION_APP, // An Extension App with a title/url that | 35 EXTENSION_APP, // An Extension App with a title/url that |
| 36 // contains the input. | 36 // contains the input. |
| 37 CONTACT, // One of the user's contacts. | |
|
Mark P
2014/03/07 17:20:14
I know nothing in the comments makes this clear, b
Peter Kasting
2014/03/07 17:43:53
Well, you can delete it, you just need to renumber
Mark P
2014/03/07 18:53:22
Personally, I'd rather leave an obsolete enum valu
Daniel Erat
2014/03/07 21:52:57
Done.
Peter Kasting
2014/03/07 22:09:55
Migration passes aren't permanent. We're supposed
| |
| 38 BOOKMARK_TITLE, // A bookmark whose title contains the input. | 37 BOOKMARK_TITLE, // A bookmark whose title contains the input. |
| 39 NUM_TYPES, | 38 NUM_TYPES, |
| 40 }; | 39 }; |
| 41 | 40 |
| 42 // Converts |type| to a string representation. Used in logging. | 41 // Converts |type| to a string representation. Used in logging. |
| 43 static std::string ToString(AutocompleteMatchType::Type type); | 42 static std::string ToString(AutocompleteMatchType::Type type); |
| 44 }; | 43 }; |
| 45 | 44 |
| 46 #endif // CHROME_COMMON_AUTOCOMPLETE_MATCH_TYPE_H_ | 45 #endif // CHROME_COMMON_AUTOCOMPLETE_MATCH_TYPE_H_ |
| OLD | NEW |