Home
last modified time | relevance | path

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

/external/chromium/chrome/browser/extensions/
Dextension_omnibox_unittest.cc12 const int kNone = ACMatchClassification::NONE;
13 const int kUrl = ACMatchClassification::URL;
14 const int kMatch = ACMatchClassification::MATCH;
15 const int kDim = ACMatchClassification::DIM;
51 styles_expected.push_back(ACMatchClassification(0, kNone)); in TEST()
52 styles_expected.push_back(ACMatchClassification(1, kMatch)); in TEST()
53 styles_expected.push_back(ACMatchClassification(5, kNone)); in TEST()
54 styles_expected.push_back(ACMatchClassification(6, kDim)); in TEST()
55 styles_expected.push_back(ACMatchClassification(9, kNone)); in TEST()
86 styles_expected.push_back(ACMatchClassification(0, kUrl | kMatch)); in TEST()
[all …]
Dextension_omnibox_api.cc135 ACMatchClassification(0, ACMatchClassification::NONE)); in RunImpl()
162 ACMatchClassification(0, ACMatchClassification::NONE)); in RunImpl()
208 (type == "url") ? ACMatchClassification::URL : in ReadStylesFromValue()
209 (type == "match") ? ACMatchClassification::MATCH : in ReadStylesFromValue()
210 (type == "dim") ? ACMatchClassification::DIM : -1; in ReadStylesFromValue()
222 description_styles.push_back(ACMatchClassification(i, styles[i])); in ReadStylesFromValue()
Dextension_omnibox_apitest.cc160 EXPECT_EQ(ACMatchClassification::NONE, in IN_PROC_BROWSER_TEST_F()
165 EXPECT_EQ(ACMatchClassification::MATCH, in IN_PROC_BROWSER_TEST_F()
170 EXPECT_EQ(ACMatchClassification::NONE, in IN_PROC_BROWSER_TEST_F()
175 EXPECT_EQ(ACMatchClassification::DIM, in IN_PROC_BROWSER_TEST_F()
180 EXPECT_EQ(ACMatchClassification::NONE, in IN_PROC_BROWSER_TEST_F()
185 EXPECT_EQ(ACMatchClassification::URL, in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_popup_view_gtk_unittest.cc232 ACMatchClassification(0U, ACMatchClassification::URL)); in TEST_F()
273 ACMatchClassification(0U, ACMatchClassification::NONE)); in TEST_F()
275 ACMatchClassification(runLength1, ACMatchClassification::DIM)); in TEST_F()
277 ACMatchClassification(runLength1 + runLength2, in TEST_F()
278 ACMatchClassification::NONE)); in TEST_F()
335 ACMatchClassification(0U, ACMatchClassification::NONE)); in TEST_F()
337 ACMatchClassification(runLength1, ACMatchClassification::MATCH)); in TEST_F()
339 ACMatchClassification(runLength1 + runLength2, in TEST_F()
340 ACMatchClassification::NONE)); in TEST_F()
393 ACMatchClassification(0U, ACMatchClassification::URL)); in TEST_F()
[all …]
Dautocomplete_popup_view_mac_unittest.mm137 ACMatchClassification(0, ACMatchClassification::URL));
171 ACMatchClassification(0, ACMatchClassification::NONE));
173 ACMatchClassification(runLength1, ACMatchClassification::DIM));
175 ACMatchClassification(runLength1 + runLength2,
176 ACMatchClassification::NONE));
221 ACMatchClassification(0, ACMatchClassification::NONE));
223 ACMatchClassification(runLength1, ACMatchClassification::MATCH));
225 ACMatchClassification(runLength1 + runLength2,
226 ACMatchClassification::NONE));
269 ACMatchClassification(0, ACMatchClassification::URL));
[all …]
Dautocomplete_match.h42 struct ACMatchClassification { struct
53 ACMatchClassification(size_t offset, int style) in ACMatchClassification() argument
64 typedef std::vector<ACMatchClassification> ACMatchClassifications;
201 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; typedef
202 typedef std::vector<ACMatchClassification> ACMatchClassifications;
Dhistory_quick_provider_unittest.cc304 EXPECT_EQ(ACMatchClassification::NONE, spans_a[0].style); in TEST_F()
306 EXPECT_EQ(ACMatchClassification::MATCH, spans_a[1].style); in TEST_F()
308 EXPECT_EQ(ACMatchClassification::NONE, spans_a[2].style); in TEST_F()
310 EXPECT_EQ(ACMatchClassification::MATCH, spans_a[3].style); in TEST_F()
312 EXPECT_EQ(ACMatchClassification::NONE, spans_a[4].style); in TEST_F()
314 EXPECT_EQ(ACMatchClassification::MATCH, spans_a[5].style); in TEST_F()
316 EXPECT_EQ(ACMatchClassification::NONE, spans_a[6].style); in TEST_F()
318 EXPECT_EQ(ACMatchClassification::MATCH, spans_a[7].style); in TEST_F()
320 EXPECT_EQ(ACMatchClassification::NONE, spans_a[8].style); in TEST_F()
331 EXPECT_EQ(ACMatchClassification::MATCH, spans_b[0].style); in TEST_F()
[all …]
Dbuiltin_provider.cc42 match.contents_class.push_back(ACMatchClassification(0, in Start()
43 ACMatchClassification::MATCH | ACMatchClassification::URL)); in Start()
46 ACMatchClassification(input.text().length(), in Start()
47 ACMatchClassification::URL)); in Start()
Dhistory_quick_provider.cc222 spans.push_back(ACMatchClassification(0, ACMatchClassification::DIM)); in SpansFromTermMatch()
226 spans.push_back(ACMatchClassification(0, ACMatchClassification::NONE)); in SpansFromTermMatch()
230 spans.push_back(ACMatchClassification(offset, in SpansFromTermMatch()
231 ACMatchClassification::MATCH)); in SpansFromTermMatch()
238 spans.push_back(ACMatchClassification(offset, in SpansFromTermMatch()
239 ACMatchClassification::NONE)); in SpansFromTermMatch()
Dhistory_contents_provider.cc220 ACMatchClassification(0, ACMatchClassification::URL)); in ResultToMatch()
242 ACMatchClassification(offset, ACMatchClassification::NONE)); in ClassifyDescription()
245 ACMatchClassification(i->first, ACMatchClassification::MATCH)); in ClassifyDescription()
251 ACMatchClassification(offset, ACMatchClassification::NONE)); in ClassifyDescription()
Dextension_app_provider.cc126 ACMatchClassification(0, ACMatchClassification::DIM)); in HighlightMatch()
130 ACMatchClassification(pos, ACMatchClassification::MATCH)); in HighlightMatch()
132 match_class->push_back(ACMatchClassification(pos + input.text().length(), in HighlightMatch()
133 ACMatchClassification::DIM)); in HighlightMatch()
Dautocomplete_match.cc135 classification->push_back(ACMatchClassification(0, style)); in ClassifyLocationInString()
146 classification->push_back(ACMatchClassification(match_location, in ClassifyLocationInString()
147 (style | ACMatchClassification::MATCH) & ~ACMatchClassification::DIM)); in ClassifyLocationInString()
152 classification->push_back(ACMatchClassification(after_match, style)); in ClassifyLocationInString()
Dsearch_provider.cc190 ACMatchClassification(0, ACMatchClassification::NONE)); in Start()
773 ACMatchClassification(0, ACMatchClassification::MATCH)); in AddMatchToMap()
784 ACMatchClassification(0, ACMatchClassification::NONE)); in AddMatchToMap()
787 ACMatchClassification(input_position, ACMatchClassification::DIM)); in AddMatchToMap()
791 ACMatchClassification(next_fragment_position, in AddMatchToMap()
792 ACMatchClassification::NONE)); in AddMatchToMap()
799 ACMatchClassification(0, ACMatchClassification::NONE)); in AddMatchToMap()
864 ACMatchClassification::URL, in NavigationToMatch()
869 ACMatchClassification::NONE, in NavigationToMatch()
908 ACMatchClassification(0, ACMatchClassification::DIM)); in UpdateFirstSearchMatchDescription()
Dkeyword_provider.cc334 ACMatchClassification(0, ACMatchClassification::DIM)); in FillInURLAndContents()
340 match->contents.length(), ACMatchClassification::NONE, in FillInURLAndContents()
360 ACMatchClassification::NONE, &match->contents_class); in FillInURLAndContents()
441 ACMatchClassification::DIM, in CreateAutocompleteMatch()
Dautocomplete_unittest.cc96 ACMatchClassification(0, ACMatchClassification::NONE)); in AddResults()
99 ACMatchClassification(0, ACMatchClassification::NONE)); in AddResults()
Dhistory_url_provider.cc341 ACMatchClassification::URL, in SuggestExactInput()
391 ACMatchClassification::NONE, &match->description_class); in FixupExactSuggestion()
809 ACMatchClassification::URL, &match.contents_class); in HistoryMatchToACMatch()
812 match.contents.length(), ACMatchClassification::URL, in HistoryMatchToACMatch()
818 ACMatchClassification::NONE, in HistoryMatchToACMatch()
Dautocomplete_popup_view_gtk.cc238 if (i->style & ACMatchClassification::URL) { in SetupLayoutForMatch()
248 if (i->style & ACMatchClassification::DIM) in SetupLayoutForMatch()
257 PangoWeight weight = (i->style & ACMatchClassification::MATCH) ? in SetupLayoutForMatch()
Dautocomplete_popup_view_mac.mm131 if (0 != (i->style & ACMatchClassification::URL)) {
136 if (0 != (i->style & ACMatchClassification::MATCH)) {
145 if (0 != (i->style & ACMatchClassification::DIM)) {
/external/chromium/chrome/browser/ui/views/autocomplete/
Dautocomplete_result_view.cc199 ACMatchClassification(0, ACMatchClassification::NONE)); in PaintMatch()
281 if (!(i->style & ACMatchClassification::URL)) { in DrawString()
337 const bool use_bold_font = !!(style & ACMatchClassification::MATCH); in DrawString()
340 if (style & ACMatchClassification::URL) in DrawString()
342 else if (style & ACMatchClassification::DIM) in DrawString()