Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 std::unique_ptr<SuggestionAnswer> answer; | 360 std::unique_ptr<SuggestionAnswer> answer; |
| 361 | 361 |
| 362 // The transition type to use when the user opens this match. By default | 362 // The transition type to use when the user opens this match. By default |
| 363 // this is TYPED. Providers whose matches do not look like URLs should set | 363 // this is TYPED. Providers whose matches do not look like URLs should set |
| 364 // it to GENERATED. | 364 // it to GENERATED. |
| 365 ui::PageTransition transition; | 365 ui::PageTransition transition; |
| 366 | 366 |
| 367 // Type of this match. | 367 // Type of this match. |
| 368 Type type; | 368 Type type; |
| 369 | 369 |
| 370 // Used to identify the specific source / type for suggestions by the | |
| 371 // suggest server. The meaning of individual values is determined by the | |
| 372 // provider of each suggestion type and is different for every suggestion | |
| 373 // type. Contact service providers for more details. | |
|
Mark P
2017/03/31 20:50:25
To correct my earlier suggestion, perhaps instead
gcomanici
2017/04/01 16:01:52
Done.
Mark P
2017/04/01 21:08:03
In a trivial follow-up changelist, can you please
| |
| 374 // The identifier 0 is reserved for cases where this specific type is unset. | |
| 375 int subtype_identifier; | |
| 376 | |
| 370 // Set with a keyword provider match if this match can show a keyword hint. | 377 // Set with a keyword provider match if this match can show a keyword hint. |
| 371 // For example, if this is a SearchProvider match for "www.amazon.com", | 378 // For example, if this is a SearchProvider match for "www.amazon.com", |
| 372 // |associated_keyword| could be a KeywordProvider match for "amazon.com". | 379 // |associated_keyword| could be a KeywordProvider match for "amazon.com". |
| 373 // | 380 // |
| 374 // When this is set, the popup will show a ">" symbol at the right edge of the | 381 // When this is set, the popup will show a ">" symbol at the right edge of the |
| 375 // line for this match, and tab/shift-tab will toggle in and out of keyword | 382 // line for this match, and tab/shift-tab will toggle in and out of keyword |
| 376 // mode without disturbing the rest of the popup. See also | 383 // mode without disturbing the rest of the popup. See also |
| 377 // OmniboxPopupModel::SetSelectedLineState(). | 384 // OmniboxPopupModel::SetSelectedLineState(). |
| 378 std::unique_ptr<AutocompleteMatch> associated_keyword; | 385 std::unique_ptr<AutocompleteMatch> associated_keyword; |
| 379 | 386 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 419 const base::string16& text, | 426 const base::string16& text, |
| 420 const ACMatchClassifications& classifications) const; | 427 const ACMatchClassifications& classifications) const; |
| 421 #endif | 428 #endif |
| 422 }; | 429 }; |
| 423 | 430 |
| 424 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; | 431 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; |
| 425 typedef std::vector<ACMatchClassification> ACMatchClassifications; | 432 typedef std::vector<ACMatchClassification> ACMatchClassifications; |
| 426 typedef std::vector<AutocompleteMatch> ACMatches; | 433 typedef std::vector<AutocompleteMatch> ACMatches; |
| 427 | 434 |
| 428 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ | 435 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ |
| OLD | NEW |