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