| 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 // This sample just defines some types that are imported into | |
| 10 // sample_service.mojom, to show how import works. | |
| 11 | |
| 12 enum Shape { | |
| 13 RECTANGLE = 1, | |
| 14 CIRCLE, | |
| 15 TRIANGLE, | |
| 16 LAST = TRIANGLE, | |
| 17 }; | |
| 18 | |
| 19 // These enum values should not interfere with those of Shape above. | |
| 20 enum AnotherShape { | |
| 21 RECTANGLE = 10, | |
| 22 CIRCLE, | |
| 23 TRIANGLE, | |
| 24 }; | |
| 25 | |
| 26 enum YetAnotherShape { | |
| 27 RECTANGLE = 20, | |
| 28 CIRCLE, | |
| 29 TRIANGLE, | |
| 30 }; | |
| 31 | |
| 32 struct Point { | |
| 33 int32 x; | |
| 34 int32 y; | |
| 35 }; | |
| 36 | |
| 37 interface ImportedInterface { | |
| 38 DoSomething(); | |
| 39 }; | |
| OLD | NEW |