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

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

Issue 6246027: Move src/gfx/ to src/ui/gfx... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« gfx/DEPS ('K') | « ui/gfx/codec/png_codec_unittest.cc ('k') | ui/gfx/color_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698