/external/chromium_org/chrome/browser/extensions/api/omnibox/ |
D | omnibox_unittest.cc | 20 const int kNone = ACMatchClassification::NONE; 21 const int kUrl = ACMatchClassification::URL; 22 const int kMatch = ACMatchClassification::MATCH; 23 const int kDim = ACMatchClassification::DIM; 61 styles_expected.push_back(ACMatchClassification(0, kNone)); in TEST() 62 styles_expected.push_back(ACMatchClassification(1, kMatch)); in TEST() 63 styles_expected.push_back(ACMatchClassification(5, kNone)); in TEST() 64 styles_expected.push_back(ACMatchClassification(6, kDim)); in TEST() 65 styles_expected.push_back(ACMatchClassification(9, kNone)); in TEST() 136 styles_expected.push_back(ACMatchClassification(0, kUrl | kMatch)); in TEST() [all …]
|
D | omnibox_api_browsertest.cc | 109 EXPECT_EQ(ACMatchClassification::NONE, in IN_PROC_BROWSER_TEST_F() 114 EXPECT_EQ(ACMatchClassification::MATCH, in IN_PROC_BROWSER_TEST_F() 119 EXPECT_EQ(ACMatchClassification::NONE, in IN_PROC_BROWSER_TEST_F() 124 EXPECT_EQ(ACMatchClassification::DIM, in IN_PROC_BROWSER_TEST_F() 129 EXPECT_EQ(ACMatchClassification::NONE, in IN_PROC_BROWSER_TEST_F() 134 EXPECT_EQ(ACMatchClassification::URL, in IN_PROC_BROWSER_TEST_F()
|
D | omnibox_api.cc | 332 type_class = AutocompleteMatch::ACMatchClassification::URL; in StyleTypesToACMatchClassifications() 335 type_class = AutocompleteMatch::ACMatchClassification::MATCH; in StyleTypesToACMatchClassifications() 338 type_class = AutocompleteMatch::ACMatchClassification::DIM; in StyleTypesToACMatchClassifications() 341 type_class = AutocompleteMatch::ACMatchClassification::NONE; in StyleTypesToACMatchClassifications() 352 ACMatchClassification(i, styles[i])); in StyleTypesToACMatchClassifications() 356 ACMatchClassification(0, ACMatchClassification::NONE)); in StyleTypesToACMatchClassifications()
|
/external/chromium_org/chrome/browser/autocomplete/ |
D | history_provider.cc | 84 ACMatchClassification::Style url_style = in SpansFromTermMatch() 85 is_url ? ACMatchClassification::URL : ACMatchClassification::NONE; in SpansFromTermMatch() 89 spans.push_back(ACMatchClassification(0, url_style)); in SpansFromTermMatch() 93 spans.push_back(ACMatchClassification(0, url_style)); in SpansFromTermMatch() 97 spans.push_back(ACMatchClassification(offset, in SpansFromTermMatch() 98 ACMatchClassification::MATCH | url_style)); in SpansFromTermMatch() 105 spans.push_back(ACMatchClassification(offset, url_style)); in SpansFromTermMatch()
|
D | builtin_provider.cc | 78 const int kUrl = ACMatchClassification::URL; in Start() 79 const int kMatch = kUrl | ACMatchClassification::MATCH; in Start() 88 styles.push_back(ACMatchClassification(0, highlight ? kMatch : kUrl)); in Start() 91 styles.push_back(ACMatchClassification(offset, kUrl)); in Start() 116 styles.push_back(ACMatchClassification(0, kMatch)); in Start() 121 styles.push_back(ACMatchClassification(corrected_length, kUrl)); in Start() 134 styles.push_back(ACMatchClassification(0, kMatch)); in Start() 137 styles.push_back(ACMatchClassification(match_length, kUrl)); in Start()
|
D | history_quick_provider_unittest.cc | 524 EXPECT_EQ(ACMatchClassification::NONE, spans_a[0].style); in TEST_F() 526 EXPECT_EQ(ACMatchClassification::MATCH, spans_a[1].style); in TEST_F() 528 EXPECT_EQ(ACMatchClassification::NONE, spans_a[2].style); in TEST_F() 530 EXPECT_EQ(ACMatchClassification::MATCH, spans_a[3].style); in TEST_F() 532 EXPECT_EQ(ACMatchClassification::NONE, spans_a[4].style); in TEST_F() 534 EXPECT_EQ(ACMatchClassification::MATCH, spans_a[5].style); in TEST_F() 536 EXPECT_EQ(ACMatchClassification::NONE, spans_a[6].style); in TEST_F() 538 EXPECT_EQ(ACMatchClassification::MATCH, spans_a[7].style); in TEST_F() 540 EXPECT_EQ(ACMatchClassification::NONE, spans_a[8].style); in TEST_F() 551 EXPECT_EQ(ACMatchClassification::MATCH | ACMatchClassification::URL, in TEST_F() [all …]
|
D | shortcuts_provider.cc | 311 ACMatchClassification(0, ACMatchClassification::MATCH)); in ClassifyAllMatchesInString() 318 ACMatchClassification(last_position, ACMatchClassification::NONE)); in ClassifyAllMatchesInString() 324 ACMatchClassification(0, ACMatchClassification::NONE)); in ClassifyAllMatchesInString() 349 last_position, ACMatchClassification::MATCH); in ClassifyAllMatchesInString() 352 ACMatchClassification(word_end, ACMatchClassification::NONE)); in ClassifyAllMatchesInString()
|
D | bookmark_provider.cc | 319 ACMatchClassification::Style url_style = in ClassificationsFromMatch() 320 is_url ? ACMatchClassification::URL : ACMatchClassification::NONE; in ClassificationsFromMatch() 324 classifications.push_back(ACMatchClassification(0, url_style)); in ClassificationsFromMatch()
|
D | autocomplete_provider_unittest.cc | 142 ACMatchClassification(0, ACMatchClassification::NONE)); in AddResultsWithSearchTermsArgs() 145 ACMatchClassification(0, ACMatchClassification::NONE)); in AddResultsWithSearchTermsArgs()
|
D | zero_suggest_provider.cc | 300 match.contents.length(), ACMatchClassification::URL, in NavigationToMatch() 306 match.description.length(), ACMatchClassification::NONE, in NavigationToMatch()
|
D | history_url_provider.cc | 639 ACMatchClassification::URL, in SuggestExactInput() 644 match.contents.length(), ACMatchClassification::URL, in SuggestExactInput() 1183 ACMatchClassification::URL, &match.contents_class); in HistoryMatchToACMatch() 1186 match.contents.length(), ACMatchClassification::URL, in HistoryMatchToACMatch()
|
D | autocomplete_controller.cc | 588 ACMatchClassification(0, ACMatchClassification::DIM)); in UpdateKeywordDescriptions()
|
D | bookmark_provider_unittest.cc | 159 if (i->style & AutocompleteMatch::ACMatchClassification::MATCH) { in PositionsFromAutocompleteMatch()
|
D | shortcuts_backend.cc | 47 &unmatched, i->offset, i->style & ~ACMatchClassification::MATCH); in StripMatchMarkers()
|
D | history_url_provider_unittest.cc | 925 EXPECT_EQ(ACMatchClassification::URL | in TEST_F() 927 ACMatchClassification::MATCH : 0), in TEST_F()
|
D | search_provider_unittest.cc | 2674 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL, in TEST_F() 2677 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL | in TEST_F() 2678 AutocompleteMatch::ACMatchClassification::MATCH, in TEST_F() 2681 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL, in TEST_F()
|
/external/chromium_org/components/omnibox/ |
D | search_suggestion_parser.cc | 100 ACMatchClassification(0, ACMatchClassification::NONE)); in ClassifyMatchContents() 133 ACMatchClassification(0, ACMatchClassification::MATCH)); in ClassifyMatchContents() 142 ACMatchClassification(0, ACMatchClassification::MATCH)); in ClassifyMatchContents() 145 ACMatchClassification(lookup_position, ACMatchClassification::NONE)); in ClassifyMatchContents() 148 match_contents_class_.push_back(ACMatchClassification( in ClassifyMatchContents() 149 next_fragment_position, ACMatchClassification::MATCH)); in ClassifyMatchContents() 156 ACMatchClassification(0, ACMatchClassification::NONE)); in ClassifyMatchContents() 204 ACMatchClassification(0, ACMatchClassification::NONE)); in CalculateAndClassifyMatchContents() 233 ACMatchClassification::URL, &match_contents_class_); in CalculateAndClassifyMatchContents()
|
D | autocomplete_match.h | 53 struct ACMatchClassification { struct 64 ACMatchClassification(size_t offset, int style) in ACMatchClassification() argument 75 typedef std::vector<ACMatchClassification> ACMatchClassifications; 385 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; typedef 386 typedef std::vector<ACMatchClassification> ACMatchClassifications;
|
D | autocomplete_match.cc | 24 (classifications.back().style == ACMatchClassification::NONE)); in IsTrivialClassification() 206 classification->push_back(ACMatchClassification(0, style)); in ClassifyLocationInString() 217 classification->push_back(ACMatchClassification(match_location, in ClassifyLocationInString() 218 (style | ACMatchClassification::MATCH) & ~ACMatchClassification::DIM)); in ClassifyLocationInString() 223 classification->push_back(ACMatchClassification(after_match, style)); in ClassifyLocationInString() 280 int classification_style = ACMatchClassification::NONE; in ClassificationsFromString() 286 classifications.push_back(ACMatchClassification(classification_offset, in ClassificationsFromString() 301 classifications->push_back(ACMatchClassification(offset, style)); in AddLastClassificationIfNecessary()
|
D | keyword_provider.cc | 433 ACMatchClassification(0, ACMatchClassification::DIM)); in FillInURLAndContents() 439 match->contents.length(), ACMatchClassification::NONE, in FillInURLAndContents() 462 ACMatchClassification::NONE, &match->contents_class); in FillInURLAndContents()
|
D | search_provider.cc | 256 ACMatchClassification(0, ACMatchClassification::NONE)); in Start() 1365 ACMatchClassification::NONE, &match.description_class); in NavigationToMatch()
|
/external/chromium_org/chrome/browser/ui/app_list/search/ |
D | omnibox_provider.cc | 27 if (styles & ACMatchClassification::URL) in ACMatchStyleToTagStyle() 29 if (styles & ACMatchClassification::MATCH) in ACMatchStyleToTagStyle() 31 if (styles & ACMatchClassification::DIM) in ACMatchStyleToTagStyle() 46 const ACMatchClassification& text_class = text_classes[i]; in ACMatchClassificationsToTags() 55 if (text_class.style == ACMatchClassification::NONE) in ACMatchClassificationsToTags()
|
/external/chromium_org/athena/main/ |
D | url_search_provider.cc | 112 if (styles & ACMatchClassification::URL) in ACMatchStyleToTagStyle() 114 if (styles & ACMatchClassification::MATCH) in ACMatchStyleToTagStyle() 116 if (styles & ACMatchClassification::DIM) in ACMatchStyleToTagStyle() 131 const ACMatchClassification& text_class = text_classes[i]; in ACMatchClassificationsToTags() 140 if (text_class.style == ACMatchClassification::NONE) in ACMatchClassificationsToTags()
|
/external/chromium_org/chrome/browser/ui/views/omnibox/ |
D | omnibox_result_view.cc | 366 if (classifications[i].style & ACMatchClassification::MATCH) in CreateClassifiedRenderText() 370 if (classifications[i].style & ACMatchClassification::URL) { in CreateClassifiedRenderText() 385 (classifications[i].style & ACMatchClassification::DIM)) { in CreateClassifiedRenderText()
|
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/ |
D | omnibox_popup_cell.mm | 137 if (0 != (i->style & ACMatchClassification::MATCH)) { 141 if (0 != (i->style & ACMatchClassification::URL)) { 145 } else if (0 != (i->style & ACMatchClassification::DIM)) {
|