| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import "sample_import.mojom" | 5 import "sample_import.mojom" |
| 6 | 6 |
| 7 [JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"] | 7 [JavaPackage="org.chromium.mojo.bindings.test.imported"] |
| 8 module imported { | 8 module imported { |
| 9 | 9 |
| 10 // This sample adds more types and constants to the "imported" namespace, | 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. | 11 // to test a bug with importing multiple modules with the same namespace. |
| 12 | 12 |
| 13 enum Color { | 13 enum Color { |
| 14 COLOR_RED, | 14 COLOR_RED, |
| 15 COLOR_BLACK, | 15 COLOR_BLACK, |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 struct Size { | 18 struct Size { |
| 19 int32 width; | 19 int32 width; |
| 20 int32 height; | 20 int32 height; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 struct Thing { | 23 struct Thing { |
| 24 imported.Shape shape = SHAPE_RECTANGLE; | 24 imported.Shape shape = SHAPE_RECTANGLE; |
| 25 int32 color = COLOR_BLACK; | 25 int32 color = COLOR_BLACK; |
| 26 Point location; | 26 Point location; |
| 27 Size size; | 27 Size size; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // module imported | 30 } // module imported |
| OLD | NEW |