OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 APP_GFX_COLOR_UTILS_H_ | 5 #ifndef UI_GFX_COLOR_UTILS_H_ |
6 #define APP_GFX_COLOR_UTILS_H_ | 6 #define UI_GFX_COLOR_UTILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 | 10 |
11 class SkBitmap; | 11 class SkBitmap; |
12 | 12 |
13 namespace color_utils { | 13 namespace color_utils { |
14 | 14 |
15 // Represents an HSL color. | 15 // Represents an HSL color. |
16 struct HSL { | 16 struct HSL { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // | 70 // |
71 // NOTE: This won't do anything but waste time if the supplied foreground color | 71 // NOTE: This won't do anything but waste time if the supplied foreground color |
72 // has a luma value close to the midpoint (0.5 in the HSL representation). | 72 // has a luma value close to the midpoint (0.5 in the HSL representation). |
73 SkColor GetReadableColor(SkColor foreground, SkColor background); | 73 SkColor GetReadableColor(SkColor foreground, SkColor background); |
74 | 74 |
75 // Gets a Windows system color as a SkColor | 75 // Gets a Windows system color as a SkColor |
76 SkColor GetSysSkColor(int which); | 76 SkColor GetSysSkColor(int which); |
77 | 77 |
78 } // namespace color_utils | 78 } // namespace color_utils |
79 | 79 |
80 #endif // APP_GFX_COLOR_UTILS_H_ | 80 #endif // UI_GFX_COLOR_UTILS_H_ |
OLD | NEW |