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

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

Issue 304673002: Revert "Move geometry to mojo/services, extract input events to their own mojom" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « mojo/geometry/DEPS ('k') | mojo/geometry/geometry_type_converters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/geometry/DEPS ('k') | mojo/geometry/geometry_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698