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

Unified Diff: sky/engine/platform/geometry/FloatSize.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/FloatSize.h
diff --git a/sky/engine/platform/geometry/FloatSize.h b/sky/engine/platform/geometry/FloatSize.h
index 1d73c75d5ac9bd0b66ac1289fdb46fef8c631960..aad68c9bab125dc4c7dc8745acbf78c8f5a1d13d 100644
--- a/sky/engine/platform/geometry/FloatSize.h
+++ b/sky/engine/platform/geometry/FloatSize.h
@@ -31,14 +31,6 @@
#include "platform/geometry/IntPoint.h"
#include "wtf/MathExtras.h"
-#if OS(MACOSX)
-typedef struct CGSize CGSize;
-
-#ifdef __OBJC__
-#import <Foundation/Foundation.h>
-#endif
-#endif
-
namespace blink {
class IntSize;
@@ -112,15 +104,6 @@ public:
return FloatSize(m_width * scaleX, m_height * scaleY);
}
-#if OS(MACOSX)
- explicit FloatSize(const CGSize&); // don't do this implicitly since it's lossy
- operator CGSize() const;
-#if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy
- operator NSSize() const;
-#endif
-#endif
-
private:
float m_width, m_height;
};

Powered by Google App Engine
This is Rietveld 408576698