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

Unified Diff: ui/gfx/geometry/mojo/geometry.typemap

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/geometry/mojo/geometry.typemap
diff --git a/ui/gfx/geometry/mojo/geometry.typemap b/ui/gfx/geometry/mojo/geometry.typemap
new file mode 100644
index 0000000000000000000000000000000000000000..b7e8a50e020149f7fe16c8a38fbcdccf96991a1e
--- /dev/null
+++ b/ui/gfx/geometry/mojo/geometry.typemap
@@ -0,0 +1,27 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+mojom = "//ui/gfx/geometry/mojo/geometry.mojom"
+public_headers = [
+ "//ui/gfx/geometry/point.h",
+ "//ui/gfx/geometry/point_f.h",
+ "//ui/gfx/geometry/size.h",
+ "//ui/gfx/geometry/rect.h",
+ "//ui/gfx/geometry/rect_f.h",
+ "//ui/gfx/geometry/insets.h",
+]
+traits_headers = [ "//ui/gfx/geometry/mojo/geometry_struct_traits.h" ]
+deps = [
+ "//ui/gfx/geometry",
+]
+type_mappings = [
+ "mojo.Point=gfx::Point",
+ "mojo.PointF=gfx::PointF",
+ "mojo.Size=gfx::Size",
+ "mojo.SizeF=gfx::SizeF",
+ "mojo.Rect=gfx::Rect",
+ "mojo.RectF=gfx::RectF",
+ "mojo.Insets=gfx::Insets",
+ "mojo.InsetsF=gfx::InsetsF",
+]

Powered by Google App Engine
This is Rietveld 408576698