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

Unified Diff: chrome/browser/search_engines/template_url_prepopulate_data.h

Issue 10828401: Add a getter for search provider logos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bad merge. Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url_prepopulate_data.h
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.h b/chrome/browser/search_engines/template_url_prepopulate_data.h
index 4d676fb6fe841c313695f930bd56e1f9baf00ef7..c41e54615b7a3a26dc2157c50d8a095352c0944c 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.h
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.h
@@ -21,6 +21,12 @@ namespace TemplateURLPrepopulateData {
extern const int kMaxPrepopulatedEngineID;
+// Sizes at which search provider logos are available.
+enum LogoSize {
+ LOGO_100_PERCENT,
+ LOGO_200_PERCENT,
+};
+
#if defined(OS_ANDROID)
// This must be called early only once. |country_code| is the country code at
@@ -57,6 +63,12 @@ TemplateURL* GetPrepopulatedDefaultSearch(Profile* profile);
// NOTE: Must be called on the UI thread.
SearchEngineType GetEngineType(const std::string& url);
+// Returns the logo at the specified |size| for |template_url|. If no logo is
+// known, this will return an empty GURL.
+//
+// NOTE: Must be called on the UI thread.
+GURL GetLogoURL(const TemplateURL& template_url, LogoSize size);
+
} // namespace TemplateURLPrepopulateData
#endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698