OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 mojo.test; | 5 module mojo.test; |
6 | 6 |
| 7 import "mojo/public/interfaces/bindings/tests/rect.mojom"; |
| 8 |
7 // Used to verify that structs can be declared with no body in mojom. | 9 // Used to verify that structs can be declared with no body in mojom. |
8 | 10 |
9 [native=True] | 11 [native=True] |
10 struct PickledStruct; | 12 struct PickledStruct; |
11 | 13 |
12 interface PicklePasser { | 14 interface PicklePasser { |
13 PassPickle(PickledStruct pickle) => (PickledStruct passed); | 15 PassPickle(PickledStruct pickle) => (PickledStruct passed); |
14 }; | 16 }; |
| 17 |
| 18 // Used to verify support for native serialization of mojom-defined structs. |
| 19 // This is tested with a typemap applied to the Rect type from rect.mojom. |
| 20 |
| 21 interface RectService { |
| 22 AddRect(Rect r); |
| 23 GetLargestRect() => (Rect largest); |
| 24 }; |
| 25 |
OLD | NEW |