OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_service.h" | 5 #include "chrome/browser/themes/theme_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/string_split.h" | 8 #include "base/string_split.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 #endif // USE_AURA | 76 #endif // USE_AURA |
77 const SkColor kDefaultColorFrameIncognito = SkColorSetRGB(83, 106, 139); | 77 const SkColor kDefaultColorFrameIncognito = SkColorSetRGB(83, 106, 139); |
78 const SkColor kDefaultColorFrameIncognitoInactive = | 78 const SkColor kDefaultColorFrameIncognitoInactive = |
79 SkColorSetRGB(126, 139, 156); | 79 SkColorSetRGB(126, 139, 156); |
80 #if defined(OS_MACOSX) | 80 #if defined(OS_MACOSX) |
81 const SkColor kDefaultColorToolbar = SkColorSetRGB(230, 230, 230); | 81 const SkColor kDefaultColorToolbar = SkColorSetRGB(230, 230, 230); |
82 #else | 82 #else |
83 const SkColor kDefaultColorToolbar = SkColorSetRGB(223, 223, 223); | 83 const SkColor kDefaultColorToolbar = SkColorSetRGB(223, 223, 223); |
84 #endif | 84 #endif |
85 #if defined(USE_AURA) | 85 #if defined(USE_AURA) |
86 const SkColor kDefaultColorToolbarSeparator = SkColorSetRGB(128, 128, 128); | 86 const SkColor kDefaultColorToolbarSeparator = SkColorSetRGB(136, 136, 136); |
87 #else | 87 #else |
88 const SkColor kDefaultColorToolbarSeparator = SkColorSetRGB(182, 186, 192); | 88 const SkColor kDefaultColorToolbarSeparator = SkColorSetRGB(182, 186, 192); |
89 #endif | 89 #endif |
90 const SkColor kDefaultColorTabText = SK_ColorBLACK; | 90 const SkColor kDefaultColorTabText = SK_ColorBLACK; |
91 #if defined(OS_MACOSX) | 91 #if defined(OS_MACOSX) |
92 const SkColor kDefaultColorBackgroundTabText = SK_ColorBLACK; | 92 const SkColor kDefaultColorBackgroundTabText = SK_ColorBLACK; |
93 #else | 93 #else |
94 const SkColor kDefaultColorBackgroundTabText = SkColorSetRGB(64, 64, 64); | 94 const SkColor kDefaultColorBackgroundTabText = SkColorSetRGB(64, 64, 64); |
95 #endif | 95 #endif |
96 const SkColor kDefaultColorBookmarkText = SK_ColorBLACK; | 96 const SkColor kDefaultColorBookmarkText = SK_ColorBLACK; |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 void ThemeService::OnInfobarDisplayed() { | 673 void ThemeService::OnInfobarDisplayed() { |
674 number_of_infobars_++; | 674 number_of_infobars_++; |
675 } | 675 } |
676 | 676 |
677 void ThemeService::OnInfobarDestroyed() { | 677 void ThemeService::OnInfobarDestroyed() { |
678 number_of_infobars_--; | 678 number_of_infobars_--; |
679 | 679 |
680 if (number_of_infobars_ == 0) | 680 if (number_of_infobars_ == 0) |
681 RemoveUnusedThemes(); | 681 RemoveUnusedThemes(); |
682 } | 682 } |
OLD | NEW |