OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_VIEWS_THEME_HELPERS_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_THEME_HELPERS_H__ |
6 #define CHROME_BROWSER_VIEWS_THEME_HELPERS_H__ | 6 #define CHROME_BROWSER_VIEWS_THEME_HELPERS_H__ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "SkColor.h" | 10 #include "SkColor.h" |
11 | 11 |
12 // Get the colors at two points on a Rebar background gradient. This is for | 12 // Get the colors at two points on a Rebar background gradient. This is for |
13 // drawing Rebar like backgrounds in Views. The reason not to just use | 13 // drawing Rebar like backgrounds in Views. The reason not to just use |
14 // DrawThemeBackground is that it only draws horizontally, but by extracting | 14 // DrawThemeBackground is that it only draws horizontally, but by extracting |
15 // the colors at two points on the X axis of a background drawn | 15 // the colors at two points on the X axis of a background drawn |
16 // by DrawThemeBackground, we can construct a LinearGradientBrush and draw | 16 // by DrawThemeBackground, we can construct a LinearGradientBrush and draw |
17 // such a gradient in any direction. | 17 // such a gradient in any direction. |
18 // | 18 // |
19 // The width parameter is the width of horizontal gradient that will be | 19 // The width parameter is the width of horizontal gradient that will be |
20 // created to calculate the two colors. x1 and x2 are the two pixel positions | 20 // created to calculate the two colors. x1 and x2 are the two pixel positions |
21 // along the X axis. | 21 // along the X axis. |
22 void GetRebarGradientColors(int width, int x1, int x2, SkColor* c1, SkColor* c2)
; | 22 void GetRebarGradientColors(int width, int x1, int x2, |
| 23 SkColor* c1, SkColor* c2); |
23 | 24 |
24 | 25 |
25 // Gets the color used to draw dark (inset beveled) lines. | 26 // Gets the color used to draw dark (inset beveled) lines. |
26 void GetDarkLineColor(SkColor* dark_color); | 27 void GetDarkLineColor(SkColor* dark_color); |
27 | 28 |
28 #endif // #ifndef CHROME_BROWSER_VIEWS_THEME_HELPERS_H__ | 29 #endif // #ifndef CHROME_BROWSER_VIEWS_THEME_HELPERS_H__ |
29 | 30 |
OLD | NEW |