| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 HISTORY_KEYWORD, // A past page whose keyword contains the input. | 73 HISTORY_KEYWORD, // A past page whose keyword contains the input. |
| 74 NAVSUGGEST, // A suggested URL. | 74 NAVSUGGEST, // A suggested URL. |
| 75 SEARCH_WHAT_YOU_TYPED, // The input as a search query (with the default | 75 SEARCH_WHAT_YOU_TYPED, // The input as a search query (with the default |
| 76 // engine). | 76 // engine). |
| 77 SEARCH_HISTORY, // A past search (with the default engine) | 77 SEARCH_HISTORY, // A past search (with the default engine) |
| 78 // containing the input. | 78 // containing the input. |
| 79 SEARCH_SUGGEST, // A suggested search (with the default engine). | 79 SEARCH_SUGGEST, // A suggested search (with the default engine). |
| 80 SEARCH_OTHER_ENGINE, // A search with a non-default engine. | 80 SEARCH_OTHER_ENGINE, // A search with a non-default engine. |
| 81 EXTENSION_APP, // An Extension App with a title/url that contains | 81 EXTENSION_APP, // An Extension App with a title/url that contains |
| 82 // the input. | 82 // the input. |
| 83 CONTACT, // One of the user's contacts. |
| 83 NUM_TYPES, | 84 NUM_TYPES, |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 // Null-terminated array of characters that are not valid within |contents| | 87 // Null-terminated array of characters that are not valid within |contents| |
| 87 // and |description| strings. | 88 // and |description| strings. |
| 88 static const char16 kInvalidChars[]; | 89 static const char16 kInvalidChars[]; |
| 89 | 90 |
| 90 AutocompleteMatch(); | 91 AutocompleteMatch(); |
| 91 AutocompleteMatch(AutocompleteProvider* provider, | 92 AutocompleteMatch(AutocompleteProvider* provider, |
| 92 int relevance, | 93 int relevance, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 const string16& text, | 293 const string16& text, |
| 293 const ACMatchClassifications& classifications) const; | 294 const ACMatchClassifications& classifications) const; |
| 294 #endif | 295 #endif |
| 295 }; | 296 }; |
| 296 | 297 |
| 297 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; | 298 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; |
| 298 typedef std::vector<ACMatchClassification> ACMatchClassifications; | 299 typedef std::vector<ACMatchClassification> ACMatchClassifications; |
| 299 typedef std::vector<AutocompleteMatch> ACMatches; | 300 typedef std::vector<AutocompleteMatch> ACMatches; |
| 300 | 301 |
| 301 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 302 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| OLD | NEW |