Home | History | Annotate | Download | only in autocomplete

Lines Matching refs:match

103     // Weird edge case to match other browsers: if the edit is empty, revert to
131 AutocompleteMatch match;
132 GetInfoForCurrentText(&match, NULL);
133 return match;
248 AutocompleteMatch match;
249 GetInfoForCurrentText(&match, NULL);
250 *url = match.destination_url;
288 // match. This would make the autocompleted text disappear, leaving our user
309 AutocompleteMatch match;
310 GetInfoForCurrentText(&match, NULL);
311 return match.transition == PageTransition::TYPED;
315 AutocompleteMatch match;
316 GetInfoForCurrentText(&match, NULL);
317 return match.type;
413 AutocompleteMatch match;
415 &match, &paste_and_go_alternate_nav_url_);
416 paste_and_go_url_ = match.destination_url;
417 paste_and_go_transition_ = match.transition;
434 AutocompleteMatch match;
436 GetInfoForCurrentText(&match, &alternate_nav_url);
438 if (!match.destination_url.is_valid())
441 if ((match.transition == PageTransition::TYPED) && (match.destination_url ==
452 match.transition = PageTransition::RELOAD;
454 match.is_history_what_you_typed_match)) {
458 match.transition = PageTransition::LINK;
461 if (match.type == AutocompleteMatch::SEARCH_WHAT_YOU_TYPED ||
462 match.type == AutocompleteMatch::SEARCH_HISTORY ||
463 match.type == AutocompleteMatch::SEARCH_SUGGEST) {
476 view_->OpenURL(match.destination_url, disposition, match.transition,
513 const AutocompleteMatch& match =
518 size_t prefix_length = match.template_url->keyword().size() + 1;
520 profile_, match.template_url->GetExtensionId(),
521 UTF16ToUTF8(match.fill_into_edit.substr(prefix_length)));
605 AutocompleteMatch match;
606 InfoForCurrentSelection(&match, NULL);
607 if (match.destination_url != original_url_) {
704 // update the popup, the new order of entries won't match the old, so the
725 // In this case, we've already reverted the popup to the default match, so we
821 // A match that uses a non-default search engine (e.g. for tab-to-search).
837 const AutocompleteResult::const_iterator match(result.default_match());
838 if (match != result.end()) {
839 if ((match->inline_autocomplete_offset != string16::npos) &&
840 (match->inline_autocomplete_offset <
841 match->fill_into_edit.length())) {
843 match->fill_into_edit.substr(match->inline_autocomplete_offset);
846 if (!match->destination_url.SchemeIs(chrome::kExtensionScheme)) {
848 chrome_browser_net::AnticipateOmniboxUrl(match->destination_url,
849 IsPreconnectable(match->type));
856 is_keyword_hint = popup_->GetKeywordForMatch(*match, &keyword);
902 AutocompleteMatch* match,
904 DCHECK(match != NULL);
912 // The user cannot have manually selected a match, or the query would have
913 // stopped. So the default match must be the desired selection.
914 *match = *result.default_match();
922 *match = result.match_at(popup_->selected_line());
929 AutocompleteMatch* match,
932 InfoForCurrentSelection(match, alternate_nav_url);
936 match, alternate_nav_url);
1000 // Only allow exact keyword match if |keyword| represents a keyword hint.