| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 [JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"] | 5 [JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"] |
| 6 module mojo.test; | 6 module mojo.test; |
| 7 | 7 |
| 8 import "mojo/public/interfaces/bindings/tests/rect.mojom"; | 8 import "mojo/public/interfaces/bindings/tests/rect.mojom"; |
| 9 | 9 |
| 10 struct NamedRegion { | 10 struct NamedRegion { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 Rect? f_rect; | 345 Rect? f_rect; |
| 346 [MinVersion=3] | 346 [MinVersion=3] |
| 347 string? f_string; | 347 string? f_string; |
| 348 [MinVersion=5] | 348 [MinVersion=5] |
| 349 array<int8>? f_array; | 349 array<int8>? f_array; |
| 350 [MinVersion=7] | 350 [MinVersion=7] |
| 351 handle<message_pipe>? f_message_pipe; | 351 handle<message_pipe>? f_message_pipe; |
| 352 [MinVersion=7] | 352 [MinVersion=7] |
| 353 bool f_bool; | 353 bool f_bool; |
| 354 }; | 354 }; |
| 355 |
| 356 // Used to verify that interfaces that are struct members can be defined in the |
| 357 // same file. |
| 358 |
| 359 interface SomeInterface { |
| 360 SomeMethod(RectPair pair) => (RectPair other_pair); |
| 361 }; |
| 362 |
| 363 struct ContainsInterface { |
| 364 SomeInterface some_interface; |
| 365 }; |
| OLD | NEW |