Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/profiles/profile_avatar_icon_util.cc

Issue 654123004: Revert of Sets the default background color of inline signin and user manager to grey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_avatar_icon_util.h ('k') | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698