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 #ifndef MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ | 5 #ifndef MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ |
6 #define MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ | 6 #define MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ |
7 | 7 |
8 #include "mojo/converters/geometry/mojo_geometry_export.h" | 8 #include "mojo/converters/geometry/mojo_geometry_export.h" |
9 #include "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojo
m.h" | 9 #include "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojo
m.h" |
10 #include "ui/gfx/geometry/point.h" | 10 #include "ui/gfx/geometry/point.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 template <> | 53 template <> |
54 struct MOJO_GEOMETRY_EXPORT TypeConverter<RectFPtr, gfx::RectF> { | 54 struct MOJO_GEOMETRY_EXPORT TypeConverter<RectFPtr, gfx::RectF> { |
55 static RectFPtr Convert(const gfx::RectF& input); | 55 static RectFPtr Convert(const gfx::RectF& input); |
56 }; | 56 }; |
57 template <> | 57 template <> |
58 struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::RectF, RectFPtr> { | 58 struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::RectF, RectFPtr> { |
59 static gfx::RectF Convert(const RectFPtr& input); | 59 static gfx::RectF Convert(const RectFPtr& input); |
60 }; | 60 }; |
61 | 61 |
| 62 template <> |
| 63 struct MOJO_GEOMETRY_EXPORT TypeConverter<Rect, gfx::Rect> { |
| 64 static Rect Convert(const gfx::Rect& input); |
| 65 }; |
| 66 template <> |
| 67 struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Rect, Rect> { |
| 68 static gfx::Rect Convert(const Rect& input); |
| 69 }; |
| 70 |
62 } // namespace mojo | 71 } // namespace mojo |
63 | 72 |
64 #endif // MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ | 73 #endif // MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ |
OLD | NEW |