HomeSort by relevance Sort by last modified time
    Searched refs:matches_ (Results 1 - 25 of 40) sorted by null

1 2

  /external/chromium_org/chrome/browser/autocomplete/
autocomplete_result.cc 80 matches_.reserve(kMaxMatches);
139 std::copy(matches.begin(), matches.end(), std::back_inserter(matches_));
146 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i)
150 std::sort(matches_.begin(), matches_.end(),
152 matches_.erase(std::unique(matches_.begin(), matches_.end(),
154 matches_.end())
    [all...]
history_url_provider_unittest.cc 192 ACMatches matches_; member in class:HistoryURLProviderTest
277 matches_ = autocomplete_->matches();
279 for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i)
281 std::sort(matches_.begin(), matches_.end(),
283 matches_.erase(std::unique(matches_.begin(), matches_.end(),
285 matches_.end())
    [all...]
builtin_provider.cc 57 matches_.clear();
97 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) {
111 for (size_t i = 0; i < matches_.size(); ++i)
112 matches_[i].relevance = kRelevance + matches_.size() - (i + 1);
125 matches_.push_back(match);
bookmark_provider.cc 42 matches_.clear();
108 matches_.push_back(match);
113 if (matches_.size() > max_matches) {
114 std::partial_sort(matches_.begin(), matches_.end(),
115 matches_.begin() + max_matches,
117 matches_.resize(max_matches);
119 std::sort(matches_.begin(), matches_.end(),
autocomplete_provider.h 196 // NOTE: Remember to call OnProviderUpdate() if matches_ is updated.
218 const ACMatches& matches() const { return matches_; }
248 // Updates the starred state of each of the matches in matches_ from the
257 ACMatches matches_; member in class:AutocompleteProvider
shortcuts_provider.cc 69 matches_.clear();
132 std::remove_if(matches_.begin(), matches_.end(), RemoveMatchPredicate(urls));
168 matches_.push_back(ShortcutToACMatch(relevance, term_string, it->second));
170 std::partial_sort(matches_.begin(),
171 matches_.begin() +
172 std::min(AutocompleteProvider::kMaxMatches, matches_.size()),
173 matches_.end(), &AutocompleteMatch::MoreRelevant);
174 if (matches_.size() > AutocompleteProvider::kMaxMatches) {
175 matches_.erase(matches_.begin() + AutocompleteProvider::kMaxMatches
    [all...]
autocomplete_provider.cc 136 if (matches_.empty())
146 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i)
history_provider.cc 46 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) {
56 matches_.erase(i);
keyword_provider.cc 230 matches_.clear();
326 matches_.push_back(CreateAutocompleteMatch(
341 &matches_[0]);
349 matches_.push_back(extension_suggest_matches_[i]);
350 matches_.back().relevance = matches_[0].relevance - (i + 1);
372 matches_.push_back(CreateAutocompleteMatch(
542 if (matches_.empty() || current_keyword_extension_id_.empty() ||
551 &matches_[0]);
598 matches_.insert(matches_.end(), extension_suggest_matches_.begin()
    [all...]
contact_provider_chromeos.cc 117 matches_.clear();
139 it != contacts_.end() && matches_.size() < kMaxMatches; ++it)
222 matches_.push_back(CreateAutocompleteMatch(input, contact));
223 matches_.back().contents_class = classifications;
autocomplete_result.h 173 // Populates |provider_to_matches| from |matches_|.
183 ACMatches matches_; member in class:AutocompleteResult
  /external/chromium/chrome/browser/autocomplete/
builtin_provider.cc 28 matches_.clear();
35 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) {
49 matches_.push_back(match);
52 for (size_t i = 0; i < matches_.size(); ++i)
53 matches_[i].relevance = kRelevance + matches_.size() - (i + 1);
history_url_provider_unittest.cc 135 ACMatches matches_; member in class:HistoryURLProviderTest
198 matches_ = autocomplete_->matches();
199 ASSERT_EQ(num_results, matches_.size()) << "Input text: " << text
202 EXPECT_EQ(expected_urls[i], matches_[i].destination_url.spec());
213 matches_ = autocomplete_->matches();
214 ASSERT_GE(matches_.size(), 1U) << "Input text: " << text;
215 EXPECT_EQ(expected_offset, matches_[0].inline_autocomplete_offset);
248 EXPECT_EQ(ASCIIToUTF16("Google News"), matches_.front().description);
418 EXPECT_EQ(input_1.length(), matches_.front().inline_autocomplete_offset);
430 EXPECT_EQ(input_2.length(), matches_.front().inline_autocomplete_offset)
    [all...]
autocomplete.cc 526 if (matches_.empty())
535 for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i)
564 matches_.reserve(kMaxMatches);
578 matches_ = rhs.matches_;
627 std::copy(matches.begin(), matches.end(), std::back_inserter(matches_));
640 matches_.insert(insertion_point, match);
646 std::sort(matches_.begin(), matches_.end()
    [all...]
keyword_provider.cc 134 matches_.clear();
215 matches_.push_back(CreateAutocompleteMatch(model, keyword, input,
230 &matches_[0]);
237 matches_.push_back(extension_suggest_matches_[i]);
238 matches_.back().relevance = matches_[0].relevance - (i + 1);
261 matches_.push_back(CreateAutocompleteMatch(model, *i,
465 if (matches_.empty() || current_keyword_extension_id_.empty() ||
473 &matches_[0]);
514 matches_.insert(matches_.end(), extension_suggest_matches_.begin()
    [all...]
search_provider.cc 92 for (ACMatches::iterator i = matches_.begin(); i != matches_.end();) {
106 i = matches_.erase(i);
124 matches_.push_back(match_map.begin()->second);
126 std::sort(matches_.begin(), matches_.end(), &AutocompleteMatch::MoreRelevant);
135 matches_.clear();
191 matches_.push_back(match);
566 // Now add the most relevant matches from the map to |matches_|.
567 matches_.clear()
    [all...]
history_provider.cc 43 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) {
53 matches_.erase(i);
history_contents_provider.cc 68 matches_.clear();
171 listener_->OnProviderUpdate(!matches_.empty());
196 matches_.clear();
198 matches_.push_back(ResultToMatch(*result_refs[i].result,
history_quick_provider_unittest.cc 164 matches_.insert(iter->destination_url.spec());
168 EXPECT_EQ(1U, matches_.erase(expected));
171 std::set<std::string> LeftOvers() const { return matches_; }
174 std::set<std::string> matches_; member in class:SetShouldContain
autocomplete.h 403 const ACMatches& matches() const { return matches_; }
415 // NOTE: Remember to call OnProviderUpdate() if matches_ is updated.
432 // Updates the starred state of each of the matches in matches_ from the
448 ACMatches matches_; member in class:AutocompleteProvider
561 // Populates |provider_to_matches| from |matches_|.
574 ACMatches matches_; member in class:AutocompleteResult
    [all...]
  /external/chromium/chrome/browser/history/
snippet.h 57 const MatchPositions& matches() const { return matches_; }
67 MatchPositions matches_; member in class:Snippet
  /external/chromium_org/chrome/browser/history/
snippet.h 56 const MatchPositions& matches() const { return matches_; }
66 MatchPositions matches_; member in class:Snippet
  /external/chromium_org/extensions/common/matcher/
substring_set_matcher.h 103 const Matches& matches() const { return matches_; }
113 Matches matches_; member in class:extensions::SubstringSetMatcher::AhoCorasickNode
substring_set_matcher.cc 243 matches_(other.matches_) {}
250 matches_ = other.matches_;
264 matches_.insert(id);
269 matches_.insert(matches.begin(), matches.end());
  /external/chromium_org/chrome/common/extensions/features/
simple_feature.cc 201 matches_(other.matches_),
218 matches_ == other.matches_ &&
229 ParseURLPatterns(value, "matches", &matches_);
255 if (matches_.is_empty() && contexts_.count(WEB_PAGE_CONTEXT) != 0) {
338 if (!matches_.is_empty() && !matches_.MatchesURL(url))

Completed in 885 milliseconds

1 2