summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/cocoa_utils.h
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 21:47:20 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 21:47:20 +0000
commitfad9ef5cb3f55eba164ff4e63db803c5a7fa17a5 (patch)
tree02fcefe29e06616dc75e0b9a44b9aea3c21da9a3 /chrome/browser/cocoa/cocoa_utils.h
parentac7f222757304095a60909ae7adc3ba22548632e (diff)
downloadchromium_src-fad9ef5cb3f55eba164ff4e63db803c5a7fa17a5.zip
chromium_src-fad9ef5cb3f55eba164ff4e63db803c5a7fa17a5.tar.gz
chromium_src-fad9ef5cb3f55eba164ff4e63db803c5a7fa17a5.tar.bz2
Reverting r18743, the rest of it.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18756 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/cocoa_utils.h')
-rw-r--r--chrome/browser/cocoa/cocoa_utils.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/cocoa_utils.h b/chrome/browser/cocoa/cocoa_utils.h
new file mode 100644
index 0000000..9f721d1
--- /dev/null
+++ b/chrome/browser/cocoa/cocoa_utils.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2009 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 <Cocoa/Cocoa.h>
+#include "third_party/skia/include/core/SkBitmap.h"
+
+// Generic Cocoa utilities which fit nowhere else.
+
+namespace CocoaUtils {
+
+// Given an SkBitmap, return an autoreleased NSImage. This function
+// was not placed in
+// third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp since that
+// would make Skia dependent on Cocoa.
+NSImage* SkBitmapToNSImage(const SkBitmap& icon);
+
+
+}; // namespace CocoaUtils