Home | History | Annotate | Download | only in mojo
      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
      3 // found in the LICENSE file.
      4 
      5 module gfx.mojom;
      6 
      7 import "ui/gfx/geometry/mojo/geometry.mojom";
      8 
      9 // All functions on this interface echo their arguments to test StructTraits
     10 // serialization and deserialization.
     11 interface GeometryTraitsTestService {
     12   [Sync]
     13   EchoPoint(Point p) => (Point pass);
     14 
     15   [Sync]
     16   EchoPointF(PointF p) => (PointF pass);
     17 
     18   [Sync]
     19   EchoSize(Size s) => (Size pass);
     20 
     21   [Sync]
     22   EchoSizeF(SizeF s) => (SizeF pass);
     23 
     24   [Sync]
     25   EchoRect(Rect r) => (Rect pass);
     26 
     27   [Sync]
     28   EchoRectF(RectF r) => (RectF pass);
     29 
     30   [Sync]
     31   EchoInsets(Insets i) => (Insets pass);
     32 
     33   [Sync]
     34   EchoInsetsF(InsetsF i) => (InsetsF pass);
     35 
     36   [Sync]
     37   EchoVector2d(Vector2d v) => (Vector2d pass);
     38 
     39   [Sync]
     40   EchoVector2dF(Vector2dF v) => (Vector2dF pass);
     41 };
     42