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

Side by Side Diff: platform/graphics/IntRect.h

Issue 174242: Bring the Mac Chromium render theme up to date and easier to keep merged. DO ... (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 11 years, 3 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 unified diff | Download patch
« no previous file with comments | « platform/graphics/FloatSize.h ('k') | rendering/RenderThemeChromiumMac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 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 15 matching lines...) Expand all
26 #ifndef IntRect_h 26 #ifndef IntRect_h
27 #define IntRect_h 27 #define IntRect_h
28 28
29 #include "IntPoint.h" 29 #include "IntPoint.h"
30 #include <wtf/Platform.h> 30 #include <wtf/Platform.h>
31 31
32 #if PLATFORM(CG) 32 #if PLATFORM(CG)
33 typedef struct CGRect CGRect; 33 typedef struct CGRect CGRect;
34 #endif 34 #endif
35 35
36 #if PLATFORM(MAC) 36 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))
37 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 37 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
38 typedef struct CGRect NSRect; 38 typedef struct CGRect NSRect;
39 #else 39 #else
40 typedef struct _NSRect NSRect; 40 typedef struct _NSRect NSRect;
41 #endif 41 #endif
42 #endif 42 #endif
43 43
44 #if PLATFORM(WIN) 44 #if PLATFORM(WIN)
45 typedef struct tagRECT RECT; 45 typedef struct tagRECT RECT;
46 #elif PLATFORM(QT) 46 #elif PLATFORM(QT)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 #if PLATFORM(CG) 154 #if PLATFORM(CG)
155 operator CGRect() const; 155 operator CGRect() const;
156 #endif 156 #endif
157 157
158 #if PLATFORM(SKIA) 158 #if PLATFORM(SKIA)
159 IntRect(const SkIRect&); 159 IntRect(const SkIRect&);
160 operator SkRect() const; 160 operator SkRect() const;
161 operator SkIRect() const; 161 operator SkIRect() const;
162 #endif 162 #endif
163 163
164 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 164 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \
165 || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))
165 operator NSRect() const; 166 operator NSRect() const;
166 #endif 167 #endif
167 168
168 private: 169 private:
169 IntPoint m_location; 170 IntPoint m_location;
170 IntSize m_size; 171 IntSize m_size;
171 }; 172 };
172 173
173 inline IntRect intersection(const IntRect& a, const IntRect& b) 174 inline IntRect intersection(const IntRect& a, const IntRect& b)
174 { 175 {
(...skipping 16 matching lines...) Expand all
191 192
192 inline bool operator!=(const IntRect& a, const IntRect& b) 193 inline bool operator!=(const IntRect& a, const IntRect& b)
193 { 194 {
194 return a.location() != b.location() || a.size() != b.size(); 195 return a.location() != b.location() || a.size() != b.size();
195 } 196 }
196 197
197 #if PLATFORM(CG) 198 #if PLATFORM(CG)
198 IntRect enclosingIntRect(const CGRect&); 199 IntRect enclosingIntRect(const CGRect&);
199 #endif 200 #endif
200 201
201 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 202 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \
203 || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))
202 IntRect enclosingIntRect(const NSRect&); 204 IntRect enclosingIntRect(const NSRect&);
203 #endif 205 #endif
204 206
205 } // namespace WebCore 207 } // namespace WebCore
206 208
207 #endif // IntRect_h 209 #endif // IntRect_h
OLDNEW
« no previous file with comments | « platform/graphics/FloatSize.h ('k') | rendering/RenderThemeChromiumMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698