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 #ifndef MOJO_CONVERTERS_TRANSFORM_TRANSFORM_CONVERTERS_H_ | |
6 #define MOJO_CONVERTERS_TRANSFORM_TRANSFORM_CONVERTERS_H_ | |
7 | |
8 #include "mojo/converters/transform/mojo_transform_export.h" | |
9 #include "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojo m.h" | |
msw
2015/02/13 18:25:35
nit q: Would it be useful at all to split the Tran
wtc
2015/02/13 18:59:09
Yes, I had the same idea and implemented it in pat
| |
10 #include "ui/gfx/transform.h" | |
11 | |
12 namespace mojo { | |
13 | |
14 template <> | |
15 struct MOJO_TRANSFORM_EXPORT TypeConverter<TransformPtr, gfx::Transform> { | |
16 static TransformPtr Convert(const gfx::Transform& input); | |
17 }; | |
18 template <> | |
19 struct MOJO_TRANSFORM_EXPORT TypeConverter<gfx::Transform, TransformPtr> { | |
20 static gfx::Transform Convert(const TransformPtr& input); | |
21 }; | |
22 | |
23 } // namespace mojo | |
24 | |
25 #endif // MOJO_CONVERTERS_TRANSFORM_TRANSFORM_CONVERTERS_H_ | |
OLD | NEW |