| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gfx/test/gfx_util.h" | 5 #include "ui/gfx/test/gfx_util.h" |
| 6 | 6 |
| 7 #include <iomanip> | 7 #include <iomanip> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "ui/gfx/geometry/box_f.h" | 11 #include "ui/gfx/geometry/box_f.h" |
| 12 #include "ui/gfx/geometry/point.h" | 12 #include "ui/gfx/geometry/point.h" |
| 13 #include "ui/gfx/geometry/point3_f.h" | 13 #include "ui/gfx/geometry/point3_f.h" |
| 14 #include "ui/gfx/geometry/point_f.h" | 14 #include "ui/gfx/geometry/point_f.h" |
| 15 #include "ui/gfx/geometry/quad_f.h" | 15 #include "ui/gfx/geometry/quad_f.h" |
| 16 #include "ui/gfx/geometry/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
| 17 #include "ui/gfx/geometry/rect_f.h" | 17 #include "ui/gfx/geometry/rect_f.h" |
| 18 #include "ui/gfx/geometry/scroll_offset.h" |
| 18 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
| 19 #include "ui/gfx/geometry/size_f.h" | 20 #include "ui/gfx/geometry/size_f.h" |
| 20 #include "ui/gfx/geometry/vector2d.h" | 21 #include "ui/gfx/geometry/vector2d.h" |
| 21 #include "ui/gfx/geometry/vector2d_f.h" | 22 #include "ui/gfx/geometry/vector2d_f.h" |
| 22 #include "ui/gfx/geometry/vector3d_f.h" | 23 #include "ui/gfx/geometry/vector3d_f.h" |
| 23 #include "ui/gfx/transform.h" | 24 #include "ui/gfx/transform.h" |
| 24 | 25 |
| 25 namespace gfx { | 26 namespace gfx { |
| 26 | 27 |
| 27 namespace { | 28 namespace { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 112 } |
| 112 | 113 |
| 113 void PrintTo(const Rect& rect, ::std::ostream* os) { | 114 void PrintTo(const Rect& rect, ::std::ostream* os) { |
| 114 *os << rect.ToString(); | 115 *os << rect.ToString(); |
| 115 } | 116 } |
| 116 | 117 |
| 117 void PrintTo(const RectF& rect, ::std::ostream* os) { | 118 void PrintTo(const RectF& rect, ::std::ostream* os) { |
| 118 *os << rect.ToString(); | 119 *os << rect.ToString(); |
| 119 } | 120 } |
| 120 | 121 |
| 122 void PrintTo(const ScrollOffset& offset, ::std::ostream* os) { |
| 123 *os << offset.ToString(); |
| 124 } |
| 125 |
| 121 void PrintTo(const Size& size, ::std::ostream* os) { | 126 void PrintTo(const Size& size, ::std::ostream* os) { |
| 122 *os << size.ToString(); | 127 *os << size.ToString(); |
| 123 } | 128 } |
| 124 | 129 |
| 125 void PrintTo(const SizeF& size, ::std::ostream* os) { | 130 void PrintTo(const SizeF& size, ::std::ostream* os) { |
| 126 *os << size.ToString(); | 131 *os << size.ToString(); |
| 127 } | 132 } |
| 128 | 133 |
| 129 void PrintTo(const Transform& transform, ::std::ostream* os) { | 134 void PrintTo(const Transform& transform, ::std::ostream* os) { |
| 130 *os << transform.ToString(); | 135 *os << transform.ToString(); |
| 131 } | 136 } |
| 132 | 137 |
| 133 void PrintTo(const Vector2d& vector, ::std::ostream* os) { | 138 void PrintTo(const Vector2d& vector, ::std::ostream* os) { |
| 134 *os << vector.ToString(); | 139 *os << vector.ToString(); |
| 135 } | 140 } |
| 136 | 141 |
| 137 void PrintTo(const Vector2dF& vector, ::std::ostream* os) { | 142 void PrintTo(const Vector2dF& vector, ::std::ostream* os) { |
| 138 *os << vector.ToString(); | 143 *os << vector.ToString(); |
| 139 } | 144 } |
| 140 | 145 |
| 141 void PrintTo(const Vector3dF& vector, ::std::ostream* os) { | 146 void PrintTo(const Vector3dF& vector, ::std::ostream* os) { |
| 142 *os << vector.ToString(); | 147 *os << vector.ToString(); |
| 143 } | 148 } |
| 144 | 149 |
| 145 } // namespace gfx | 150 } // namespace gfx |
| OLD | NEW |