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

Unified Diff: ui/gfx/geometry/point.h

Issue 1092033006: [Mac/Cleanup] Trim down Foundation.h and ApplicationServices.h includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include -> import Created 5 years, 8 months 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
« no previous file with comments | « ui/gfx/blit.cc ('k') | ui/gfx/geometry/point.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/point.h
diff --git a/ui/gfx/geometry/point.h b/ui/gfx/geometry/point.h
index bedfb5c979c64ddae89cb41e0c75897188a00336..a1686fb8abcc187b49ff7b272bee4475dbb678b3 100644
--- a/ui/gfx/geometry/point.h
+++ b/ui/gfx/geometry/point.h
@@ -15,10 +15,8 @@
#if defined(OS_WIN)
typedef unsigned long DWORD;
typedef struct tagPOINT POINT;
-#elif defined(OS_IOS)
-#include <CoreGraphics/CoreGraphics.h>
#elif defined(OS_MACOSX)
-#include <ApplicationServices/ApplicationServices.h>
+typedef struct CGPoint CGPoint;
#endif
namespace gfx {
@@ -36,7 +34,7 @@ class GFX_EXPORT Point {
explicit Point(const POINT& point);
Point& operator=(const POINT& point);
#elif defined(OS_MACOSX)
- explicit Point(const CGPoint& point) : x_(point.x), y_(point.y) {}
+ explicit Point(const CGPoint& point);
#endif
~Point() {}
@@ -44,7 +42,7 @@ class GFX_EXPORT Point {
#if defined(OS_WIN)
POINT ToPOINT() const;
#elif defined(OS_MACOSX)
- CGPoint ToCGPoint() const { return CGPointMake(x(), y()); }
+ CGPoint ToCGPoint() const;
#endif
int x() const { return x_; }
« no previous file with comments | « ui/gfx/blit.cc ('k') | ui/gfx/geometry/point.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698