/external/chromium_org/components/omnibox/ |
D | autocomplete_result.cc | 125 matches_.reserve(kMaxMatches); in AutocompleteResult() 185 std::copy(matches.begin(), matches.end(), std::back_inserter(matches_)); in AppendMatches() 193 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) in SortAndCull() 197 &matches_); in SortAndCull() 208 for (AutocompleteResult::iterator it = matches_.begin(); in SortAndCull() 209 (it != matches_.end()) && !has_legal_default_match_without_completion; in SortAndCull() 218 size_t max_num_matches = std::min(kMaxMatches, matches_.size()); in SortAndCull() 220 std::sort(matches_.begin(), matches_.end(), comparing_object); in SortAndCull() 221 if (!matches_.empty() && in SortAndCull() 223 *matches_.begin(), has_legal_default_match_without_completion)) { in SortAndCull() [all …]
|
D | search_provider.cc | 201 matches_.clear(); in Start() 259 matches_.push_back(match); in Start() 446 if (!matches_.empty() && in UpdateMatches() 456 (FindTopMatch() == matches_.end())) { in UpdateMatches() 477 if (!is_extension_keyword && (FindTopMatch() == matches_.end())) { in UpdateMatches() 492 DCHECK(is_extension_keyword || (FindTopMatch() != matches_.end())); in UpdateMatches() 495 "Omnibox.SearchProviderMatches", matches_.size(), 1, 6, 7); in UpdateMatches() 501 if ((first_match != matches_.end()) && in UpdateMatches() 826 for (ACMatches::iterator it = matches_.begin(); it != matches_.end(); in ConvertResultsToAutocompleteMatches() 913 matches_.clear(); in ConvertResultsToAutocompleteMatches() [all …]
|
D | autocomplete_provider.h | 192 const ACMatches& matches() const { return matches_; } in matches() 239 ACMatches matches_; variable
|
D | keyword_provider.cc | 207 matches_.clear(); in Start() 297 matches_.push_back(CreateAutocompleteMatch( in Start() 310 matches_.push_back(CreateAutocompleteMatch( in Start()
|
D | base_search_provider.cc | 460 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) { in DeleteMatchFromMatches() 467 matches_.erase(i); in DeleteMatchFromMatches()
|
D | autocomplete_result.h | 189 ACMatches matches_; variable
|
/external/chromium_org/chrome/browser/autocomplete/ |
D | history_url_provider_unittest.cc | 217 ACMatches matches_; member in HistoryURLProviderTest 302 matches_ = autocomplete_->matches(); in RunTest() 306 for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i) in RunTest() 309 input.current_page_classification(), false, &matches_); in RunTest() 310 std::sort(matches_.begin(), matches_.end(), in RunTest() 313 ASSERT_EQ(num_results, matches_.size()) << "Input text: " << text in RunTest() 316 EXPECT_EQ(expected_urls[i].url, matches_[i].destination_url.spec()); in RunTest() 318 matches_[i].allowed_to_be_default_match); in RunTest() 352 EXPECT_LT(matches_.front().relevance, 1200); in TEST_F() 359 EXPECT_GE(matches_.front().relevance, 1410); in TEST_F() [all …]
|
D | shortcuts_provider.cc | 71 matches_.clear(); in Start() 107 matches_.erase(std::remove_if(matches_.begin(), matches_.end(), in DeleteMatch() 109 matches_.end()); in DeleteMatch() 155 matches_.push_back(ShortcutToACMatch(it->second, relevance, input, in GetMatches() 157 matches_.back().ComputeStrippedDestinationURL(template_url_service); in GetMatches() 164 input.current_page_classification(), false, &matches_); in GetMatches() 166 std::partial_sort(matches_.begin(), in GetMatches() 167 matches_.begin() + in GetMatches() 168 std::min(AutocompleteProvider::kMaxMatches, matches_.size()), in GetMatches() 169 matches_.end(), &AutocompleteMatch::MoreRelevant); in GetMatches() [all …]
|
D | builtin_provider.cc | 65 matches_.clear(); in Start() 130 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) { in Start() 144 for (size_t i = 0; i < matches_.size(); ++i) in Start() 145 matches_[i].relevance = kRelevance + matches_.size() - (i + 1); in Start() 147 (matches_.size() == 1)) { in Start() 151 matches_[0].relevance = 1250; in Start() 152 matches_[0].allowed_to_be_default_match = true; in Start() 168 matches_.push_back(match); in AddMatch()
|
D | bookmark_provider.cc | 70 matches_.clear(); in Start() 121 matches_.push_back(match); in DoAutocomplete() 126 std::min(matches_.size(), AutocompleteProvider::kMaxMatches); in DoAutocomplete() 127 std::partial_sort(matches_.begin(), matches_.begin() + num_matches, in DoAutocomplete() 128 matches_.end(), AutocompleteMatch::MoreRelevant); in DoAutocomplete() 129 matches_.resize(num_matches); in DoAutocomplete()
|
D | zero_suggest_provider.cc | 94 matches_.clear(); in Start() 344 matches_.clear(); in ConvertResultsToAutocompleteMatches() 367 matches_.push_back(current_url_match_); in ConvertResultsToAutocompleteMatches() 384 matches_.push_back(NavigationToMatch(nav)); in ConvertResultsToAutocompleteMatches() 395 matches_.push_back(current_url_match_); in ConvertResultsToAutocompleteMatches() 398 matches_.push_back(it->second); in ConvertResultsToAutocompleteMatches() 404 matches_.push_back(NavigationToMatch(*it)); in ConvertResultsToAutocompleteMatches() 467 results_from_cache_ = !matches_.empty(); in MaybeUseCachedSuggestions()
|
D | history_provider.cc | 59 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) { in DeleteMatchFromMatches() 71 matches_.erase(i); in DeleteMatchFromMatches()
|
D | history_url_provider.cc | 500 matches_.clear(); in Start() 527 matches_.push_back(what_you_typed_match); in Start() 570 matches_.clear(); in Start() 833 matches_.push_back(HistoryMatchToACMatch(params, 0, INLINE_AUTOCOMPLETE, in PromoteMatchesIfNecessary() 837 matches_.push_back(params.what_you_typed_match); in PromoteMatchesIfNecessary() 841 matches_.push_back(params.what_you_typed_match); in PromoteMatchesIfNecessary() 862 matches_.clear(); in QueryComplete() 866 int relevance = matches_.empty() ? in QueryComplete() 869 matches_[0].relevance; in QueryComplete() 881 if (!matches_.empty()) { in QueryComplete() [all …]
|
D | shortcuts_provider_unittest.cc | 221 const ACMatchClassifications matches_; member in ClassifyTest 227 matches_(matches) { in ClassifyTest() 235 ShortcutsProvider::CreateWordMapForString(find_text), text_, matches_); in RunTest() 257 return matches_; in Leftovers() 261 std::set<ExpectedURLAndAllowedToBeDefault> matches_; member in ShortcutsProviderTest::SetShouldContain 344 matches_.insert(ExpectedURLAndAllowedToBeDefault( in SetShouldContain() 350 EXPECT_EQ(1U, matches_.erase(expected)); in operator ()()
|
D | keyword_extensions_delegate_impl.h | 51 ACMatches* matches() { return &provider_->matches_; } in matches()
|
D | history_quick_provider.cc | 60 matches_.clear(); in Start() 217 matches_.push_back(QuickMatchToACMatch(history_match, max_match_score)); in DoAutocomplete()
|
D | history_quick_provider_unittest.cc | 122 std::set<std::string> LeftOvers() const { return matches_; } in LeftOvers() 125 std::set<std::string> matches_; member in HistoryQuickProviderTest::SetShouldContain 259 matches_.insert(iter->destination_url.spec()); in SetShouldContain() 264 EXPECT_EQ(1U, matches_.erase(expected)) in operator ()()
|
D | autocomplete_provider_unittest.cc | 91 matches_.clear(); in Start() 155 matches_.push_back(match); in AddResultsWithSearchTermsArgs()
|
D | search_provider_unittest.cc | 3243 provider_->matches_.push_back(match); in TEST_F() 3246 EXPECT_TRUE(provider_->matches_.empty()); in TEST_F() 3257 provider_->matches_.push_back(match); in TEST_F()
|
/external/chromium_org/components/url_matcher/ |
D | substring_set_matcher.cc | 243 matches_(other.matches_) {} in AhoCorasickNode() 250 matches_ = other.matches_; in operator =() 264 matches_.insert(id); in AddMatch() 269 matches_.insert(matches.begin(), matches.end()); in AddMatches()
|
D | substring_set_matcher.h | 104 const Matches& matches() const { return matches_; } in matches() 114 Matches matches_; variable
|
/external/chromium_org/components/query_parser/ |
D | snippet.h | 58 const MatchPositions& matches() const { return matches_; } in matches() 68 MatchPositions matches_; variable
|
D | snippet.cc | 260 matches_.push_back(std::make_pair(first, snippet.size())); in ComputeSnippet() 299 matches_.swap(other->matches_); in Swap()
|
/external/chromium_org/extensions/common/features/ |
D | simple_feature.h | 139 URLPatternSet matches_; variable
|
D | simple_feature.cc | 271 ParseURLPatterns(value, "matches", &matches_); in Parse() 409 !matches_.MatchesURL(url)) { in IsAvailableToContext()
|