| 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 #ifndef UI_GFX_COLOR_UTILS_H_ | 5 #ifndef UI_GFX_COLOR_UTILS_H_ |
| 6 #define UI_GFX_COLOR_UTILS_H_ | 6 #define UI_GFX_COLOR_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
| 10 #include "ui/gfx/gfx_export.h" | 9 #include "ui/gfx/gfx_export.h" |
| 11 | 10 |
| 12 class SkBitmap; | 11 class SkBitmap; |
| 13 | 12 |
| 14 namespace color_utils { | 13 namespace color_utils { |
| 15 | 14 |
| 16 // Represents an HSL color. | 15 // Represents an HSL color. |
| 17 struct HSL { | 16 struct HSL { |
| 18 double h; | 17 double h; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // light-on-dark color scheme. | 117 // light-on-dark color scheme. |
| 119 GFX_EXPORT bool IsInvertedColorScheme(); | 118 GFX_EXPORT bool IsInvertedColorScheme(); |
| 120 | 119 |
| 121 // Derives a color for icons on a UI surface based on the text color on the same | 120 // Derives a color for icons on a UI surface based on the text color on the same |
| 122 // surface. | 121 // surface. |
| 123 GFX_EXPORT SkColor DeriveDefaultIconColor(SkColor text_color); | 122 GFX_EXPORT SkColor DeriveDefaultIconColor(SkColor text_color); |
| 124 | 123 |
| 125 } // namespace color_utils | 124 } // namespace color_utils |
| 126 | 125 |
| 127 #endif // UI_GFX_COLOR_UTILS_H_ | 126 #endif // UI_GFX_COLOR_UTILS_H_ |
| OLD | NEW |