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

Unified Diff: chrome/browser/ui/website_settings/website_settings_ui.h

Issue 10534138: Add icons to the views Website Settings UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Comments (sky) Created 8 years, 6 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/ui/website_settings/website_settings_ui.h
diff --git a/chrome/browser/ui/website_settings/website_settings_ui.h b/chrome/browser/ui/website_settings/website_settings_ui.h
index 648e5c73d7babf0f1525ed4aafc4c9909ca59fe5..b28711bfda92142c6d22a103c538f33d340b5d7b 100644
--- a/chrome/browser/ui/website_settings/website_settings_ui.h
+++ b/chrome/browser/ui/website_settings/website_settings_ui.h
@@ -25,6 +25,10 @@ namespace content {
struct SSLStatus;
}
+namespace gfx {
+class Image;
+}
+
// The class |WebsiteSettingsUI| specifies the platform independent
// interface of the website settings UI. The website settings UI displays
// information and controls for site specific data (local stored objects like
@@ -88,6 +92,18 @@ class WebsiteSettingsUI {
// Returns the resource ID of the UI string for the given permission |value|.
static int PermissionValueToUIStringID(ContentSetting value);
+ // Returns the icon for the given permission |type| and |setting|.
+ static const gfx::Image& GetPermissionIcon(ContentSettingsType type,
+ ContentSetting setting);
tfarina 2012/06/14 19:59:32 nit: wrong indentation here!
+
+ // Returns the identity icon for the given identity |status|.
+ static const gfx::Image& GetIdentityIcon(
+ WebsiteSettings::SiteIdentityStatus status);
+
+ // Returns the connection icon for the given connection |status|.
+ static const gfx::Image& GetConnectionIcon(
+ WebsiteSettings::SiteConnectionStatus status);
+
// Sets cookie information.
virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0;

Powered by Google App Engine
This is Rietveld 408576698