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

1 2 3

  /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...]
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...]
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...]
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_contents_provider.h 40 // adds it to matches_.
extension_app_provider.cc 34 matches_.clear();
80 matches_.push_back(match);
  /external/chromium_org/chrome/browser/autocomplete/
autocomplete_result.cc 81 matches_.reserve(kMaxMatches);
140 std::copy(matches.begin(), matches.end(), std::back_inserter(matches_));
147 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i)
151 std::sort(matches_.begin(), matches_.end(),
153 matches_.erase(std::unique(matches_.begin(), matches_.end(),
155 matches_.end())
    [all...]
history_url_provider_unittest.cc 194 ACMatches matches_; member in class:HistoryURLProviderTest
279 matches_ = autocomplete_->matches();
281 for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i)
283 std::sort(matches_.begin(), matches_.end(),
285 matches_.erase(std::unique(matches_.begin(), matches_.end(),
287 matches_.end())
    [all...]
builtin_provider.cc 58 matches_.clear();
104 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) {
118 for (size_t i = 0; i < matches_.size(); ++i)
119 matches_[i].relevance = kRelevance + matches_.size() - (i + 1);
120 if (!input.prevent_inline_autocomplete() && (matches_.size() == 1)) {
124 matches_[0].relevance = 1250;
125 matches_[0].allowed_to_be_default_match = true;
141 matches_.push_back(match);
shortcuts_provider.cc 88 matches_.clear();
123 matches_.erase(std::remove_if(matches_.begin(), matches_.end(),
125 matches_.end());
176 matches_.push_back(ShortcutToACMatch(
181 std::partial_sort(matches_.begin(),
182 matches_.begin() +
183 std::min(AutocompleteProvider::kMaxMatches, matches_.size()),
184 matches_.end(), &AutocompleteMatch::MoreRelevant)
    [all...]
bookmark_provider.cc 42 matches_.clear();
108 matches_.push_back(match);
113 if (matches_.size() > max_matches) {
114 std::partial_sort(matches_.begin(),
115 matches_.begin() + max_matches,
116 matches_.end(),
118 matches_.resize(max_matches);
120 std::sort(matches_.begin(), matches_.end(),
history_provider.cc 46 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) {
56 matches_.erase(i);
zero_suggest_provider.cc 97 matches_.clear();
143 if (!matches_.empty())
394 matches_.clear();
413 matches_.push_back(current_url_match_);
424 matches_.push_back(NavigationToMatch(nav));
435 matches_.push_back(current_url_match_);
439 matches_.push_back(it->second);
443 matches_.push_back(NavigationToMatch(*it));
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;
contact_provider_chromeos.h 58 // Adds an AutocompleteMatch object for |contact| to |matches_| if |contact|
keyword_provider.cc 233 matches_.clear();
332 matches_.push_back(CreateAutocompleteMatch(
347 &matches_[0]);
355 matches_.push_back(extension_suggest_matches_[i]);
356 matches_.back().relevance = matches_[0].relevance - (i + 1);
378 matches_.push_back(CreateAutocompleteMatch(
548 if (matches_.empty() || current_keyword_extension_id_.empty() ||
557 &matches_[0]);
604 matches_.insert(matches_.end(), extension_suggest_matches_.begin()
    [all...]
autocomplete_provider.cc 126 if (matches_.empty())
136 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i)
bookmark_provider.h 46 // |matches_|. If |best_match| then only suggest the single best match,
  /external/chromium_org/components/url_matcher/
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/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/chrome/common/extensions/features/
simple_feature.cc 251 matches_(other.matches_),
268 matches_ == other.matches_ &&
279 ParseURLPatterns(value, "matches", &matches_);
305 if (matches_.is_empty() && contexts_.count(WEB_PAGE_CONTEXT) != 0) {
386 if (!matches_.is_empty() && !matches_.MatchesURL(url))

Completed in 2798 milliseconds

1 2 3