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 module imported { | 5 module imported { |
6 | 6 |
7 // This sample just defines some types that are imported into | 7 // This sample just defines some types that are imported into |
8 // sample_service.mojom, to show how import works. | 8 // sample_service.mojom, to show how import works. |
9 | 9 |
10 enum Shape { | 10 enum Shape { |
11 SHAPE_RECTANGLE = 1, | 11 SHAPE_RECTANGLE = 1, |
12 SHAPE_CIRCLE, | 12 SHAPE_CIRCLE, |
13 SHAPE_TRIANGLE, | 13 SHAPE_TRIANGLE, |
14 }; | 14 }; |
15 | 15 |
16 struct Point { | 16 struct Point { |
17 int32 x; | 17 int32 x; |
18 int32 y; | 18 int32 y; |
19 }; | 19 }; |
20 | 20 |
21 } // module imported | 21 } // module imported |
OLD | NEW |