| OLD | NEW |
| 1 // Copyright (c) 2011 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 |
| 11 namespace gfx { | 11 namespace gfx { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 27 // Returns URL to default user image with specified index. | 27 // Returns URL to default user image with specified index. |
| 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 // Returns a description of a default user image with specified index. |
| 38 std::string GetDefaultImageDescription(int index); |
| 39 |
| 37 // Resource IDs of default user images. | 40 // Resource IDs of default user images. |
| 38 extern const int kDefaultImageResources[]; | 41 extern const int kDefaultImageResources[]; |
| 39 | 42 |
| 40 // Number of default images. | 43 // Number of default images. |
| 41 extern const int kDefaultImagesCount; | 44 extern const int kDefaultImagesCount; |
| 42 | 45 |
| 43 // Image index to be used in histograms when user image is taken from file. | 46 // Image index to be used in histograms when user image is taken from file. |
| 44 extern const int kHistogramImageFromFile; | 47 extern const int kHistogramImageFromFile; |
| 45 | 48 |
| 46 // Image index to be used in histograms when user image is taken from camera. | 49 // Image index to be used in histograms when user image is taken from camera. |
| 47 extern const int kHistogramImageFromCamera; | 50 extern const int kHistogramImageFromCamera; |
| 48 | 51 |
| 49 // Image index to be used in histograms when user selects a previously used | 52 // Image index to be used in histograms when user selects a previously used |
| 50 // image from camera/file. | 53 // image from camera/file. |
| 51 extern const int kHistogramImageOld; | 54 extern const int kHistogramImageOld; |
| 52 | 55 |
| 53 // Image index to be used in histograms when user image is taken from profile. | 56 // Image index to be used in histograms when user image is taken from profile. |
| 54 extern const int kHistogramImageFromProfile; | 57 extern const int kHistogramImageFromProfile; |
| 55 | 58 |
| 56 // Number of possible user image indices to be used in histograms. | 59 // Number of possible user image indices to be used in histograms. |
| 57 extern const int kHistogramImagesCount; | 60 extern const int kHistogramImagesCount; |
| 58 | 61 |
| 59 } // namespace chromeos | 62 } // namespace chromeos |
| 60 | 63 |
| 61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ | 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ |
| OLD | NEW |