Home | History | Annotate | Download | only in omnibox

Lines Matching refs:match

135 std::string SearchProvider::GetSuggestMetadata(const AutocompleteMatch& match) {
136 return match.GetAdditionalInfo(kSuggestMetadataKey);
252 AutocompleteMatch match;
253 match.provider = this;
254 match.contents.assign(l10n_util::GetStringUTF16(IDS_EMPTY_KEYWORD_VALUE));
255 match.contents_class.push_back(
257 match.keyword = providers_.default_provider();
258 match.allowed_to_be_default_match = true;
259 matches_.push_back(match);
333 // A verbatim match cannot be generated without this provider, causing errors.
458 // relevance if necessary, so at least one match is allowed to be default.
460 // will return a default match.) Give keyword verbatim the lowest
468 // type is URL and the top match is a highly-ranked search suggestion.
478 // Guarantee that SearchProvider returns a legal default match (except
480 // least one legal default match, and it relies on SearchProvider in
503 // Identify if this match came from a query suggestion or a navsuggestion.
801 // the most relevant match for each result.
845 // We only create the verbatim search query match for a keyword
887 // that set a legal default match if possible. If Instant Extended is enabled
898 // Guarantee that if there's a legal default match anywhere in the result
900 // default match to the front of the list.
920 // verbatim result, so this condition basically means "if this match is a
1056 // Add the match to |scored_results| by putting the what-you-typed match
1058 // typed match to always be first.
1077 // what-you-typed match at the front (if it exists), do a stable sort to get
1108 AutocompleteMatch match;
1110 input_.current_page_classification(), &match, NULL);
1111 // Demote this match that would normally be interpreted as a URL to have
1114 // by revising |last_relevance| is that this match and all following
1122 if (!AutocompleteMatch::IsSearchType(match.type)) {
1304 AutocompleteMatch match(this, navigation.relevance(), false,
1306 match.destination_url = navigation.url();
1307 BaseSearchProvider::SetDeletionURL(navigation.deletion_url(), &match);
1323 match.fill_into_edit +=
1330 // Preserve the forced query '?' prefix in |match.fill_into_edit|.
1333 match.fill_into_edit.insert(0, base::ASCIIToUTF16("?"));
1338 DCHECK(inline_autocomplete_offset <= match.fill_into_edit.length());
1339 match.inline_autocompletion =
1340 match.fill_into_edit.substr(inline_autocomplete_offset);
1342 // An inlineable navsuggestion can only be the default match when there
1352 match.allowed_to_be_default_match =
1356 (match.inline_autocompletion.empty() ||
1358 match.EnsureUWYTIsAllowedToBeDefault(
1361 match.contents = navigation.match_contents();
1362 match.contents_class = navigation.match_contents_class();
1363 match.description = navigation.description();
1364 AutocompleteMatch::ClassifyMatchInString(input, match.description,
1365 ACMatchClassification::NONE, &match.description_class);
1367 match.RecordAdditionalInfo(
1370 match.RecordAdditionalInfo(kShouldPrefetchKey, kFalse);
1372 return match;
1409 AutocompleteResult::const_iterator match = result.begin();
1410 if (match->answer_contents.empty() && result.size() > 1)
1411 ++match;
1412 if (match->answer_contents.empty() || match->answer_type.empty() ||
1413 match->fill_into_edit.empty())
1417 answers_cache_.UpdateRecentAnswers(match->fill_into_edit, match->answer_type);