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

Side by Side Diff: Source/platform/geometry/FloatRect.h

Issue 1285413007: Unify geometry test printers in a test support target. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: PrintTo instead of operator<< Created 5 years, 4 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
« no previous file with comments | « Source/platform/geometry/FloatQuad.h ('k') | Source/platform/geometry/FloatRoundedRect.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, 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 13 matching lines...) Expand all
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef FloatRect_h 27 #ifndef FloatRect_h
28 #define FloatRect_h 28 #define FloatRect_h
29 29
30 #include "platform/geometry/FloatPoint.h" 30 #include "platform/geometry/FloatPoint.h"
31 #include "platform/geometry/FloatRectOutsets.h" 31 #include "platform/geometry/FloatRectOutsets.h"
32 #include "third_party/skia/include/core/SkRect.h" 32 #include "third_party/skia/include/core/SkRect.h"
33 #include "wtf/Vector.h" 33 #include "wtf/Vector.h"
34 #include <iosfwd>
34 35
35 #if OS(MACOSX) 36 #if OS(MACOSX)
36 typedef struct CGRect CGRect; 37 typedef struct CGRect CGRect;
37 38
38 #ifdef __OBJC__ 39 #ifdef __OBJC__
39 #import <Foundation/Foundation.h> 40 #import <Foundation/Foundation.h>
40 #endif 41 #endif
41 #endif 42 #endif
42 43
43 namespace blink { 44 namespace blink {
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 PLATFORM_EXPORT IntRect enclosingIntRect(const FloatRect&); 239 PLATFORM_EXPORT IntRect enclosingIntRect(const FloatRect&);
239 240
240 // Returns a valid IntRect contained within the given FloatRect. 241 // Returns a valid IntRect contained within the given FloatRect.
241 PLATFORM_EXPORT IntRect enclosedIntRect(const FloatRect&); 242 PLATFORM_EXPORT IntRect enclosedIntRect(const FloatRect&);
242 243
243 PLATFORM_EXPORT IntRect roundedIntRect(const FloatRect&); 244 PLATFORM_EXPORT IntRect roundedIntRect(const FloatRect&);
244 245
245 // Map supplied rect from srcRect to an equivalent rect in destRect. 246 // Map supplied rect from srcRect to an equivalent rect in destRect.
246 PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, co nst FloatRect& destRect); 247 PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, co nst FloatRect& destRect);
247 248
248 } 249 // Redeclared here to avoid ODR issues.
250 // See platform/testing/GeometryPrinters.h.
251 void PrintTo(const FloatRect&, std::ostream*);
252
253 } // namespace blink
249 254
250 #endif 255 #endif
OLDNEW
« no previous file with comments | « Source/platform/geometry/FloatQuad.h ('k') | Source/platform/geometry/FloatRoundedRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698