| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 NAVSUGGEST, // A suggested URL. | 83 NAVSUGGEST, // A suggested URL. |
| 84 SEARCH_WHAT_YOU_TYPED, // The input as a search query (with the default | 84 SEARCH_WHAT_YOU_TYPED, // The input as a search query (with the default |
| 85 // engine). | 85 // engine). |
| 86 SEARCH_HISTORY, // A past search (with the default engine) | 86 SEARCH_HISTORY, // A past search (with the default engine) |
| 87 // containing the input. | 87 // containing the input. |
| 88 SEARCH_SUGGEST, // A suggested search (with the default engine). | 88 SEARCH_SUGGEST, // A suggested search (with the default engine). |
| 89 SEARCH_OTHER_ENGINE, // A search with a non-default engine. | 89 SEARCH_OTHER_ENGINE, // A search with a non-default engine. |
| 90 EXTENSION_APP, // An Extension App with a title/url that contains | 90 EXTENSION_APP, // An Extension App with a title/url that contains |
| 91 // the input. | 91 // the input. |
| 92 CONTACT, // One of the user's contacts. | 92 CONTACT, // One of the user's contacts. |
| 93 BOOKMARK_TITLE, // A bookmark whose title contains the input. |
| 93 NUM_TYPES, | 94 NUM_TYPES, |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 // Null-terminated array of characters that are not valid within |contents| | 97 // Null-terminated array of characters that are not valid within |contents| |
| 97 // and |description| strings. | 98 // and |description| strings. |
| 98 static const char16 kInvalidChars[]; | 99 static const char16 kInvalidChars[]; |
| 99 | 100 |
| 100 AutocompleteMatch(); | 101 AutocompleteMatch(); |
| 101 AutocompleteMatch(AutocompleteProvider* provider, | 102 AutocompleteMatch(AutocompleteProvider* provider, |
| 102 int relevance, | 103 int relevance, |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 const string16& text, | 333 const string16& text, |
| 333 const ACMatchClassifications& classifications) const; | 334 const ACMatchClassifications& classifications) const; |
| 334 #endif | 335 #endif |
| 335 }; | 336 }; |
| 336 | 337 |
| 337 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; | 338 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; |
| 338 typedef std::vector<ACMatchClassification> ACMatchClassifications; | 339 typedef std::vector<ACMatchClassification> ACMatchClassifications; |
| 339 typedef std::vector<AutocompleteMatch> ACMatches; | 340 typedef std::vector<AutocompleteMatch> ACMatches; |
| 340 | 341 |
| 341 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 342 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| OLD | NEW |