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_SERVICES_PUBLIC_CPP_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ | 5 #ifndef MOJO_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ |
6 #define MOJO_SERVICES_PUBLIC_CPP_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ | 6 #define MOJO_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ |
7 | 7 |
8 #include "mojo/services/public/cpp/geometry/mojo_geometry_export.h" | 8 #include "mojo/geometry/mojo_geometry_export.h" |
9 #include "mojo/services/public/interfaces/geometry/geometry.mojom.h" | 9 #include "mojo/public/interfaces/geometry/geometry.mojom.h" |
10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 | 13 |
14 template<> | 14 template<> |
15 class MOJO_GEOMETRY_EXPORT TypeConverter<Point, gfx::Point> { | 15 class MOJO_GEOMETRY_EXPORT TypeConverter<Point, gfx::Point> { |
16 public: | 16 public: |
17 static Point ConvertFrom(const gfx::Point& input, Buffer* buf); | 17 static Point ConvertFrom(const gfx::Point& input, Buffer* buf); |
18 static gfx::Point ConvertTo(const Point& input); | 18 static gfx::Point ConvertTo(const Point& input); |
19 | 19 |
(...skipping 13 matching lines...) Expand all Loading... |
33 class MOJO_GEOMETRY_EXPORT TypeConverter<Rect, gfx::Rect> { | 33 class MOJO_GEOMETRY_EXPORT TypeConverter<Rect, gfx::Rect> { |
34 public: | 34 public: |
35 static Rect ConvertFrom(const gfx::Rect& input, Buffer* buf); | 35 static Rect ConvertFrom(const gfx::Rect& input, Buffer* buf); |
36 static gfx::Rect ConvertTo(const Rect& input); | 36 static gfx::Rect ConvertTo(const Rect& input); |
37 | 37 |
38 MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION(); | 38 MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION(); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace mojo | 41 } // namespace mojo |
42 | 42 |
43 #endif // MOJO_SERVICES_PUBLIC_CPP_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ | 43 #endif // MOJO_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_ |
OLD | NEW |