diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 04:49:34 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 04:49:34 +0000 |
commit | 4ab4c7c5fd8008de223d1bb7f2361cd80bac9778 (patch) | |
tree | 54e963ae4e745d8f9370bf759d171feb99c5af97 /chrome/browser/autocomplete/search_provider.h | |
parent | 4030ced8df93134f9da566dddd5fcb7e1882307f (diff) | |
download | chromium_src-4ab4c7c5fd8008de223d1bb7f2361cd80bac9778.zip chromium_src-4ab4c7c5fd8008de223d1bb7f2361cd80bac9778.tar.gz chromium_src-4ab4c7c5fd8008de223d1bb7f2361cd80bac9778.tar.bz2 |
Makes committing the suggested text only update the default search
provider and nothing else.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5270001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.h')
-rw-r--r-- | chrome/browser/autocomplete/search_provider.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h index f1d5ffd..6667f1e 100644 --- a/chrome/browser/autocomplete/search_provider.h +++ b/chrome/browser/autocomplete/search_provider.h @@ -52,6 +52,11 @@ class SearchProvider : public AutocompleteProvider, } #endif + // Marks the instant query as done. If |text| is non-empty this changes the + // 'search what you typed' results text to |text|. This also marks the search + // provider as no longer needing to wait for the instant result. + void FinalizeInstantQuery(const std::wstring& text); + // AutocompleteProvider virtual void Start(const AutocompleteInput& input, bool minimal_changes); @@ -252,6 +257,9 @@ class SearchProvider : public AutocompleteProvider, int relevance, bool is_keyword); + // Updates the value of |done_| from the internal state. + void UpdateDone(); + // Should we query for suggest results immediately? This is normally false, // but may be set to true during testing. static bool query_suggest_immediately_; @@ -295,6 +303,9 @@ class SearchProvider : public AutocompleteProvider, // Whether suggest_results_ is valid. bool have_suggest_results_; + // Has FinalizeInstantQuery been invoked since the last |Start|? + bool instant_finalized_; + DISALLOW_COPY_AND_ASSIGN(SearchProvider); }; |