Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Side by Side Diff: ui/gfx/geometry/mojo/geometry_type_converters.h

Issue 2009073003: Move mojo/converters/geometry -> ui/gfx/geometry/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698