Searched refs:kMaxMatches (Results 1 - 17 of 17) sorted by relevance

/external/chromium_org/chrome/browser/history/
H A Din_memory_url_index_unittest.cc41 const size_t kMaxMatches = 3; member in namespace:__anon4100
471 ASCIIToUTF16("DrudgeReport"), base::string16::npos, kMaxMatches);
483 ASCIIToUTF16("DrudgeReport "), base::string16::npos, kMaxMatches);
492 ASCIIToUTF16("drudge"), base::string16::npos, kMaxMatches);
499 ASCIIToUTF16("Nearly Perfect Result"), base::string16::npos, kMaxMatches);
512 ASCIIToUTF16("qui c"), base::string16::npos, kMaxMatches);
525 ASCIIToUTF16("Mice"), base::string16::npos, kMaxMatches);
532 ASCIIToUTF16("1% wikipedia"), base::string16::npos, kMaxMatches);
541 ASCIIToUTF16("fubar"), base::string16::npos, kMaxMatches);
553 ASCIIToUTF16("DrudReport"), base::string16::npos, kMaxMatches);
803 ASCIIToUTF16("r"), base::string16::npos, kMaxMatches); local
810 ASCIIToUTF16("r re"), base::string16::npos, kMaxMatches); local
818 ASCIIToUTF16("r re reco"), base::string16::npos, kMaxMatches); local
827 ASCIIToUTF16("mort"), base::string16::npos, kMaxMatches); local
833 ASCIIToUTF16("mort reco"), base::string16::npos, kMaxMatches); local
840 ASCIIToUTF16("mort rec"), base::string16::npos, kMaxMatches); local
[all...]
/external/chromium_org/components/omnibox/
H A Dautocomplete_provider.h207 static const size_t kMaxMatches; member in class:AutocompleteProvider
H A Dautocomplete_result.h61 static const size_t kMaxMatches; member in class:AutocompleteResult
76 // the best kMaxMatches matches. Sets the default match to the best match
H A Dautocomplete_result.cc115 const size_t AutocompleteResult::kMaxMatches = 6; member in class:AutocompleteResult
125 matches_.reserve(kMaxMatches);
217 // Sort and trim to the most relevant kMaxMatches matches.
218 size_t max_num_matches = std::min(kMaxMatches, matches_.size());
H A Dautocomplete_provider.cc16 const size_t AutocompleteProvider::kMaxMatches = 3; member in class:AutocompleteProvider
H A Dkeyword_provider.cc306 if (matches.size() > kMaxMatches)
307 matches.erase(matches.begin() + kMaxMatches, matches.end());
H A Dsearch_provider.cc561 int num_matches = kMaxMatches * 5;
885 // Now add the most relevant matches to |matches_|. We take up to kMaxMatches
890 // AutocompleteResult::kMaxMatches total matches (that is, enough to fill the
894 // scores, unless we have already accepted AutocompleteResult::kMaxMatches
917 (matches_.size() < AutocompleteResult::kMaxMatches);
926 if ((num_suggestions >= kMaxMatches) &&
/external/chromium_org/chrome/browser/autocomplete/
H A Dshortcuts_provider.cc168 std::min(AutocompleteProvider::kMaxMatches, matches_.size()),
170 if (matches_.size() > AutocompleteProvider::kMaxMatches) {
171 matches_.erase(matches_.begin() + AutocompleteProvider::kMaxMatches,
H A Dbookmark_provider.cc126 std::min(matches_.size(), AutocompleteProvider::kMaxMatches);
H A Dbuiltin_provider.cc130 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) {
H A Dhistory_quick_provider.cc95 AutocompleteProvider::kMaxMatches);
H A Dhistory_url_provider_unittest.cc969 const int kMaxMatches = 3; local
978 ExpectedMatch matches[kMaxMatches];
1006 UrlAndLegalDefault output[kMaxMatches];
1008 for (max_matches = 0; max_matches < kMaxMatches; ++max_matches) {
H A Dhistory_url_provider.cc737 // We only need kMaxMatches results in the end, but before we get there we
742 // the best kMaxMatches results.
744 base::UTF16ToUTF8(i->prefix + params->input.text()), kMaxMatches * 2,
818 kMaxMatches + (params->exact_suggestion_is_in_history ? 1 : 0);
821 // kMaxMatches results plus the What You Typed result, if it was added to
H A Dhistory_quick_provider_unittest.cc299 // We should have gotten back at most AutocompleteProvider::kMaxMatches.
300 EXPECT_LE(ac_matches_.size(), AutocompleteProvider::kMaxMatches);
H A Dshortcuts_provider_unittest.cc369 // We should have gotten back at most AutocompleteProvider::kMaxMatches.
370 EXPECT_LE(ac_matches_.size(), AutocompleteProvider::kMaxMatches);
H A Dsearch_provider_unittest.cc968 ASSERT_EQ(AutocompleteProvider::kMaxMatches + 1, provider_->matches().size());
/external/chromium_org/chrome/browser/ui/views/omnibox/
H A Domnibox_popup_contents_view.cc83 for (size_t i = 0; i < AutocompleteResult::kMaxMatches; ++i) {
120 for (size_t i = 0; i < AutocompleteResult::kMaxMatches; ++i) {
181 for (size_t i = result_size; i < AutocompleteResult::kMaxMatches; ++i)

Completed in 143 milliseconds