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

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

Issue 637083002: 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: rebased 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);
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
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
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