| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 17 matching lines...) Expand all Loading... |
| 28 std::string GetDefaultImageUrl(int index); | 28 std::string GetDefaultImageUrl(int index); |
| 29 | 29 |
| 30 // Checks if the given URL points to one of the default images. If it is, | 30 // Checks if the given URL points to one of the default images. If it is, |
| 31 // returns true and its index through |image_id|. If not, returns false. | 31 // returns true and its index through |image_id|. If not, returns false. |
| 32 bool IsDefaultImageUrl(const std::string url, int* image_id); | 32 bool IsDefaultImageUrl(const std::string url, int* image_id); |
| 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 kDefaultImageResourceIDs[]; |
| 39 |
| 40 // String IDs of author names for default user images. |
| 41 extern const int kDefaultImageAuthorIDs[]; |
| 42 |
| 43 // String IDs of websites for default user images. |
| 44 extern const int kDefaultImageWebsiteIDs[]; |
| 39 | 45 |
| 40 // Number of default images. | 46 // Number of default images. |
| 41 extern const int kDefaultImagesCount; | 47 extern const int kDefaultImagesCount; |
| 42 | 48 |
| 43 // The starting index of default images available for selection. Note that | 49 // The starting index of default images available for selection. Note that |
| 44 // existing users may have images with smaller indices. | 50 // existing users may have images with smaller indices. |
| 45 extern const int kFirstDefaultImageIndex; | 51 extern const int kFirstDefaultImageIndex; |
| 46 | 52 |
| 47 /// Histogram values. //////////////////////////////////////////////////////// | 53 /// Histogram values. //////////////////////////////////////////////////////// |
| 48 | 54 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 66 | 72 |
| 67 // Number of possible histogram values for user images. | 73 // Number of possible histogram values for user images. |
| 68 extern const int kHistogramImagesCount; | 74 extern const int kHistogramImagesCount; |
| 69 | 75 |
| 70 // Returns the histogram value corresponding to the given default image index. | 76 // Returns the histogram value corresponding to the given default image index. |
| 71 int GetDefaultImageHistogramValue(int index); | 77 int GetDefaultImageHistogramValue(int index); |
| 72 | 78 |
| 73 } // namespace chromeos | 79 } // namespace chromeos |
| 74 | 80 |
| 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ | 81 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ |
| OLD | NEW |