Index: ui/gfx/geometry/mojo/geometry_traits_test_service.mojom |
diff --git a/ui/gfx/geometry/mojo/geometry_traits_test_service.mojom b/ui/gfx/geometry/mojo/geometry_traits_test_service.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..63b9f99bd381db2688582ff8729c3c476a93d53e |
--- /dev/null |
+++ b/ui/gfx/geometry/mojo/geometry_traits_test_service.mojom |
@@ -0,0 +1,35 @@ |
+// 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. |
+ |
+module gfx.mojom; |
+ |
+import "ui/gfx/geometry/mojo/geometry.mojom"; |
+ |
+// All functions on this interface echo their arguments to test StructTraits |
+// serialization and deserialization. |
+interface GeometryTraitsTestService { |
+ [Sync] |
+ EchoPoint(Point p) => (Point pass); |
+ |
+ [Sync] |
+ EchoPointF(PointF p) => (PointF pass); |
+ |
+ [Sync] |
+ EchoSize(Size s) => (Size pass); |
+ |
+ [Sync] |
+ EchoSizeF(SizeF s) => (SizeF pass); |
+ |
+ [Sync] |
+ EchoRect(Rect r) => (Rect pass); |
+ |
+ [Sync] |
+ EchoRectF(RectF r) => (RectF pass); |
+ |
+ [Sync] |
+ EchoInsets(Insets i) => (Insets pass); |
+ |
+ [Sync] |
+ EchoInsetsF(InsetsF i) => (InsetsF pass); |
+}; |