summaryrefslogtreecommitdiffstats
path: root/components/omnibox/autocomplete_match.h
diff options
context:
space:
mode:
authorpkasting <pkasting@chromium.org>2015-04-21 15:42:28 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-21 22:43:40 +0000
commit19b75b7e5ac685cb3e4006e6ff38531abfc2a8b6 (patch)
tree7daadf50bff1395bfb5943171b30f71cafc4ca69 /components/omnibox/autocomplete_match.h
parentd3aa54633283eeeb0d7527e576148e9dc56f0720 (diff)
downloadchromium_src-19b75b7e5ac685cb3e4006e6ff38531abfc2a8b6.zip
chromium_src-19b75b7e5ac685cb3e4006e6ff38531abfc2a8b6.tar.gz
chromium_src-19b75b7e5ac685cb3e4006e6ff38531abfc2a8b6.tar.bz2
Make GetInfoForCurrentText() return the correct match when we've selected an
associated keyword in the dropdown. I can't think of any concrete bugs this would have caused offhand, but there might be some, and it's certainly more correct. BUG=none TEST=none Review URL: https://codereview.chromium.org/1072163003 Cr-Commit-Position: refs/heads/master@{#326151}
Diffstat (limited to 'components/omnibox/autocomplete_match.h')
-rw-r--r--components/omnibox/autocomplete_match.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/omnibox/autocomplete_match.h b/components/omnibox/autocomplete_match.h
index 93c5097..8fd50ac 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