Index: ui/gfx/path_mac.h |
diff --git a/ui/gfx/path_mac.h b/ui/gfx/path_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0a97313a29679867419d4ce151a1552a5062ed54 |
--- /dev/null |
+++ b/ui/gfx/path_mac.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2016 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. |
+ |
+#ifndef UI_GFX_PATH_MAC_H_ |
+#define UI_GFX_PATH_MAC_H_ |
+ |
+#include "ui/gfx/gfx_export.h" |
+ |
+#if defined(__OBJC__) |
+@class NSBezierPath; |
+#else // __OBJC__ |
tapted
2016/02/05 04:51:06
nit: I think we can assume only .mm files #import
|
+class NSBezierPath; |
+#endif // __OBJC__ |
+ |
+class SkPath; |
+class SkRegion; |
+ |
+namespace gfx { |
+ |
+// Returns the NSBezierPath corresponding to |region|. |
+GFX_EXPORT NSBezierPath* CreateNSBezierPathFromSkRegion(const SkRegion& region); |
+ |
+// Returns the NSBezierPath corresponding to |path|. |
+GFX_EXPORT NSBezierPath* CreateNSBezierPathFromSkPath(const SkPath& path); |
+ |
+} // namespace gfx |
+ |
+#endif // UI_GFX_PATH_MAC_H_ |