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

Unified Diff: components/omnibox/autocomplete_provider.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: Created 6 years 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: components/omnibox/autocomplete_provider.h
diff --git a/components/omnibox/autocomplete_provider.h b/components/omnibox/autocomplete_provider.h
index 9c784ba563924f0ec8613fcab84352b7e21f2c1f..eab34797488dd6f90dd050d1f9dfc21be5eb908c 100644
--- a/components/omnibox/autocomplete_provider.h
+++ b/components/omnibox/autocomplete_provider.h
@@ -197,6 +197,9 @@ class AutocompleteProvider
// Returns this provider's type.
Type type() const { return type_; }
+ // Returns whether the provider should be used when the omnibox is focused.
Peter Kasting 2014/12/30 21:18:23 Nit: How about this comment and name: // Return
jif 2014/12/31 19:02:26 Done.
+ virtual bool ActivatedOnOmniboxFocus() const;
+
// Returns a string describing this provider's type.
const char* GetName() const;

Powered by Google App Engine
This is Rietveld 408576698