OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_GFX_GEOMETRY_MOJO_GEOMETRY_TYPE_CONVERTERS_H_ |
6 #define MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ | 6 #define UI_GFX_GEOMETRY_MOJO_GEOMETRY_TYPE_CONVERTERS_H_ |
7 | 7 |
8 #include "mojo/converters/geometry/mojo_geometry_export.h" | |
9 #include "ui/gfx/geometry/insets.h" | 8 #include "ui/gfx/geometry/insets.h" |
| 9 #include "ui/gfx/geometry/mojo/geometry.mojom.h" |
| 10 #include "ui/gfx/geometry/mojo/mojo_geometry_export.h" |
10 #include "ui/gfx/geometry/point.h" | 11 #include "ui/gfx/geometry/point.h" |
11 #include "ui/gfx/geometry/point_f.h" | 12 #include "ui/gfx/geometry/point_f.h" |
12 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
13 #include "ui/gfx/geometry/rect_f.h" | 14 #include "ui/gfx/geometry/rect_f.h" |
14 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
15 #include "ui/mojo/geometry/geometry.mojom.h" | |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 | 18 |
19 template <> | 19 template <> |
20 struct MOJO_GEOMETRY_EXPORT TypeConverter<PointPtr, gfx::Point> { | 20 struct MOJO_GEOMETRY_EXPORT TypeConverter<PointPtr, gfx::Point> { |
21 static PointPtr Convert(const gfx::Point& input); | 21 static PointPtr Convert(const gfx::Point& input); |
22 }; | 22 }; |
23 template <> | 23 template <> |
24 struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Point, PointPtr> { | 24 struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Point, PointPtr> { |
25 static gfx::Point Convert(const PointPtr& input); | 25 static gfx::Point Convert(const PointPtr& input); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 struct MOJO_GEOMETRY_EXPORT TypeConverter<InsetsPtr, gfx::Insets> { | 92 struct MOJO_GEOMETRY_EXPORT TypeConverter<InsetsPtr, gfx::Insets> { |
93 static InsetsPtr Convert(const gfx::Insets& input); | 93 static InsetsPtr Convert(const gfx::Insets& input); |
94 }; | 94 }; |
95 template <> | 95 template <> |
96 struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Insets, InsetsPtr> { | 96 struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Insets, InsetsPtr> { |
97 static gfx::Insets Convert(const InsetsPtr& input); | 97 static gfx::Insets Convert(const InsetsPtr& input); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace mojo | 100 } // namespace mojo |
101 | 101 |
102 #endif // MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ | 102 #endif // UI_GFX_GEOMETRY_MOJO_GEOMETRY_TYPE_CONVERTERS_H_ |
OLD | NEW |