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

Side by Side Diff: Source/WebCore/platform/graphics/FloatRect.h

Issue 13687007: Remove PLATFORM(BLACKBERRY) support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2005 Nokia. All rights reserved. 3 * Copyright (C) 2005 Nokia. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 30 matching lines...) Expand all
41 typedef struct _NSRect NSRect; 41 typedef struct _NSRect NSRect;
42 #endif 42 #endif
43 #endif 43 #endif
44 44
45 #if PLATFORM(QT) 45 #if PLATFORM(QT)
46 QT_BEGIN_NAMESPACE 46 QT_BEGIN_NAMESPACE
47 class QRectF; 47 class QRectF;
48 QT_END_NAMESPACE 48 QT_END_NAMESPACE
49 #endif 49 #endif
50 50
51 #if PLATFORM(BLACKBERRY)
52 namespace BlackBerry {
53 namespace Platform {
54 class FloatRect;
55 }
56 }
57 #endif
58
59 #if USE(SKIA) 51 #if USE(SKIA)
60 struct SkRect; 52 struct SkRect;
61 #endif 53 #endif
62 54
63 namespace WebCore { 55 namespace WebCore {
64 56
65 #if PLATFORM(OPENVG) 57 #if PLATFORM(OPENVG)
66 class VGRect; 58 class VGRect;
67 #endif 59 #endif
68 60
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void scale(float s) { scale(s, s); } 167 void scale(float s) { scale(s, s); }
176 void scale(float sx, float sy); 168 void scale(float sx, float sy);
177 169
178 FloatRect transposedRect() const { return FloatRect(m_location.transposedPoi nt(), m_size.transposedSize()); } 170 FloatRect transposedRect() const { return FloatRect(m_location.transposedPoi nt(), m_size.transposedSize()); }
179 171
180 // Re-initializes this rectangle to fit the sets of passed points. 172 // Re-initializes this rectangle to fit the sets of passed points.
181 void fitToPoints(const FloatPoint& p0, const FloatPoint& p1); 173 void fitToPoints(const FloatPoint& p0, const FloatPoint& p1);
182 void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoin t& p2); 174 void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoin t& p2);
183 void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoin t& p2, const FloatPoint& p3); 175 void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoin t& p2, const FloatPoint& p3);
184 176
185 #if PLATFORM(BLACKBERRY)
186 FloatRect(const BlackBerry::Platform::FloatRect&);
187 operator BlackBerry::Platform::FloatRect() const;
188 #endif
189
190 #if USE(CG) || USE(SKIA_ON_MAC_CHROMIUM) 177 #if USE(CG) || USE(SKIA_ON_MAC_CHROMIUM)
191 FloatRect(const CGRect&); 178 FloatRect(const CGRect&);
192 operator CGRect() const; 179 operator CGRect() const;
193 #endif 180 #endif
194 181
195 #if (PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))) \ 182 #if (PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))) \
196 && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 183 && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
197 FloatRect(const NSRect&); 184 FloatRect(const NSRect&);
198 operator NSRect() const; 185 operator NSRect() const;
199 #endif 186 #endif
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 IntRect enclosedIntRect(const FloatRect&); 259 IntRect enclosedIntRect(const FloatRect&);
273 260
274 IntRect roundedIntRect(const FloatRect&); 261 IntRect roundedIntRect(const FloatRect&);
275 262
276 // Map rect r from srcRect to an equivalent rect in destRect. 263 // Map rect r from srcRect to an equivalent rect in destRect.
277 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect); 264 FloatRect mapRect(const FloatRect& r, const FloatRect& srcRect, const FloatRect& destRect);
278 265
279 } 266 }
280 267
281 #endif 268 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698