| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #if PLATFORM(QT) | 31 #if PLATFORM(QT) |
| 32 #include <QDataStream> | 32 #include <QDataStream> |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) | 35 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) |
| 36 typedef struct CGPoint CGPoint; | 36 typedef struct CGPoint CGPoint; |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 | 39 |
| 40 #if PLATFORM(MAC) | 40 #if OS(DARWIN) |
| 41 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES | 41 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES |
| 42 typedef struct CGPoint NSPoint; | 42 typedef struct CGPoint NSPoint; |
| 43 #else | 43 #else |
| 44 typedef struct _NSPoint NSPoint; | 44 typedef struct _NSPoint NSPoint; |
| 45 #endif | 45 #endif |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 #if PLATFORM(WIN) | 48 #if PLATFORM(WIN) |
| 49 typedef struct tagPOINT POINT; | 49 typedef struct tagPOINT POINT; |
| 50 typedef struct tagPOINTS POINTS; | 50 typedef struct tagPOINTS POINTS; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 IntPoint transposedPoint() const | 113 IntPoint transposedPoint() const |
| 114 { | 114 { |
| 115 return IntPoint(m_y, m_x); | 115 return IntPoint(m_y, m_x); |
| 116 } | 116 } |
| 117 | 117 |
| 118 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) | 118 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) |
| 119 explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lo
ssy | 119 explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lo
ssy |
| 120 operator CGPoint() const; | 120 operator CGPoint() const; |
| 121 #endif | 121 #endif |
| 122 | 122 |
| 123 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) | 123 #if OS(DARWIN) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) |
| 124 explicit IntPoint(const NSPoint&); // don't do this implicitly since it's lo
ssy | 124 explicit IntPoint(const NSPoint&); // don't do this implicitly since it's lo
ssy |
| 125 operator NSPoint() const; | 125 operator NSPoint() const; |
| 126 #endif | 126 #endif |
| 127 | 127 |
| 128 #if PLATFORM(WIN) | 128 #if PLATFORM(WIN) |
| 129 IntPoint(const POINT&); | 129 IntPoint(const POINT&); |
| 130 operator POINT() const; | 130 operator POINT() const; |
| 131 IntPoint(const POINTS&); | 131 IntPoint(const POINTS&); |
| 132 operator POINTS() const; | 132 operator POINTS() const; |
| 133 #elif PLATFORM(QT) | 133 #elif PLATFORM(QT) |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 stream >> x >> y; | 229 stream >> x >> y; |
| 230 point.setX(x); | 230 point.setX(x); |
| 231 point.setY(y); | 231 point.setY(y); |
| 232 return stream; | 232 return stream; |
| 233 } | 233 } |
| 234 #endif | 234 #endif |
| 235 | 235 |
| 236 } // namespace WebCore | 236 } // namespace WebCore |
| 237 | 237 |
| 238 #endif // IntPoint_h | 238 #endif // IntPoint_h |
| OLD | NEW |