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

Unified Diff: ui/gfx/path_mac.h

Issue 1718043003: MacViews: Clip contents for non-rectangular windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | ui/gfx/path_mac.mm » ('j') | ui/gfx/path_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/path_mac.h
diff --git a/ui/gfx/path_mac.h b/ui/gfx/path_mac.h
index f20fa62d7c2bca08899053f28a311b04d77dfb6d..175f61f0be03f6080b30cff67ab1379458fd1381 100644
--- a/ui/gfx/path_mac.h
+++ b/ui/gfx/path_mac.h
@@ -5,9 +5,11 @@
#ifndef UI_GFX_PATH_MAC_H_
#define UI_GFX_PATH_MAC_H_
+#import <Cocoa/Cocoa.h>
+
+#include "base/mac/scoped_cftyperef.h"
#include "ui/gfx/gfx_export.h"
-@class NSBezierPath;
class SkPath;
namespace gfx {
@@ -16,6 +18,11 @@ namespace gfx {
// call retain on the returned object, if it wishes to take ownership.
GFX_EXPORT NSBezierPath* CreateNSBezierPathFromSkPath(const SkPath& path);
+// Returns an immutable CGPath corresponding to |path|. An empty CGPath is
+// returned for an empty or nil |path| value.
+GFX_EXPORT base::ScopedCFTypeRef<CGPathRef> CreateCGPathFromNSBezierPath(
+ NSBezierPath* path);
+
} // namespace gfx
#endif // UI_GFX_PATH_MAC_H_
« no previous file with comments | « no previous file | ui/gfx/path_mac.mm » ('j') | ui/gfx/path_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698