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

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

Issue 10836066: [cros] Define a range of stock user images availables for selection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 8 years, 5 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/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 1e618045eeefb0088be89a89f6689162958bef10..6b314181a8c929bd973880b6d0fc417d2d788341 100644
--- a/chrome/browser/chromeos/login/default_user_images.h
+++ b/chrome/browser/chromeos/login/default_user_images.h
@@ -40,22 +40,36 @@ extern const int kDefaultImageResources[];
// Number of default images.
extern const int kDefaultImagesCount;
-// Image index to be used in histograms when user image is taken from file.
+// The starting index of default images available for selection. Note that
+// existing users may have images with smaller indices.
+extern const int kFirstDefaultImageIndex;
+
+/// Histogram values. ////////////////////////////////////////////////////////
+
+// Histogram value for user image taken from file.
extern const int kHistogramImageFromFile;
-// Image index to be used in histograms when user image is taken from camera.
+// Histogram value for user image taken from camera.
extern const int kHistogramImageFromCamera;
-// Image index to be used in histograms when user selects a previously used
-// image from camera/file.
+// Histogram value a previously used image from camera/file.
extern const int kHistogramImageOld;
-// Image index to be used in histograms when user image is taken from profile.
+// Histogram value for user image from G+ profile.
extern const int kHistogramImageFromProfile;
-// Number of possible user image indices to be used in histograms.
+// Histogram value for user video (animated avatar) from camera.
+extern const int kHistogramVideoFromCamera;
+
+// Histogram value for user video from file.
+extern const int kHistogramVideoFromFile;
+
+// Number of possible histogram values for user images.
extern const int kHistogramImagesCount;
+// Returns the histogram value corresponding to the given default image index.
+int GetDefaultImageHistogramValue(int index);
+
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_
« 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