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

Unified Diff: sky/engine/platform/geometry/FloatPoint.h

Issue 709603006: Remove a bunch of OS(MACOSX) code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Even more Created 6 years, 1 month 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
Index: sky/engine/platform/geometry/FloatPoint.h
diff --git a/sky/engine/platform/geometry/FloatPoint.h b/sky/engine/platform/geometry/FloatPoint.h
index 445f60262b9cc297b52d4c30461c0dd484991a4e..d91587297c44c6cce33ea93f990abb04d56e10b1 100644
--- a/sky/engine/platform/geometry/FloatPoint.h
+++ b/sky/engine/platform/geometry/FloatPoint.h
@@ -32,14 +32,6 @@
#include "wtf/MathExtras.h"
#include <algorithm>
-#if OS(MACOSX)
-typedef struct CGPoint CGPoint;
-
-#ifdef __OBJC__
-#import <Foundation/Foundation.h>
-#endif
-#endif
-
struct SkPoint;
namespace blink {
@@ -138,15 +130,6 @@ public:
return FloatPoint(m_x * scale, m_y * scale);
}
-#if OS(MACOSX)
- FloatPoint(const CGPoint&);
- operator CGPoint() const;
-#if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- FloatPoint(const NSPoint&);
- operator NSPoint() const;
-#endif
-#endif
-
SkPoint data() const;
private:

Powered by Google App Engine
This is Rietveld 408576698