Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: ui/gfx/color_utils.h

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gfx/color_profile_win.cc ('k') | ui/gfx/color_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/color_profile_win.cc ('k') | ui/gfx/color_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698