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

Unified Diff: sky/engine/platform/geometry/FloatRect.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/FloatRect.h
diff --git a/sky/engine/platform/geometry/FloatRect.h b/sky/engine/platform/geometry/FloatRect.h
index 114f217bb7597959812a6f52d4891dbbfaec792f..a699015569fd6a376bcb08823848d88f5ba95389 100644
--- a/sky/engine/platform/geometry/FloatRect.h
+++ b/sky/engine/platform/geometry/FloatRect.h
@@ -31,14 +31,6 @@
#include "third_party/skia/include/core/SkRect.h"
#include "wtf/Vector.h"
-#if OS(MACOSX)
-typedef struct CGRect CGRect;
-
-#ifdef __OBJC__
-#import <Foundation/Foundation.h>
-#endif
-#endif
-
namespace blink {
class LayoutRect;
@@ -161,15 +153,6 @@ public:
void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoint& p2);
void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& p3);
-#if OS(MACOSX)
- FloatRect(const CGRect&);
- operator CGRect() const;
-#if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- FloatRect(const NSRect&);
- operator NSRect() const;
-#endif
-#endif
-
operator SkRect() const { return SkRect::MakeXYWH(x(), y(), width(), height()); }
private:

Powered by Google App Engine
This is Rietveld 408576698