• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2014 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[JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"]
6module imported;
7
8import "sample_import.mojom";
9
10// This sample adds more types and constants to the "imported" namespace,
11// to test a bug with importing multiple modules with the same namespace.
12
13enum Color {
14  RED,
15  BLACK,
16};
17
18struct Size {
19  int32 width;
20  int32 height;
21};
22
23struct Thing {
24  imported.Shape shape = RECTANGLE;
25  imported.Color color = Color.BLACK;
26  Point location;
27  Size size;
28};
29