aboutsummaryrefslogtreecommitdiff
path: root/mojo/public/interfaces/bindings/tests/rect.mojom
blob: 4ecc4d9660ce705ee937502925b80d68c5001826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 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.

[JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"]
module mojo.test;

struct Rect {
  int32 x;
  int32 y;
  int32 width;
  int32 height;
};

// A copy of Rect that is typemapped differently in the chromium and blink
// variants.
struct TypemappedRect {
  int32 x;
  int32 y;
  int32 width;
  int32 height;
};

// A copy of Rect that is typemapped to the same custom type in the chromium and
// blink variants.
struct SharedTypemappedRect {
  int32 x;
  int32 y;
  int32 width;
  int32 height;
};