| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "platform/testing/GeometryPrinters.h" | |
| 6 | |
| 7 #include "platform/geometry/DoublePoint.h" | |
| 8 #include "platform/geometry/DoubleRect.h" | |
| 9 #include "platform/geometry/DoubleSize.h" | |
| 10 #include "platform/geometry/FloatBox.h" | |
| 11 #include "platform/geometry/FloatPoint.h" | |
| 12 #include "platform/geometry/FloatPoint3D.h" | |
| 13 #include "platform/geometry/FloatQuad.h" | |
| 14 #include "platform/geometry/FloatRect.h" | |
| 15 #include "platform/geometry/FloatSize.h" | |
| 16 #include "platform/geometry/IntPoint.h" | |
| 17 #include "platform/geometry/IntRect.h" | |
| 18 #include "platform/geometry/IntSize.h" | |
| 19 #include "platform/geometry/LayoutPoint.h" | |
| 20 #include "platform/geometry/LayoutRect.h" | |
| 21 #include "platform/geometry/LayoutSize.h" | |
| 22 #include <ostream> // NOLINT | |
| 23 | |
| 24 namespace blink { | |
| 25 | |
| 26 void PrintTo(const DoublePoint& point, std::ostream* os) | |
| 27 { | |
| 28 *os << point.toString(); | |
| 29 } | |
| 30 | |
| 31 void PrintTo(const DoubleRect& rect, std::ostream* os) | |
| 32 { | |
| 33 *os << rect.toString(); | |
| 34 } | |
| 35 | |
| 36 void PrintTo(const DoubleSize& size, std::ostream* os) | |
| 37 { | |
| 38 *os << size.toString(); | |
| 39 } | |
| 40 | |
| 41 void PrintTo(const FloatBox& box, std::ostream* os) | |
| 42 { | |
| 43 *os << box.toString(); | |
| 44 } | |
| 45 | |
| 46 void PrintTo(const FloatPoint& point, std::ostream* os) | |
| 47 { | |
| 48 *os << point.toString(); | |
| 49 } | |
| 50 | |
| 51 void PrintTo(const FloatPoint3D& point, std::ostream* os) | |
| 52 { | |
| 53 *os << point.toString(); | |
| 54 } | |
| 55 | |
| 56 void PrintTo(const FloatQuad& quad, std::ostream* os) | |
| 57 { | |
| 58 *os << quad.toString(); | |
| 59 } | |
| 60 | |
| 61 void PrintTo(const FloatRect& rect, std::ostream* os) | |
| 62 { | |
| 63 *os << rect.toString(); | |
| 64 } | |
| 65 | |
| 66 void PrintTo(const FloatRoundedRect& roundedRect, std::ostream* os) | |
| 67 { | |
| 68 *os << roundedRect.toString(); | |
| 69 } | |
| 70 | |
| 71 void PrintTo(const FloatRoundedRect::Radii& radii, std::ostream* os) | |
| 72 { | |
| 73 *os << radii.toString(); | |
| 74 } | |
| 75 | |
| 76 void PrintTo(const FloatSize& size, std::ostream* os) | |
| 77 { | |
| 78 *os << size.toString(); | |
| 79 } | |
| 80 | |
| 81 void PrintTo(const IntPoint& point, std::ostream* os) | |
| 82 { | |
| 83 *os << point.toString(); | |
| 84 } | |
| 85 | |
| 86 void PrintTo(const IntRect& rect, std::ostream* os) | |
| 87 { | |
| 88 *os << rect.toString(); | |
| 89 } | |
| 90 | |
| 91 void PrintTo(const IntSize& size, std::ostream* os) | |
| 92 { | |
| 93 *os << size.toString(); | |
| 94 } | |
| 95 | |
| 96 void PrintTo(const LayoutPoint& point, std::ostream* os) | |
| 97 { | |
| 98 *os << point.toString(); | |
| 99 } | |
| 100 | |
| 101 void PrintTo(const LayoutRect& rect, std::ostream* os) | |
| 102 { | |
| 103 *os << rect.toString(); | |
| 104 } | |
| 105 | |
| 106 void PrintTo(const LayoutSize& size, std::ostream* os) | |
| 107 { | |
| 108 *os << size.toString(); | |
| 109 } | |
| 110 | |
| 111 } // namespace blink | |
| OLD | NEW |