summaryrefslogtreecommitdiffstats
path: root/mojo/public/interfaces/bindings/tests/sample_import2.mojom
blob: 04c77edc476a5e3de77c2ab6126afd269db18d95 (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
// 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.

import "sample_import.mojom";

[JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"]
module imported {

// This sample adds more types and constants to the "imported" namespace,
// to test a bug with importing multiple modules with the same namespace.

enum Color {
  RED,
  BLACK,
};

struct Size {
  int32 width;
  int32 height;
};

struct Thing {
  imported.Shape shape = RECTANGLE;
  int32 color = Color.BLACK;
  Point location;
  Size size;
};

}  // module imported