Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Unified Diff: components/omnibox/autocomplete_match.h

Issue 1072163003: Make GetInfoForCurrentText() return the correct match when we've selected an (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/omnibox/autocomplete_match.h
diff --git a/components/omnibox/autocomplete_match.h b/components/omnibox/autocomplete_match.h
index 93c509741c901163ee66bb30ca67af3ae61c4194..8fd50acfc0d613e37eab609a43795be514ae9b58 100644
--- a/components/omnibox/autocomplete_match.h
+++ b/components/omnibox/autocomplete_match.h
@@ -340,6 +340,11 @@ struct AutocompleteMatch {
// Set with a keyword provider match if this match can show a keyword hint.
// For example, if this is a SearchProvider match for "www.amazon.com",
// |associated_keyword| could be a KeywordProvider match for "amazon.com".
+ //
+ // When this is set, the popup will show a ">" symbol at the right edge of the
+ // line for this match, and tab/shift-tab will toggle in and out of keyword
+ // mode without disturbing the rest of the popup. See also
+ // OmniboxPopupModel::SetSelectedLineState().
scoped_ptr<AutocompleteMatch> associated_keyword;
// The keyword of the TemplateURL the match originated from. This is nonempty

Powered by Google App Engine
This is Rietveld 408576698