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

Unified Diff: sky/engine/platform/geometry/IntSize.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/IntSize.h
diff --git a/sky/engine/platform/geometry/IntSize.h b/sky/engine/platform/geometry/IntSize.h
index 6e56e4b55d5e357b66da248b78cb91fb5cf09441..cbd4b8ee3d614107016adb7214dc7d3396e3985c 100644
--- a/sky/engine/platform/geometry/IntSize.h
+++ b/sky/engine/platform/geometry/IntSize.h
@@ -30,14 +30,6 @@
#include "platform/PlatformExport.h"
#include "public/platform/WebCommon.h"
-#if OS(MACOSX)
-typedef struct CGSize CGSize;
-
-#ifdef __OBJC__
-#import <Foundation/Foundation.h>
-#endif
-#endif
-
namespace blink {
class PLATFORM_EXPORT IntSize {
@@ -114,16 +106,6 @@ public:
return IntSize(m_height, m_width);
}
-#if OS(MACOSX)
- explicit IntSize(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 IntSize(const NSSize &); // don't do this implicitly since it's lossy
- operator NSSize() const;
-#endif
-#endif
-
private:
int m_width, m_height;
};

Powered by Google App Engine
This is Rietveld 408576698