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

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

Issue 820063002: Add support for providers called when the omnibox is focused. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build. Created 5 years, 11 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_controller.h
diff --git a/chrome/browser/autocomplete/autocomplete_controller.h b/chrome/browser/autocomplete/autocomplete_controller.h
index e834777568883693787dcf4c8e4b69c7e797b42a..cd808884fa33da2378be28b0cec587e9a80aa893 100644
--- a/chrome/browser/autocomplete/autocomplete_controller.h
+++ b/chrome/browser/autocomplete/autocomplete_controller.h
@@ -80,10 +80,11 @@ class AutocompleteController : public AutocompleteProviderListener {
// If |clear_result| is true, the controller will also erase the result set.
void Stop(bool clear_result);
- // Begin asynchronous fetch of zero-suggest suggestions. The |input| should
- // contain current omnibox input, the URL of the page we are on, and
- // that page's classification.
- void StartZeroSuggest(const AutocompleteInput& input);
+ // Called when the omnibox is focused while no existing user input is in
+ // progress. This is used to trigger any providers which want to provide
+ // matches in response to focus. See
+ // AutocompleteProvider::ProvidesMatchesOnOmniboxFocus().
+ void OnOmniboxFocused(const AutocompleteInput& input);
// Asks the relevant provider to delete |match|, and ensures observers are
// notified of resulting changes immediately. This should only be called when

Powered by Google App Engine
This is Rietveld 408576698