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

Unified Diff: chrome/browser/cocoa/cocoa_utils.h

Issue 125061: Add favicons to Mac bookmark bar. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/cocoa/bookmark_bar_controller.mm ('k') | chrome/browser/cocoa/cocoa_utils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/cocoa_utils.h
===================================================================
--- chrome/browser/cocoa/cocoa_utils.h (revision 0)
+++ chrome/browser/cocoa/cocoa_utils.h (revision 0)
@@ -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
Property changes on: chrome/browser/cocoa/cocoa_utils.h
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/cocoa/bookmark_bar_controller.mm ('k') | chrome/browser/cocoa/cocoa_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698