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

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

Issue 2066093003: Refactor fetching profile avatar icons and labels repeated md-settings & md-user-manager (C++) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@avatar-selector-refactor
Patch Set: rebase Created 4 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_avatar_icon_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8d7ed521b60af556c9d5d4960f0c6c22e24269a4..c7a4ff29bc3aebb862a0111e3d5ccca3030519ea 100644
--- a/chrome/browser/profiles/profile_avatar_icon_util.h
+++ b/chrome/browser/profiles/profile_avatar_icon_util.h
@@ -7,12 +7,14 @@
#include <stddef.h>
+#include <memory>
#include <string>
#include "third_party/skia/include/core/SkColor.h"
namespace base {
class FilePath;
+class ListValue;
}
namespace gfx {
@@ -107,6 +109,11 @@ bool IsDefaultAvatarIconUrl(const std::string& icon_url, size_t *icon_index);
bool GetImageURLWithThumbnailSize(
const GURL& old_url, int thumbnail_size, GURL* new_url);
+// Returns a list of dictionaries containing the default profile avatar icons as
+// well as avatar labels used for accessibility purposes. The list is ordered
+// according to the avatars' default order.
+std::unique_ptr<base::ListValue> GetDefaultProfileAvatarIconsAndLabels();
+
} // namespace profiles
#endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_avatar_icon_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698