/external/chromium/chrome/browser/autocomplete/ |
D | history_url_provider_unittest.cc | 135 ACMatches matches_; member in HistoryURLProviderTest 198 matches_ = autocomplete_->matches(); in RunTest() 199 ASSERT_EQ(num_results, matches_.size()) << "Input text: " << text in RunTest() 202 EXPECT_EQ(expected_urls[i], matches_[i].destination_url.spec()); in RunTest() 213 matches_ = autocomplete_->matches(); in RunAdjustOffsetTest() 214 ASSERT_GE(matches_.size(), 1U) << "Input text: " << text; in RunAdjustOffsetTest() 215 EXPECT_EQ(expected_offset, matches_[0].inline_autocomplete_offset); in RunAdjustOffsetTest() 248 EXPECT_EQ(ASCIIToUTF16("Google News"), matches_.front().description); in TEST_F() 418 EXPECT_EQ(input_1.length(), matches_.front().inline_autocomplete_offset); in TEST_F() 430 EXPECT_EQ(input_2.length(), matches_.front().inline_autocomplete_offset); in TEST_F() [all …]
|
D | autocomplete.cc | 526 if (matches_.empty()) in UpdateStarredStateOfMatches() 535 for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i) in UpdateStarredStateOfMatches() 564 matches_.reserve(kMaxMatches); in AutocompleteResult() 578 matches_ = rhs.matches_; in CopyFrom() 627 std::copy(matches.begin(), matches.end(), std::back_inserter(matches_)); in AppendMatches() 640 matches_.insert(insertion_point, match); in AddMatch() 646 std::sort(matches_.begin(), matches_.end(), in SortAndCull() 648 matches_.erase(std::unique(matches_.begin(), matches_.end(), in SortAndCull() 650 matches_.end()); in SortAndCull() 653 const size_t num_matches = std::min(kMaxMatches, matches_.size()); in SortAndCull() [all …]
|
D | builtin_provider.cc | 28 matches_.clear(); in Start() 35 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) { in Start() 49 matches_.push_back(match); in Start() 52 for (size_t i = 0; i < matches_.size(); ++i) in Start() 53 matches_[i].relevance = kRelevance + matches_.size() - (i + 1); in Start()
|
D | search_provider.cc | 92 for (ACMatches::iterator i = matches_.begin(); i != matches_.end();) { in FinalizeInstantQuery() 106 i = matches_.erase(i); in FinalizeInstantQuery() 124 matches_.push_back(match_map.begin()->second); in FinalizeInstantQuery() 126 std::sort(matches_.begin(), matches_.end(), &AutocompleteMatch::MoreRelevant); in FinalizeInstantQuery() 135 matches_.clear(); in Start() 191 matches_.push_back(match); in Start() 567 matches_.clear(); in ConvertResultsToAutocompleteMatches() 569 matches_.push_back(i->second); in ConvertResultsToAutocompleteMatches() 575 std::partial_sort(matches_.begin(), in ConvertResultsToAutocompleteMatches() 576 matches_.begin() + std::min(max_total_matches, matches_.size()), in ConvertResultsToAutocompleteMatches() [all …]
|
D | keyword_provider.cc | 134 matches_.clear(); in Start() 215 matches_.push_back(CreateAutocompleteMatch(model, keyword, input, in Start() 230 &matches_[0]); in Start() 237 matches_.push_back(extension_suggest_matches_[i]); in Start() 238 matches_.back().relevance = matches_[0].relevance - (i + 1); in Start() 261 matches_.push_back(CreateAutocompleteMatch(model, *i, in Start() 465 if (matches_.empty() || current_keyword_extension_id_.empty() || in Observe() 473 &matches_[0]); in Observe() 514 matches_.insert(matches_.end(), extension_suggest_matches_.begin(), in Observe()
|
D | history_provider.cc | 43 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) { in DeleteMatch() 53 matches_.erase(i); in DeleteMatch()
|
D | history_contents_provider.cc | 68 matches_.clear(); in Start() 171 listener_->OnProviderUpdate(!matches_.empty()); in QueryComplete() 196 matches_.clear(); in ConvertResults() 198 matches_.push_back(ResultToMatch(*result_refs[i].result, in ConvertResults()
|
D | history_quick_provider_unittest.cc | 164 matches_.insert(iter->destination_url.spec()); in SetShouldContain() 168 EXPECT_EQ(1U, matches_.erase(expected)); in operator ()() 171 std::set<std::string> LeftOvers() const { return matches_; } in LeftOvers() 174 std::set<std::string> matches_; member in SetShouldContain
|
D | autocomplete.h | 403 const ACMatches& matches() const { return matches_; } in matches() 448 ACMatches matches_; variable 574 ACMatches matches_; variable
|
D | extension_app_provider.cc | 34 matches_.clear(); in Start() 80 matches_.push_back(match); in Start()
|
D | history_url_provider.cc | 294 matches_.swap(params->matches); in QueryComplete() 571 matches_.clear(); in RunAutocompletePasses() 585 matches_.push_back(SuggestExactInput(input, trim_http)); in RunAutocompletePasses() 635 matches_.clear(); in RunAutocompletePasses() 636 matches_.swap(params->matches); in RunAutocompletePasses()
|
D | history_quick_provider.cc | 44 matches_.clear(); in Start() 113 matches_.push_back(ac_match); in DoAutocomplete()
|
D | autocomplete_unittest.cc | 66 matches_.clear(); in Start() 101 matches_.push_back(match); in AddResults()
|
/external/chromium/chrome/browser/history/ |
D | snippet.h | 57 const MatchPositions& matches() const { return matches_; } in matches() 67 MatchPositions matches_; variable
|
D | snippet.cc | 257 matches_.push_back(std::make_pair(first, snippet.size())); in ComputeSnippet() 296 matches_.swap(other->matches_); in Swap()
|