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

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

Issue 15178008: Factor out icon ID logic in WebsiteSettingsUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment update Created 7 years, 7 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/ui/website_settings/website_settings_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e3162890a4e296808ab603cb26747becaabf34da..f3d5fbc43f468116fcbffa7b9d20c42ad2150e9f 100644
--- a/chrome/browser/ui/website_settings/website_settings_ui.h
+++ b/chrome/browser/ui/website_settings/website_settings_ui.h
@@ -114,18 +114,32 @@ class WebsiteSettingsUI {
ContentSetting default_setting,
content_settings::SettingSource source);
+ // Returns the icon resource ID for the given permission |type| and |setting|.
+ static int GetPermissionIconID(ContentSettingsType type,
+ ContentSetting setting);
+
// Returns the icon for the given permission |type| and |setting|.
static const gfx::Image& GetPermissionIcon(ContentSettingsType type,
ContentSetting setting);
+ // Returns the identity icon ID for the given identity |status|.
+ static int GetIdentityIconID(WebsiteSettings::SiteIdentityStatus status);
+
// Returns the identity icon for the given identity |status|.
static const gfx::Image& GetIdentityIcon(
WebsiteSettings::SiteIdentityStatus status);
+ // Returns the connection icon ID for the given connection |status|.
+ static int GetConnectionIconID(
+ WebsiteSettings::SiteConnectionStatus status);
+
// Returns the connection icon for the given connection |status|.
static const gfx::Image& GetConnectionIcon(
WebsiteSettings::SiteConnectionStatus status);
+ // Returns the icon ID to show along with the first visit information.
+ static int GetFirstVisitIconID(const string16& first_visit);
+
// Returns the icon to show along with the first visit information.
static const gfx::Image& GetFirstVisitIcon(const string16& first_visit);
« no previous file with comments | « no previous file | chrome/browser/ui/website_settings/website_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698