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 import "sample_import.mojom" | 5 import "sample_import.mojom" |
6 import "sample_import2.mojom" | 6 import "sample_import2.mojom" |
7 | 7 |
8 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] | 8 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"] |
9 module sample { | 9 module sample { |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 uint8[] a18@18; | 69 uint8[] a18@18; |
70 string a19@19; | 70 string a19@19; |
71 | 71 |
72 Bar.Type a20@20 = BOTH; | 72 Bar.Type a20@20 = BOTH; |
73 imported.Point a21@21; | 73 imported.Point a21@21; |
74 imported.Thing a22@22 = default; | 74 imported.Thing a22@22 = default; |
75 | 75 |
76 uint64 a23@23 = 0xFFFFFFFFFFFFFFFF; | 76 uint64 a23@23 = 0xFFFFFFFFFFFFFFFF; |
77 int64 a24@24 = 0x123456789; | 77 int64 a24@24 = 0x123456789; |
78 int64 a25@25 = -0x123456789; | 78 int64 a25@25 = -0x123456789; |
| 79 |
| 80 double a26@26 = Inf; |
| 81 double a27@27 = +Inf; |
| 82 double a28@28 = -Inf; |
| 83 double a29@29 = NaN; |
79 }; | 84 }; |
80 | 85 |
81 struct StructWithHoleV1 { | 86 struct StructWithHoleV1 { |
82 int32 v1 = 1; | 87 int32 v1 = 1; |
83 int64 v2 = 2; | 88 int64 v2 = 2; |
84 }; | 89 }; |
85 | 90 |
86 struct StructWithHoleV2 { | 91 struct StructWithHoleV2 { |
87 int32 v1 = 1; | 92 int32 v1 = 1; |
88 int64 v2 = 2; | 93 int64 v2 = 2; |
(...skipping 15 matching lines...) Expand all Loading... |
104 DidFrobinate@0(int32 result@0); | 109 DidFrobinate@0(int32 result@0); |
105 }; | 110 }; |
106 | 111 |
107 // This interface is referenced above where it is defined. It also refers to | 112 // This interface is referenced above where it is defined. It also refers to |
108 // itself from a method. | 113 // itself from a method. |
109 interface Port { | 114 interface Port { |
110 PostMessage@0(string message_text@0, Port port@1); | 115 PostMessage@0(string message_text@0, Port port@1); |
111 }; | 116 }; |
112 | 117 |
113 } | 118 } |
OLD | NEW |