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

Unified Diff: ui/gfx/skia_utils_mac.mm

Issue 7130001: Make infobar background gray (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make infobar background gray Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/skia_utils_mac.mm
===================================================================
--- ui/gfx/skia_utils_mac.mm (revision 0)
+++ ui/gfx/skia_utils_mac.mm (revision 0)
@@ -0,0 +1,16 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/gfx/skia_utils_mac.h"
+
+namespace gfx {
+
+NSColor* SkColorToNSColor(SkColor color) {
Nico 2011/06/07 06:09:33 SkColorToCalibratedNSColor I think
sail 2011/06/07 06:20:45 Done.
+ return [NSColor colorWithCalibratedRed:SkColorGetR(color) / 255.0
+ green:SkColorGetG(color) / 255.0
+ blue:SkColorGetB(color) / 255.0
+ alpha:SkColorGetA(color) / 255.0];
+}
+
+} // namespace gfx
« ui/gfx/skia_utils_mac.h ('K') | « ui/gfx/skia_utils_mac.h ('k') | ui/ui_gfx.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698