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

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

Issue 13141002: Use Instant suggested match type for Instant temporary text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const string16& Created 7 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: chrome/browser/autocomplete/search_provider.h
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h
index 16f669f3bc095ccbc56d6f9629670011c1f3eece..6427ae7d7226d1d1182c8c3d44ad6ef1c5dff909 100644
--- a/chrome/browser/autocomplete/search_provider.h
+++ b/chrome/browser/autocomplete/search_provider.h
@@ -73,6 +73,16 @@ class SearchProvider : public AutocompleteProvider,
const InstantSuggestion& suggestion);
void ClearInstantSuggestion();
+ // Sets |match| to be a search for |query|, using the default search provider
+ // or current keyword provider (based on |is_keyword|). |original_query| and
+ // |accepted_suggestion| are used to fill in AQS (Assisted Query Stats).
+ // Returns true if successful (i.e., the |match| was filled in correctly).
+ bool GetSearchWhatYouTypedMatch(const string16& query,
Mark P 2013/04/09 23:59:11 I find this somewhat misleading. The match you're
sreeram 2013/04/11 20:37:54 Done.
+ const string16& original_query,
+ int accepted_suggestion,
+ bool is_keyword,
+ AutocompleteMatch* match);
+
// AutocompleteProvider:
virtual void Start(const AutocompleteInput& input,
bool minimal_changes) OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/autocomplete/search_provider.cc » ('j') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698