Home | History | Annotate | Download | only in autocomplete

Lines Matching refs:match

94     // description of the new first match in the call to
186 AutocompleteMatch match;
187 match.provider = this;
188 match.contents.assign(l10n_util::GetStringUTF16(IDS_EMPTY_KEYWORD_VALUE));
189 match.contents_class.push_back(
191 matches_.push_back(match);
530 // the most relevant match for each result.
613 // match having a relevance greater than the previous, but they might be
631 // match will outrank us for URL-like inputs anyway, so we need not do
635 AutocompleteMatch match;
636 classifier->Classify(i->term, string16(), false, &match, NULL);
637 term_looks_like_url = match.transition == PageTransition::TYPED;
758 AutocompleteMatch match(this, relevance, false, type);
762 match.contents.assign(query_string);
767 size_t input_position = match.contents.find(input_text);
772 match.contents_class.push_back(
773 ACMatchClassification(0, ACMatchClassification::MATCH));
775 // TODO(beng): ACMatchClassification::MATCH now seems to just mean
783 match.contents_class.push_back(
786 match.contents_class.push_back(
790 match.contents_class.push_back(
798 match
807 match.fill_into_edit.assign(ASCIIToUTF16("?"));
811 match.fill_into_edit.append(
813 match.template_url = &providers_.keyword_provider();
815 match.fill_into_edit.append(query_string);
818 !match.fill_into_edit.compare(search_start, input_text.length(),
820 match.inline_autocomplete_offset = search_start + input_text.length();
824 match.destination_url =
831 match.transition =
834 // Try to add |match| to |map|. If a match for |query_string| is already in
835 // |map|, replace it if |match| is more relevant.
839 l10n_util::ToLower(query_string), match));
848 if (!i.second && (match.relevance > i.first->second.relevance))
849 i.first->second = match;
858 AutocompleteMatch match(this, relevance, false,
860 match.destination_url = navigation.url;
861 match.contents =
863 AutocompleteMatch::ClassifyMatchInString(input_text, match.contents,
865 &match.contents_class);
867 match.description = navigation.site_name;
870 &match.description_class);
876 match.fill_into_edit.assign(ASCIIToUTF16("?"));
877 match.fill_into_edit.append(
879 match.contents));
883 return match;
898 AutocompleteMatch& match = *i;
899 switch (match.type) {
903 match.description.assign(l10n_util::GetStringFUTF16(
907 match.description_class.push_back(
909 // Only the first search match gets a description.