OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/views/theme_helpers.h" | 5 #include "chrome/browser/ui/views/theme_helpers.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlapp.h> | 8 #include <atlapp.h> |
9 #include <atltheme.h> | 9 #include <atltheme.h> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "gfx/canvas_skia.h" | 12 #include "gfx/canvas_skia.h" |
13 #include "skia/ext/bitmap_platform_device_win.h" | 13 #include "skia/ext/bitmap_platform_device_win.h" |
14 #include "third_party/skia/include/effects/SkGradientShader.h" | 14 #include "third_party/skia/include/effects/SkGradientShader.h" |
15 | 15 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 if (!theme.IsThemeNull()) { | 83 if (!theme.IsThemeNull()) { |
84 *dark_color = SkColorSetARGB(60, 0, 0, 0); | 84 *dark_color = SkColorSetARGB(60, 0, 0, 0); |
85 } else { | 85 } else { |
86 COLORREF shadow_ref = ::GetSysColor(COLOR_3DSHADOW); | 86 COLORREF shadow_ref = ::GetSysColor(COLOR_3DSHADOW); |
87 *dark_color = SkColorSetARGB(175, | 87 *dark_color = SkColorSetARGB(175, |
88 GetRValue(shadow_ref), | 88 GetRValue(shadow_ref), |
89 GetGValue(shadow_ref), | 89 GetGValue(shadow_ref), |
90 GetBValue(shadow_ref)); | 90 GetBValue(shadow_ref)); |
91 } | 91 } |
92 } | 92 } |
OLD | NEW |