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

Unified Diff: chrome/browser/chromeos/login/default_user_images.h

Issue 8541002: [cros] Initial user image loading and repeated profile image loading fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace Created 9 years, 1 month 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/chromeos/login/default_user_images.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/default_user_images.h
diff --git a/chrome/browser/chromeos/login/default_user_images.h b/chrome/browser/chromeos/login/default_user_images.h
index b0a96e45b06e922771aec9d3d68c936386883cf8..1950a238a17e85a0fe0d3154e9cc995edbd78eed 100644
--- a/chrome/browser/chromeos/login/default_user_images.h
+++ b/chrome/browser/chromeos/login/default_user_images.h
@@ -9,23 +9,30 @@
#include <cstddef> // for size_t
#include <string>
+class SkBitmap;
+
namespace chromeos {
// Returns path to default user image with specified index.
// The path is used in Local State to distinguish default images.
+// This function is obsolete and is preserved only for compatibility with older
+// profiles which don't user separate image index and path.
std::string GetDefaultImagePath(int index);
// Checks if given path is one of the default ones. If it is, returns true
// and its index through |image_id|. If not, returns false.
bool IsDefaultImagePath(const std::string& path, int* image_id);
-// Returns URL to default user image with specifided index.
+// Returns URL to default user image with specified index.
std::string GetDefaultImageUrl(int index);
// Checks if the given URL points to one of the default images. If it is,
// returns true and its index through |image_id|. If not, returns false.
bool IsDefaultImageUrl(const std::string url, int* image_id);
+// Returns bitmap of default user image with specified index.
+const SkBitmap& GetDefaultImage(int index);
+
// Resource IDs of default user images.
extern const int kDefaultImageResources[];
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/default_user_images.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698