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

Side by Side Diff: app/gfx/color_utils.cc

Issue 113143: Move color_utils, text_elider, drag_utils, accessibility_types, standard_layo... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « app/gfx/color_utils.h ('k') | app/gfx/text_elider.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) 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 #include "build/build_config.h" 5 #include "app/gfx/color_utils.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
11 11
12 #include "chrome/common/gfx/color_utils.h"
13
14 #include "base/basictypes.h" 12 #include "base/basictypes.h"
15 #include "base/logging.h" 13 #include "base/logging.h"
16 #include "skia/include/SkBitmap.h" 14 #include "build/build_config.h"
17
18 #if defined(OS_WIN) 15 #if defined(OS_WIN)
19 #include "skia/ext/skia_utils_win.h" 16 #include "skia/ext/skia_utils_win.h"
20 #endif 17 #endif
18 #include "skia/include/SkBitmap.h"
21 19
22 namespace color_utils { 20 namespace color_utils {
23 21
24 // These transformations are based on the equations in: 22 // These transformations are based on the equations in:
25 // http://en.wikipedia.org/wiki/Lab_color 23 // http://en.wikipedia.org/wiki/Lab_color
26 // http://en.wikipedia.org/wiki/SRGB_color_space#Specification_of_the_transforma tion 24 // http://en.wikipedia.org/wiki/SRGB_color_space#Specification_of_the_transforma tion
27 // See also: 25 // See also:
28 // http://www.brucelindbloom.com/index.html?ColorCalculator.html 26 // http://www.brucelindbloom.com/index.html?ColorCalculator.html
29 27
30 static const double kCIEConversionAlpha = 0.055; 28 static const double kCIEConversionAlpha = 0.055;
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 SkColor GetSysSkColor(int which) { 257 SkColor GetSysSkColor(int which) {
260 #if defined(OS_WIN) 258 #if defined(OS_WIN)
261 return skia::COLORREFToSkColor(::GetSysColor(which)); 259 return skia::COLORREFToSkColor(::GetSysColor(which));
262 #else 260 #else
263 NOTIMPLEMENTED(); 261 NOTIMPLEMENTED();
264 return SK_ColorLTGRAY; 262 return SK_ColorLTGRAY;
265 #endif 263 #endif
266 } 264 }
267 265
268 } // namespace color_utils 266 } // namespace color_utils
OLDNEW
« no previous file with comments | « app/gfx/color_utils.h ('k') | app/gfx/text_elider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698