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 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 5 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 int resource_id; | 183 int resource_id; |
184 const char* filename; | 184 const char* filename; |
185 }; | 185 }; |
186 | 186 |
187 const int kAvatarIconWidth = 38; | 187 const int kAvatarIconWidth = 38; |
188 const int kAvatarIconHeight = 31; | 188 const int kAvatarIconHeight = 31; |
189 const SkColor kAvatarTutorialBackgroundColor = SkColorSetRGB(0x42, 0x85, 0xf4); | 189 const SkColor kAvatarTutorialBackgroundColor = SkColorSetRGB(0x42, 0x85, 0xf4); |
190 const SkColor kAvatarTutorialContentTextColor = SkColorSetRGB(0xc6, 0xda, 0xfc); | 190 const SkColor kAvatarTutorialContentTextColor = SkColorSetRGB(0xc6, 0xda, 0xfc); |
191 const SkColor kAvatarBubbleAccountsBackgroundColor = | 191 const SkColor kAvatarBubbleAccountsBackgroundColor = |
192 SkColorSetRGB(0xf3, 0xf3, 0xf3); | 192 SkColorSetRGB(0xf3, 0xf3, 0xf3); |
193 const SkColor kAvatarBubbleGaiaBackgroundColor = | |
194 SkColorSetRGB(0xf5, 0xf5, 0xf5); | |
195 const SkColor kUserManagerBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); | |
196 | 193 |
197 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_PROFILE_AVATAR_"; | 194 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_PROFILE_AVATAR_"; |
198 const char kGAIAPictureFileName[] = "Google Profile Picture.png"; | 195 const char kGAIAPictureFileName[] = "Google Profile Picture.png"; |
199 const char kHighResAvatarFolderName[] = "Avatars"; | 196 const char kHighResAvatarFolderName[] = "Avatars"; |
200 | 197 |
201 // This avatar does not exist on the server, the high res copy is in the build. | 198 // This avatar does not exist on the server, the high res copy is in the build. |
202 const char kNoHighResAvatar[] = "NothingToDownload"; | 199 const char kNoHighResAvatar[] = "NothingToDownload"; |
203 | 200 |
204 // The size of the function-static kDefaultAvatarIconResources array below. | 201 // The size of the function-static kDefaultAvatarIconResources array below. |
205 const size_t kDefaultAvatarIconsCount = 27; | 202 const size_t kDefaultAvatarIconsCount = 27; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 int_value >= static_cast<int>(kDefaultAvatarIconsCount)) | 379 int_value >= static_cast<int>(kDefaultAvatarIconsCount)) |
383 return false; | 380 return false; |
384 *icon_index = int_value; | 381 *icon_index = int_value; |
385 return true; | 382 return true; |
386 } | 383 } |
387 | 384 |
388 return false; | 385 return false; |
389 } | 386 } |
390 | 387 |
391 } // namespace profiles | 388 } // namespace profiles |
OLD | NEW |