| 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 19 matching lines...) Expand all Loading... |
| 30 std::string GetDefaultImageUrl(int index); | 30 std::string GetDefaultImageUrl(int index); |
| 31 | 31 |
| 32 // Checks if the given URL points to one of the default images. If it is, | 32 // Checks if the given URL points to one of the default images. If it is, |
| 33 // returns true and its index through |image_id|. If not, returns false. | 33 // returns true and its index through |image_id|. If not, returns false. |
| 34 bool IsDefaultImageUrl(const std::string& url, int* image_id); | 34 bool IsDefaultImageUrl(const std::string& url, int* image_id); |
| 35 | 35 |
| 36 // Returns bitmap of default user image with specified index. | 36 // Returns bitmap of default user image with specified index. |
| 37 const gfx::ImageSkia& GetDefaultImage(int index); | 37 const gfx::ImageSkia& GetDefaultImage(int index); |
| 38 | 38 |
| 39 // Returns a description of a default user image with specified index. | 39 // Returns a description of a default user image with specified index. |
| 40 string16 GetDefaultImageDescription(int index); | 40 base::string16 GetDefaultImageDescription(int index); |
| 41 | 41 |
| 42 // Resource IDs of default user images. | 42 // Resource IDs of default user images. |
| 43 extern const int kDefaultImageResourceIDs[]; | 43 extern const int kDefaultImageResourceIDs[]; |
| 44 | 44 |
| 45 // String IDs of author names for default user images. | 45 // String IDs of author names for default user images. |
| 46 extern const int kDefaultImageAuthorIDs[]; | 46 extern const int kDefaultImageAuthorIDs[]; |
| 47 | 47 |
| 48 // String IDs of websites for default user images. | 48 // String IDs of websites for default user images. |
| 49 extern const int kDefaultImageWebsiteIDs[]; | 49 extern const int kDefaultImageWebsiteIDs[]; |
| 50 | 50 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 77 | 77 |
| 78 // Number of possible histogram values for user images. | 78 // Number of possible histogram values for user images. |
| 79 extern const int kHistogramImagesCount; | 79 extern const int kHistogramImagesCount; |
| 80 | 80 |
| 81 // Returns the histogram value corresponding to the given default image index. | 81 // Returns the histogram value corresponding to the given default image index. |
| 82 int GetDefaultImageHistogramValue(int index); | 82 int GetDefaultImageHistogramValue(int index); |
| 83 | 83 |
| 84 } // namespace chromeos | 84 } // namespace chromeos |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ | 86 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEFAULT_USER_IMAGES_H_ |
| OLD | NEW |