Home
last modified time | relevance | path

Searched refs:ACMatchClassification (Results 1 – 25 of 25) sorted by relevance

/external/chromium_org/chrome/browser/extensions/api/omnibox/
Domnibox_unittest.cc20 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 …]
Domnibox_api_browsertest.cc109 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()
Domnibox_api.cc332 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/
Dhistory_provider.cc84 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()
Dbuiltin_provider.cc78 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()
Dhistory_quick_provider_unittest.cc524 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 …]
Dshortcuts_provider.cc311 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()
Dbookmark_provider.cc319 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()
Dautocomplete_provider_unittest.cc142 ACMatchClassification(0, ACMatchClassification::NONE)); in AddResultsWithSearchTermsArgs()
145 ACMatchClassification(0, ACMatchClassification::NONE)); in AddResultsWithSearchTermsArgs()
Dzero_suggest_provider.cc300 match.contents.length(), ACMatchClassification::URL, in NavigationToMatch()
306 match.description.length(), ACMatchClassification::NONE, in NavigationToMatch()
Dhistory_url_provider.cc639 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()
Dautocomplete_controller.cc588 ACMatchClassification(0, ACMatchClassification::DIM)); in UpdateKeywordDescriptions()
Dbookmark_provider_unittest.cc159 if (i->style & AutocompleteMatch::ACMatchClassification::MATCH) { in PositionsFromAutocompleteMatch()
Dshortcuts_backend.cc47 &unmatched, i->offset, i->style & ~ACMatchClassification::MATCH); in StripMatchMarkers()
Dhistory_url_provider_unittest.cc925 EXPECT_EQ(ACMatchClassification::URL | in TEST_F()
927 ACMatchClassification::MATCH : 0), in TEST_F()
Dsearch_provider_unittest.cc2674 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/
Dsearch_suggestion_parser.cc100 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()
Dautocomplete_match.h53 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;
Dautocomplete_match.cc24 (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()
Dkeyword_provider.cc433 ACMatchClassification(0, ACMatchClassification::DIM)); in FillInURLAndContents()
439 match->contents.length(), ACMatchClassification::NONE, in FillInURLAndContents()
462 ACMatchClassification::NONE, &match->contents_class); in FillInURLAndContents()
Dsearch_provider.cc256 ACMatchClassification(0, ACMatchClassification::NONE)); in Start()
1365 ACMatchClassification::NONE, &match.description_class); in NavigationToMatch()
/external/chromium_org/chrome/browser/ui/app_list/search/
Domnibox_provider.cc27 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/
Durl_search_provider.cc112 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/
Domnibox_result_view.cc366 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/
Domnibox_popup_cell.mm137 if (0 != (i->style & ACMatchClassification::MATCH)) {
141 if (0 != (i->style & ACMatchClassification::URL)) {
145 } else if (0 != (i->style & ACMatchClassification::DIM)) {