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

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

Issue 10828401: Add a getter for search provider logos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/search_engines/template_url.h
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h
index 4241f529d46fc025ec40df4b17eca3fd4d4a5bc7..e41f35471527a6c2b0072b95806a8aed0c627efa 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -269,6 +269,11 @@ struct TemplateURLData {
std::string suggestions_url;
std::string instant_url;
+ // URLs pointing to regular and high-DPI versions of logos for this search
msw 2012/08/21 00:37:17 nit: "Optional logo image URLs at 100% and 200% sc
samarth 2012/08/22 03:02:07 Done.
+ // provider. Both may be empty.
+ GURL logo_100_percent_url;
+ GURL logo_200_percent_url;
+
// Optional favicon for the TemplateURL.
GURL favicon_url;
@@ -369,6 +374,12 @@ class TemplateURL {
const std::string& url() const { return data_.url(); }
const std::string& suggestions_url() const { return data_.suggestions_url; }
const std::string& instant_url() const { return data_.instant_url; }
+ const GURL& logo_100_percent_url() const {
+ return data_.logo_100_percent_url;
+ }
+ const GURL& logo_200_percent_url() const {
+ return data_.logo_200_percent_url;
+ }
const GURL& favicon_url() const { return data_.favicon_url; }
const GURL& originating_url() const { return data_.originating_url; }

Powered by Google App Engine
This is Rietveld 408576698