OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // Avatar access. | 24 // Avatar access. |
25 extern const char kGAIAPictureFileName[]; | 25 extern const char kGAIAPictureFileName[]; |
26 extern const char kHighResAvatarFolderName[]; | 26 extern const char kHighResAvatarFolderName[]; |
27 | 27 |
28 // Avatar formatting. | 28 // Avatar formatting. |
29 extern const int kAvatarIconWidth; | 29 extern const int kAvatarIconWidth; |
30 extern const int kAvatarIconHeight; | 30 extern const int kAvatarIconHeight; |
31 extern const SkColor kAvatarTutorialBackgroundColor; | 31 extern const SkColor kAvatarTutorialBackgroundColor; |
32 extern const SkColor kAvatarTutorialContentTextColor; | 32 extern const SkColor kAvatarTutorialContentTextColor; |
33 extern const SkColor kAvatarBubbleAccountsBackgroundColor; | 33 extern const SkColor kAvatarBubbleAccountsBackgroundColor; |
| 34 extern const SkColor kAvatarBubbleGaiaBackgroundColor; |
| 35 extern const SkColor kUserManagerBackgroundColor; |
34 | 36 |
35 // Gets the number of default avatar icons that exist. | 37 // Gets the number of default avatar icons that exist. |
36 size_t GetDefaultAvatarIconCount(); | 38 size_t GetDefaultAvatarIconCount(); |
37 | 39 |
38 // Gets the index for the (grey silhouette) avatar used as a placeholder. | 40 // Gets the index for the (grey silhouette) avatar used as a placeholder. |
39 int GetPlaceholderAvatarIndex(); | 41 int GetPlaceholderAvatarIndex(); |
40 | 42 |
41 // Gets the resource ID of the placeholder avatar icon. | 43 // Gets the resource ID of the placeholder avatar icon. |
42 int GetPlaceholderAvatarIconResourceID(); | 44 int GetPlaceholderAvatarIconResourceID(); |
43 | 45 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 int dst_width, | 90 int dst_width, |
89 int dst_height); | 91 int dst_height); |
90 | 92 |
91 // Returns a bitmap with a couple of columns shaved off so it is more square, | 93 // Returns a bitmap with a couple of columns shaved off so it is more square, |
92 // so that when resized to a square aspect ratio it looks pretty. | 94 // so that when resized to a square aspect ratio it looks pretty. |
93 SkBitmap GetAvatarIconAsSquare(const SkBitmap& source_bitmap, int scale_factor); | 95 SkBitmap GetAvatarIconAsSquare(const SkBitmap& source_bitmap, int scale_factor); |
94 | 96 |
95 } // namespace profiles | 97 } // namespace profiles |
96 | 98 |
97 #endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ | 99 #endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ |
OLD | NEW |