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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 GURL stripped_destination_url; | 291 GURL stripped_destination_url; |
292 | 292 |
293 // The main text displayed in the address bar dropdown. | 293 // The main text displayed in the address bar dropdown. |
294 base::string16 contents; | 294 base::string16 contents; |
295 ACMatchClassifications contents_class; | 295 ACMatchClassifications contents_class; |
296 | 296 |
297 // Additional helper text for each entry, such as a title or description. | 297 // Additional helper text for each entry, such as a title or description. |
298 base::string16 description; | 298 base::string16 description; |
299 ACMatchClassifications description_class; | 299 ACMatchClassifications description_class; |
300 | 300 |
| 301 // A rich-format version of the display for the dropdown. |
| 302 base::string16 answer_contents; |
| 303 base::string16 answer_type; |
| 304 |
301 // The transition type to use when the user opens this match. By default | 305 // The transition type to use when the user opens this match. By default |
302 // this is TYPED. Providers whose matches do not look like URLs should set | 306 // this is TYPED. Providers whose matches do not look like URLs should set |
303 // it to GENERATED. | 307 // it to GENERATED. |
304 content::PageTransition transition; | 308 content::PageTransition transition; |
305 | 309 |
306 // True when this match is the "what you typed" match from the history | 310 // True when this match is the "what you typed" match from the history |
307 // system. | 311 // system. |
308 bool is_history_what_you_typed_match; | 312 bool is_history_what_you_typed_match; |
309 | 313 |
310 // Type of this match. | 314 // Type of this match. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 const base::string16& text, | 364 const base::string16& text, |
361 const ACMatchClassifications& classifications) const; | 365 const ACMatchClassifications& classifications) const; |
362 #endif | 366 #endif |
363 }; | 367 }; |
364 | 368 |
365 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; | 369 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; |
366 typedef std::vector<ACMatchClassification> ACMatchClassifications; | 370 typedef std::vector<ACMatchClassification> ACMatchClassifications; |
367 typedef std::vector<AutocompleteMatch> ACMatches; | 371 typedef std::vector<AutocompleteMatch> ACMatches; |
368 | 372 |
369 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 373 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
OLD | NEW |