| 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); |
| 193 | 196 |
| 194 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_PROFILE_AVATAR_"; | 197 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_PROFILE_AVATAR_"; |
| 195 const char kGAIAPictureFileName[] = "Google Profile Picture.png"; | 198 const char kGAIAPictureFileName[] = "Google Profile Picture.png"; |
| 196 const char kHighResAvatarFolderName[] = "Avatars"; | 199 const char kHighResAvatarFolderName[] = "Avatars"; |
| 197 | 200 |
| 198 // This avatar does not exist on the server, the high res copy is in the build. | 201 // This avatar does not exist on the server, the high res copy is in the build. |
| 199 const char kNoHighResAvatar[] = "NothingToDownload"; | 202 const char kNoHighResAvatar[] = "NothingToDownload"; |
| 200 | 203 |
| 201 // The size of the function-static kDefaultAvatarIconResources array below. | 204 // The size of the function-static kDefaultAvatarIconResources array below. |
| 202 const size_t kDefaultAvatarIconsCount = 27; | 205 const size_t kDefaultAvatarIconsCount = 27; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 int_value >= static_cast<int>(kDefaultAvatarIconsCount)) | 382 int_value >= static_cast<int>(kDefaultAvatarIconsCount)) |
| 380 return false; | 383 return false; |
| 381 *icon_index = int_value; | 384 *icon_index = int_value; |
| 382 return true; | 385 return true; |
| 383 } | 386 } |
| 384 | 387 |
| 385 return false; | 388 return false; |
| 386 } | 389 } |
| 387 | 390 |
| 388 } // namespace profiles | 391 } // namespace profiles |
| OLD | NEW |