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

1 2

  /external/chromium_org/chrome/browser/autocomplete/
autocomplete_result.cc 125 matches_.reserve(kMaxMatches);
184 std::copy(matches.begin(), matches.end(), std::back_inserter(matches_));
191 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i)
195 &matches_);
206 for (AutocompleteResult::iterator it = matches_.begin();
207 (it != matches_.end()) && !has_legal_default_match_without_completion;
216 size_t max_num_matches = std::min(kMaxMatches, matches_.size());
218 std::sort(matches_.begin(), matches_.end(), comparing_object)
    [all...]
history_url_provider_unittest.cc 208 ACMatches matches_; member in class:HistoryURLProviderTest
292 matches_ = autocomplete_->matches();
294 for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i)
297 input.current_page_classification(), false, &matches_);
298 std::sort(matches_.begin(), matches_.end(),
301 ASSERT_EQ(num_results, matches_.size()) << "Input text: " << text
304 EXPECT_EQ(expected_urls[i].url, matches_[i].destination_url.spec());
306 matches_[i].allowed_to_be_default_match)
    [all...]
shortcuts_provider.cc 72 matches_.clear();
98 // Copy the URL since deleting from |matches_| will invalidate |match|.
109 matches_.erase(std::remove_if(matches_.begin(), matches_.end(),
111 matches_.end());
159 matches_.push_back(ShortcutToACMatch(it->second, relevance, input,
161 matches_.back().ComputeStrippedDestinationURL(profile_);
168 input.current_page_classification(), false, &matches_);
170 std::partial_sort(matches_.begin()
    [all...]
builtin_provider.cc 67 matches_.clear();
132 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) {
146 for (size_t i = 0; i < matches_.size(); ++i)
147 matches_[i].relevance = kRelevance + matches_.size() - (i + 1);
149 (matches_.size() == 1)) {
153 matches_[0].relevance = 1250;
154 matches_[0].allowed_to_be_default_match = true;
170 matches_.push_back(match);
autocomplete_provider.h 218 const ACMatches& matches() const { return matches_; }
248 // Updates the starred state of each of the matches in matches_ from the
279 ACMatches matches_; member in class:AutocompleteProvider
bookmark_provider.cc 48 matches_.clear();
99 matches_.push_back(match);
104 std::min(matches_.size(), AutocompleteProvider::kMaxMatches);
105 std::partial_sort(matches_.begin(), matches_.begin() + num_matches,
106 matches_.end(), AutocompleteMatch::MoreRelevant);
107 matches_.resize(num_matches);
history_provider.cc 57 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) {
67 matches_.erase(i);
zero_suggest_provider.cc 94 matches_.clear();
343 matches_.clear();
366 matches_.push_back(current_url_match_);
382 matches_.push_back(NavigationToMatch(nav));
393 matches_.push_back(current_url_match_);
396 matches_.push_back(it->second);
401 matches_.push_back(NavigationToMatch(*it));
460 results_from_cache_ = !matches_.empty();
keyword_extensions_delegate_impl.h 51 ACMatches* matches() { return &provider_->matches_; }
search_provider.cc 191 matches_.clear();
249 matches_.push_back(match);
371 if (!matches_.empty() &&
395 if (FindTopMatch() == matches_.end()) {
404 DCHECK(FindTopMatch() != matches_.end());
407 "Omnibox.SearchProviderMatches", matches_.size(), 1, 6, 7);
414 for (ACMatches::iterator it = matches_.begin(); it != matches_.end();
758 // Now add the most relevant matches to |matches_|. We take up to kMaxMatches
769 matches_.clear()
    [all...]
autocomplete_result.h 178 // Populates |provider_to_matches| from |matches_|.
188 ACMatches matches_; member in class:AutocompleteResult
autocomplete_provider.cc 123 if (matches_.empty())
133 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i)
history_url_provider.cc 455 matches_.clear();
482 matches_.push_back(what_you_typed_match);
525 matches_.clear();
    [all...]
extension_app_provider.cc 108 matches_.clear();
145 matches_.push_back(CreateAutocompleteMatch(
history_quick_provider.cc 63 matches_.clear();
191 // Loop over every result and add it to matches_. In the process,
221 matches_.push_back(QuickMatchToACMatch(history_match, max_match_score));
shortcuts_provider_unittest.cc 218 const ACMatchClassifications matches_; member in class:ClassifyTest
224 matches_(matches) {
232 ShortcutsProvider::CreateWordMapForString(find_text), text_, matches_);
258 return matches_;
262 std::set<ExpectedURLAndAllowedToBeDefault> matches_; member in class:ShortcutsProviderTest::SetShouldContain
347 matches_.insert(ExpectedURLAndAllowedToBeDefault(
353 EXPECT_EQ(1U, matches_.erase(expected));
    [all...]
keyword_provider.cc 226 matches_.clear();
317 matches_.push_back(CreateAutocompleteMatch(
330 matches_.push_back(CreateAutocompleteMatch(
history_quick_provider_unittest.cc 124 std::set<std::string> LeftOvers() const { return matches_; }
127 std::set<std::string> matches_; member in class:HistoryQuickProviderTest::SetShouldContain
247 matches_.insert(iter->destination_url.spec());
252 EXPECT_EQ(1U, matches_.erase(expected))
    [all...]
autocomplete_provider_unittest.cc 86 matches_.clear();
148 matches_.push_back(match);
  /external/chromium_org/components/query_parser/
snippet.h 58 const MatchPositions& matches() const { return matches_; }
68 MatchPositions matches_; member in class:query_parser::Snippet
snippet.cc 260 matches_.push_back(std::make_pair(first, snippet.size()));
299 matches_.swap(other->matches_);
  /external/chromium_org/components/url_matcher/
substring_set_matcher.h 104 const Matches& matches() const { return matches_; }
114 Matches matches_; member in class:url_matcher::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/extensions/common/features/
simple_feature.cc 242 ParseURLPatterns(value, "matches", &matches_);
264 if (matches_.is_empty() && contexts_.count(WEB_PAGE_CONTEXT) != 0) {
367 if (!matches_.is_empty() && !matches_.MatchesURL(url))
simple_feature.h 133 URLPatternSet matches_; member in class:extensions::SimpleFeature

Completed in 546 milliseconds

1 2