| 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/file_util.h" | 7 #include "base/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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } // namespace | 177 } // namespace |
| 178 | 178 |
| 179 namespace profiles { | 179 namespace profiles { |
| 180 | 180 |
| 181 struct IconResourceInfo { | 181 struct IconResourceInfo { |
| 182 int resource_id; | 182 int resource_id; |
| 183 const char* filename; | 183 const char* filename; |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 const int kAvatarIconWidth = 38; | 186 const int kAvatarIconWidth = 38; |
| 187 const int kAvatarIconHeight = 38; | 187 const int kAvatarIconHeight = 31; |
| 188 const SkColor kAvatarTutorialBackgroundColor = SkColorSetRGB(0x42, 0x85, 0xf4); | 188 const SkColor kAvatarTutorialBackgroundColor = SkColorSetRGB(0x42, 0x85, 0xf4); |
| 189 const SkColor kAvatarTutorialContentTextColor = SkColorSetRGB(0xc6, 0xda, 0xfc); | 189 const SkColor kAvatarTutorialContentTextColor = SkColorSetRGB(0xc6, 0xda, 0xfc); |
| 190 const SkColor kAvatarBubbleAccountsBackgroundColor = | 190 const SkColor kAvatarBubbleAccountsBackgroundColor = |
| 191 SkColorSetRGB(0xf3, 0xf3, 0xf3); | 191 SkColorSetRGB(0xf3, 0xf3, 0xf3); |
| 192 | 192 |
| 193 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_PROFILE_AVATAR_"; | 193 const char kDefaultUrlPrefix[] = "chrome://theme/IDR_PROFILE_AVATAR_"; |
| 194 const char kGAIAPictureFileName[] = "Google Profile Picture.png"; | 194 const char kGAIAPictureFileName[] = "Google Profile Picture.png"; |
| 195 const char kHighResAvatarFolderName[] = "Avatars"; | 195 const char kHighResAvatarFolderName[] = "Avatars"; |
| 196 | 196 |
| 197 // This avatar does not exist on the server, the high res copy is in the build. | 197 // This avatar does not exist on the server, the high res copy is in the build. |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 int_value >= static_cast<int>(kDefaultAvatarIconsCount)) | 359 int_value >= static_cast<int>(kDefaultAvatarIconsCount)) |
| 360 return false; | 360 return false; |
| 361 *icon_index = int_value; | 361 *icon_index = int_value; |
| 362 return true; | 362 return true; |
| 363 } | 363 } |
| 364 | 364 |
| 365 return false; | 365 return false; |
| 366 } | 366 } |
| 367 | 367 |
| 368 } // namespace profiles | 368 } // namespace profiles |
| OLD | NEW |