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

Side by Side 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, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/default_user_images.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_
7 7
8 #include <cstddef> // for size_t 8 #include <cstddef> // for size_t
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 // Returns bitmap of default user image with specified index. 34 // Returns bitmap of default user image with specified index.
35 const gfx::ImageSkia& GetDefaultImage(int index); 35 const gfx::ImageSkia& GetDefaultImage(int index);
36 36
37 // Resource IDs of default user images. 37 // Resource IDs of default user images.
38 extern const int kDefaultImageResources[]; 38 extern const int kDefaultImageResources[];
39 39
40 // Number of default images. 40 // Number of default images.
41 extern const int kDefaultImagesCount; 41 extern const int kDefaultImagesCount;
42 42
43 // Image index to be used in histograms when user image is taken from file. 43 // The starting index of default images available for selection. Note that
44 // existing users may have images with smaller indices.
45 extern const int kFirstDefaultImageIndex;
46
47 /// Histogram values. ////////////////////////////////////////////////////////
48
49 // Histogram value for user image taken from file.
44 extern const int kHistogramImageFromFile; 50 extern const int kHistogramImageFromFile;
45 51
46 // Image index to be used in histograms when user image is taken from camera. 52 // Histogram value for user image taken from camera.
47 extern const int kHistogramImageFromCamera; 53 extern const int kHistogramImageFromCamera;
48 54
49 // Image index to be used in histograms when user selects a previously used 55 // Histogram value a previously used image from camera/file.
50 // image from camera/file.
51 extern const int kHistogramImageOld; 56 extern const int kHistogramImageOld;
52 57
53 // Image index to be used in histograms when user image is taken from profile. 58 // Histogram value for user image from G+ profile.
54 extern const int kHistogramImageFromProfile; 59 extern const int kHistogramImageFromProfile;
55 60
56 // Number of possible user image indices to be used in histograms. 61 // Histogram value for user video (animated avatar) from camera.
62 extern const int kHistogramVideoFromCamera;
63
64 // Histogram value for user video from file.
65 extern const int kHistogramVideoFromFile;
66
67 // Number of possible histogram values for user images.
57 extern const int kHistogramImagesCount; 68 extern const int kHistogramImagesCount;
58 69
70 // Returns the histogram value corresponding to the given default image index.
71 int GetDefaultImageHistogramValue(int index);
72
59 } // namespace chromeos 73 } // namespace chromeos
60 74
61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_
OLDNEW
« 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