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

Unified Diff: sky/engine/platform/geometry/IntPoint.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/IntPoint.h
diff --git a/sky/engine/platform/geometry/IntPoint.h b/sky/engine/platform/geometry/IntPoint.h
index a177fad854fe763f75b813dcf1545c81e204db06..dba2e32ae11f9ac3834937100631241c891a7c30 100644
--- a/sky/engine/platform/geometry/IntPoint.h
+++ b/sky/engine/platform/geometry/IntPoint.h
@@ -31,14 +31,6 @@
#include "wtf/MathExtras.h"
#include "wtf/VectorTraits.h"
-#if OS(MACOSX)
-typedef struct CGPoint CGPoint;
-
-#ifdef __OBJC__
-#import <Foundation/Foundation.h>
-#endif
-#endif
-
namespace blink {
class PLATFORM_EXPORT IntPoint {
@@ -88,16 +80,6 @@ public:
return IntPoint(m_y, m_x);
}
-#if OS(MACOSX)
- explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lossy
- operator CGPoint() const;
-
-#if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- explicit IntPoint(const NSPoint&); // don't do this implicitly since it's lossy
- operator NSPoint() const;
-#endif
-#endif
-
private:
int m_x, m_y;
};

Powered by Google App Engine
This is Rietveld 408576698