| 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/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
| 9 #include "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
| 10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 const SkColor kDefaultColorNTPSectionText = SK_ColorBLACK; | 120 const SkColor kDefaultColorNTPSectionText = SK_ColorBLACK; |
| 121 const SkColor kDefaultColorNTPSectionLink = SkColorSetRGB(6, 55, 116); | 121 const SkColor kDefaultColorNTPSectionLink = SkColorSetRGB(6, 55, 116); |
| 122 const SkColor kDefaultColorControlBackground = SK_ColorWHITE; | 122 const SkColor kDefaultColorControlBackground = SK_ColorWHITE; |
| 123 const SkColor kDefaultColorButtonBackground = SkColorSetARGB(0, 0, 0, 0); | 123 const SkColor kDefaultColorButtonBackground = SkColorSetARGB(0, 0, 0, 0); |
| 124 #if defined(OS_MACOSX) | 124 #if defined(OS_MACOSX) |
| 125 const SkColor kDefaultColorToolbarButtonStroke = SkColorSetARGB(75, 81, 81, 81); | 125 const SkColor kDefaultColorToolbarButtonStroke = SkColorSetARGB(75, 81, 81, 81); |
| 126 const SkColor kDefaultColorToolbarButtonStrokeInactive = | 126 const SkColor kDefaultColorToolbarButtonStrokeInactive = |
| 127 SkColorSetARGB(75, 99, 99, 99); | 127 SkColorSetARGB(75, 99, 99, 99); |
| 128 const SkColor kDefaultColorToolbarBezel = SkColorSetRGB(204, 204, 204); | 128 const SkColor kDefaultColorToolbarBezel = SkColorSetRGB(204, 204, 204); |
| 129 const SkColor kDefaultColorToolbarStroke = SkColorSetRGB(103, 103, 103); | 129 const SkColor kDefaultColorToolbarStroke = SkColorSetRGB(103, 103, 103); |
| 130 const SkColor kDefaultColorToolbarStrokeInactive = SkColorSetRGB(123, 123, 123); | 130 const SkColor kDefaultColorToolbarStrokeInactive = SkColorSetRGB(163, 163, 163); |
| 131 #endif | 131 #endif |
| 132 | 132 |
| 133 // Default tints. | 133 // Default tints. |
| 134 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 }; | 134 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 }; |
| 135 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 }; | 135 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 }; |
| 136 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f }; | 136 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f }; |
| 137 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f }; | 137 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f }; |
| 138 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; | 138 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; |
| 139 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 }; | 139 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 }; |
| 140 | 140 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 void ThemeService::OnInfobarDestroyed() { | 695 void ThemeService::OnInfobarDestroyed() { |
| 696 number_of_infobars_--; | 696 number_of_infobars_--; |
| 697 | 697 |
| 698 if (number_of_infobars_ == 0) | 698 if (number_of_infobars_ == 0) |
| 699 RemoveUnusedThemes(); | 699 RemoveUnusedThemes(); |
| 700 } | 700 } |
| 701 | 701 |
| 702 ThemeSyncableService* ThemeService::GetThemeSyncableService() const { | 702 ThemeSyncableService* ThemeService::GetThemeSyncableService() const { |
| 703 return theme_syncable_service_.get(); | 703 return theme_syncable_service_.get(); |
| 704 } | 704 } |
| OLD | NEW |