summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/cocoa_utils.h
blob: 9f721d118b3244632e3a55527f9a61e5ed9e1049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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