| Index: mojo/public/bindings/tests/sample_import2.mojom
|
| diff --git a/mojo/public/bindings/tests/sample_import2.mojom b/mojo/public/bindings/tests/sample_import2.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..07c80f0d6bff104590376a3a847022a652424c9b
|
| --- /dev/null
|
| +++ b/mojo/public/bindings/tests/sample_import2.mojom
|
| @@ -0,0 +1,29 @@
|
| +// 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"
|
| +
|
| +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 {
|
| + COLOR_RED,
|
| + COLOR_BLACK,
|
| +};
|
| +
|
| +struct Size {
|
| + int32 width;
|
| + int32 height;
|
| +};
|
| +
|
| +struct Thing {
|
| + int32 shape;
|
| + int32 color;
|
| + Point location = {0, 0};
|
| + Size size;
|
| +};
|
| +
|
| +} // module imported
|
|
|