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

Unified Diff: chrome/browser/profiles/profile_avatar_icon_util.h

Issue 212603011: Newly created profiles should have the grey silhouette as avatar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor parallel arrays; trungl's suggestions Created 6 years, 8 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/profiles/profile_avatar_icon_util.h
diff --git a/chrome/browser/profiles/profile_avatar_icon_util.h b/chrome/browser/profiles/profile_avatar_icon_util.h
index ea26029d85cbc567abb1bf57006b64b6f99c78dc..cf29a10ba4f57127a3e67d0da7221c905460546e 100644
--- a/chrome/browser/profiles/profile_avatar_icon_util.h
+++ b/chrome/browser/profiles/profile_avatar_icon_util.h
@@ -24,6 +24,12 @@ extern const SkColor kAvatarTutorialContentTextColor;
// Gets the number of default avatar icons that exist.
size_t GetDefaultAvatarIconCount();
+// Gets the index for the (grey silhouette) avatar used as a placeholder.
+int GetPlaceholderAvatarIndex();
+
+// Gets the resource ID of the placeholder avatar icon.
+int GetPlaceholderAvatarIconResourceID();
+
// Gets the number of generic avatar icons that exist.
size_t GetGenericAvatarIconCount();
@@ -31,7 +37,10 @@ size_t GetGenericAvatarIconCount();
int GetDefaultAvatarIconResourceIDAtIndex(size_t index);
// Gets the resource filename of the default avatar icon at |index|.
-const char* GetDefaultAvatarIconFileNameAtIndex(size_t index);
+const char* const GetDefaultAvatarIconFileNameAtIndex(size_t index);
+
+// Gets the file name of an avatar that has no high res version.
+const char* GetNoHighResAvatarFileName();
// Returns a URL for the default avatar icon with specified index.
std::string GetDefaultAvatarIconUrl(size_t index);

Powered by Google App Engine
This is Rietveld 408576698