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

Unified Diff: chrome/browser/autocomplete/autocomplete_match.h

Issue 14698028: Omnibox refactor. OmniboxController now holds an AutocompleteMatch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased and cleaned-up. Created 7 years, 6 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: chrome/browser/autocomplete/autocomplete_match.h
diff --git a/chrome/browser/autocomplete/autocomplete_match.h b/chrome/browser/autocomplete/autocomplete_match.h
index 146586ea2f8a0667c70ad2263cfae3d89c556cf1..9c740943b65cd74b15d65bc2f5a915446918966b 100644
--- a/chrome/browser/autocomplete/autocomplete_match.h
+++ b/chrome/browser/autocomplete/autocomplete_match.h
@@ -247,6 +247,10 @@ struct AutocompleteMatch {
// not be inline autocompleted.
size_t inline_autocomplete_offset;
+ // The completion suggested by instant, displayed in gray text besides
+ // |fill_into_edit|.
+ string16 gray_suggestion;
Peter Kasting 2013/06/11 22:42:55 It doesn't seem right to put this on AutocompleteM
beaudoin 2013/06/14 21:39:38 I agree. For now I will just keep that gray text i
+
// The URL to actually load when the autocomplete item is selected. This URL
// should be canonical so we can compare URLs with strcmp to avoid dupes.
// It may be empty if there is no possible navigation.
@@ -284,8 +288,7 @@ struct AutocompleteMatch {
// for both explicit "keyword mode" matches as well as matches for the default
// search provider (so, any match for which we're doing substitution); it
// doesn't imply (alone) that the UI is going to show a keyword hint or
- // keyword mode. For that, see GetKeywordUIState() or
- // GetSubstitutingExplicitlyInvokedKeyword().
+ // keyword mode. For that, see GetSubstitutingExplicitlyInvokedKeyword().
//
// CAUTION: The TemplateURL associated with this keyword may be deleted or
// modified while the AutocompleteMatch is alive. This means anyone who
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_match.cc » ('j') | chrome/browser/ui/omnibox/omnibox_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698