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

Side by Side Diff: Source/platform/geometry/FloatRoundedRect.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/FloatRect.h ('k') | Source/platform/geometry/FloatRoundedRectTest.cpp » ('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) 2013 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2013 Adobe Systems Incorporated. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 15 matching lines...) Expand all
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27 * OF THE POSSIBILITY OF SUCH DAMAGE. 27 * OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef FloatRoundedRect_h 30 #ifndef FloatRoundedRect_h
31 #define FloatRoundedRect_h 31 #define FloatRoundedRect_h
32 32
33 #include "platform/geometry/FloatRect.h" 33 #include "platform/geometry/FloatRect.h"
34 #include "platform/geometry/FloatSize.h" 34 #include "platform/geometry/FloatSize.h"
35 #include "third_party/skia/include/core/SkRRect.h" 35 #include "third_party/skia/include/core/SkRRect.h"
36 #include <iosfwd>
36 37
37 namespace blink { 38 namespace blink {
38 39
39 class FloatQuad; 40 class FloatQuad;
40 41
41 class PLATFORM_EXPORT FloatRoundedRect { 42 class PLATFORM_EXPORT FloatRoundedRect {
42 public: 43 public:
43 class PLATFORM_EXPORT Radii { 44 class PLATFORM_EXPORT Radii {
44 public: 45 public:
45 Radii() { } 46 Radii() { }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 { 197 {
197 return !(a == b); 198 return !(a == b);
198 } 199 }
199 200
200 201
201 inline bool operator==(const FloatRoundedRect& a, const FloatRoundedRect& b) 202 inline bool operator==(const FloatRoundedRect& a, const FloatRoundedRect& b)
202 { 203 {
203 return a.rect() == b.rect() && a.radii() == b.radii(); 204 return a.rect() == b.rect() && a.radii() == b.radii();
204 } 205 }
205 206
207 // Redeclared here to avoid ODR issues.
208 // See platform/testing/GeometryPrinters.h.
209 void PrintTo(const FloatRoundedRect&, std::ostream*);
210 void PrintTo(const FloatRoundedRect::Radii&, std::ostream*);
211
206 } // namespace blink 212 } // namespace blink
207 213
208 #endif // FloatRoundedRect_h 214 #endif // FloatRoundedRect_h
OLDNEW
« no previous file with comments | « Source/platform/geometry/FloatRect.h ('k') | Source/platform/geometry/FloatRoundedRectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698