| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |