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

Side by Side Diff: chrome/common/gfx/color_utils.cc

Issue 14079: Move skia_utils into the skia namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « chrome/browser/views/sad_tab_view.cc ('k') | chrome/views/background.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 "build/build_config.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
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 } 248 }
249 } 249 }
250 } 250 }
251 251
252 SkColor SetColorAlpha(SkColor c, SkAlpha alpha) { 252 SkColor SetColorAlpha(SkColor c, SkAlpha alpha) {
253 return SkColorSetARGB(alpha, SkColorGetR(c), SkColorGetG(c), SkColorGetB(c)); 253 return SkColorSetARGB(alpha, SkColorGetR(c), SkColorGetG(c), SkColorGetB(c));
254 } 254 }
255 255
256 SkColor GetSysSkColor(int which) { 256 SkColor GetSysSkColor(int which) {
257 #if defined(OS_WIN) 257 #if defined(OS_WIN)
258 return gfx::COLORREFToSkColor(::GetSysColor(which)); 258 return skia::COLORREFToSkColor(::GetSysColor(which));
259 #else 259 #else
260 NOTIMPLEMENTED(); 260 NOTIMPLEMENTED();
261 return SK_ColorLTGRAY; 261 return SK_ColorLTGRAY;
262 #endif 262 #endif
263 } 263 }
264 264
265 } // namespace color_utils 265 } // namespace color_utils
266 266
OLDNEW
« no previous file with comments | « chrome/browser/views/sad_tab_view.cc ('k') | chrome/views/background.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698