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

Side by Side Diff: chrome/browser/themes/theme_properties.cc

Issue 23614007: Use the normal Google logo for managed users for --enable-instant-extended-api (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed mac compile failure Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/themes/theme_properties.h ('k') | chrome/browser/themes/theme_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/themes/theme_properties.h" 5 #include "chrome/browser/themes/theme_properties.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_split.h" 8 #include "base/strings/string_split.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "chrome/browser/themes/browser_theme_pack.h" 10 #include "chrome/browser/themes/browser_theme_pack.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Default tints. 64 // Default tints.
65 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 }; 65 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 };
66 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 }; 66 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 };
67 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f }; 67 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f };
68 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f }; 68 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f };
69 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; 69 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f };
70 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 }; 70 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 };
71 71
72 // Default display properties. 72 // Default display properties.
73 const int kDefaultDisplayPropertyNTPAlignment = 73 const int kDefaultDisplayPropertyNTPAlignment =
74 ThemeProperties::ALIGN_BOTTOM; 74 ThemeProperties::ALIGN_CENTER;
75 const int kDefaultDisplayPropertyNTPTiling = 75 const int kDefaultDisplayPropertyNTPTiling =
76 ThemeProperties::NO_REPEAT; 76 ThemeProperties::NO_REPEAT;
77 const int kDefaultDisplayPropertyNTPInverseLogo = 0; 77 // By default, we do not use the ntp alternate logo.
78 const int kDefaultDisplayPropertyNTPAlternateLogo = 0;
78 79
79 // ---------------------------------------------------------------------------- 80 // ----------------------------------------------------------------------------
80 // Defaults for properties which are not stored in the browser theme pack. 81 // Defaults for properties which are not stored in the browser theme pack.
81 82
82 const SkColor kDefaultColorControlBackground = SK_ColorWHITE; 83 const SkColor kDefaultColorControlBackground = SK_ColorWHITE;
83 const SkColor kDefaultColorToolbarSeparator = SkColorSetRGB(170, 170, 171); 84 const SkColor kDefaultColorToolbarSeparator = SkColorSetRGB(170, 170, 171);
84 85
85 #if defined(OS_MACOSX) 86 #if defined(OS_MACOSX)
86 const SkColor kDefaultColorToolbarButtonStroke = SkColorSetARGB(75, 81, 81, 81); 87 const SkColor kDefaultColorToolbarButtonStroke = SkColorSetARGB(75, 81, 81, 81);
87 const SkColor kDefaultColorToolbarButtonStrokeInactive = 88 const SkColor kDefaultColorToolbarButtonStrokeInactive =
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 case COLOR_TOOLBAR_STROKE_INACTIVE: 296 case COLOR_TOOLBAR_STROKE_INACTIVE:
296 return kDefaultColorToolbarStrokeInactive; 297 return kDefaultColorToolbarStrokeInactive;
297 #endif 298 #endif
298 default: 299 default:
299 // Return a debugging red color. 300 // Return a debugging red color.
300 return SK_ColorRED; 301 return SK_ColorRED;
301 } 302 }
302 } 303 }
303 304
304 // static 305 // static
305 bool ThemeProperties::GetDefaultDisplayProperty(int id, int* result) { 306 int ThemeProperties::GetDefaultDisplayProperty(int id) {
306 switch (id) { 307 switch (id) {
307 case NTP_BACKGROUND_ALIGNMENT: 308 case NTP_BACKGROUND_ALIGNMENT:
308 *result = kDefaultDisplayPropertyNTPAlignment; 309 return kDefaultDisplayPropertyNTPAlignment;
309 return true;
310 case NTP_BACKGROUND_TILING: 310 case NTP_BACKGROUND_TILING:
311 *result = kDefaultDisplayPropertyNTPTiling; 311 return kDefaultDisplayPropertyNTPTiling;
312 return true;
313 case NTP_LOGO_ALTERNATE: 312 case NTP_LOGO_ALTERNATE:
314 *result = kDefaultDisplayPropertyNTPInverseLogo; 313 return kDefaultDisplayPropertyNTPAlternateLogo;
315 return true;
316 } 314 }
317 315
318 return false; 316 return -1;
319 } 317 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_properties.h ('k') | chrome/browser/themes/theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698