OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser_theme_provider.h" | 5 #include "chrome/browser/browser_theme_provider.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/gfx/png_decoder.h" | 8 #include "base/gfx/png_decoder.h" |
9 #include "base/gfx/png_encoder.h" | 9 #include "base/gfx/png_encoder.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 const SkColor BrowserThemeProvider::kDefaultColorNTPLink = | 110 const SkColor BrowserThemeProvider::kDefaultColorNTPLink = |
111 SkColorSetRGB(0, 0, 0); | 111 SkColorSetRGB(0, 0, 0); |
112 const SkColor BrowserThemeProvider::kDefaultColorNTPHeader = | 112 const SkColor BrowserThemeProvider::kDefaultColorNTPHeader = |
113 SkColorSetRGB(75, 140, 220); | 113 SkColorSetRGB(75, 140, 220); |
114 const SkColor BrowserThemeProvider::kDefaultColorNTPSection = | 114 const SkColor BrowserThemeProvider::kDefaultColorNTPSection = |
115 SkColorSetRGB(229, 239, 254); | 115 SkColorSetRGB(229, 239, 254); |
116 const SkColor BrowserThemeProvider::kDefaultColorNTPSectionText = | 116 const SkColor BrowserThemeProvider::kDefaultColorNTPSectionText = |
117 SkColorSetRGB(0, 0, 0); | 117 SkColorSetRGB(0, 0, 0); |
118 const SkColor BrowserThemeProvider::kDefaultColorNTPSectionLink = | 118 const SkColor BrowserThemeProvider::kDefaultColorNTPSectionLink = |
119 SkColorSetRGB(0, 0, 204); | 119 SkColorSetRGB(0, 0, 204); |
120 const SkColor BrowserThemeProvider::kDefaultColorControlBackground = 0u; | 120 const SkColor BrowserThemeProvider::kDefaultColorControlBackground = NULL; |
121 const SkColor BrowserThemeProvider::kDefaultColorButtonBackground = 0u; | 121 const SkColor BrowserThemeProvider::kDefaultColorButtonBackground = NULL; |
122 | 122 |
123 // Default tints. | 123 // Default tints. |
124 const skia::HSL BrowserThemeProvider::kDefaultTintButtons = { -1, -1, -1 }; | 124 const skia::HSL BrowserThemeProvider::kDefaultTintButtons = { -1, -1, -1 }; |
125 const skia::HSL BrowserThemeProvider::kDefaultTintFrame = { -1, -1, -1 }; | 125 const skia::HSL BrowserThemeProvider::kDefaultTintFrame = { -1, -1, -1 }; |
126 const skia::HSL BrowserThemeProvider::kDefaultTintFrameInactive = | 126 const skia::HSL BrowserThemeProvider::kDefaultTintFrameInactive = |
127 { -1, -1, 0.75f }; | 127 { -1, -1, 0.75f }; |
128 const skia::HSL BrowserThemeProvider::kDefaultTintFrameIncognito = | 128 const skia::HSL BrowserThemeProvider::kDefaultTintFrameIncognito = |
129 { -1, 0.2f, 0.35f }; | 129 { -1, 0.2f, 0.35f }; |
130 const skia::HSL BrowserThemeProvider::kDefaultTintFrameIncognitoInactive = | 130 const skia::HSL BrowserThemeProvider::kDefaultTintFrameIncognitoInactive = |
131 { -1, 0.3f, 0.6f }; | 131 { -1, 0.3f, 0.6f }; |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1167 // the image_cache_, and have therefore all been deleted in the lines above. | 1167 // the image_cache_, and have therefore all been deleted in the lines above. |
1168 // TODO(mirandac): make memory management clearer here. | 1168 // TODO(mirandac): make memory management clearer here. |
1169 image_save_cache_.clear(); | 1169 image_save_cache_.clear(); |
1170 } | 1170 } |
1171 | 1171 |
1172 #if defined(TOOLKIT_VIEWS) | 1172 #if defined(TOOLKIT_VIEWS) |
1173 void BrowserThemeProvider::FreePlatformCaches() { | 1173 void BrowserThemeProvider::FreePlatformCaches() { |
1174 // Views (Skia) has no platform image cache to clear. | 1174 // Views (Skia) has no platform image cache to clear. |
1175 } | 1175 } |
1176 #endif | 1176 #endif |
OLD | NEW |