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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 const int8 V2 = 0; // 0 | 176 const int8 V2 = 0; // 0 |
177 const int8 V3 = 42; // An arbitrary valid value. | 177 const int8 V3 = 42; // An arbitrary valid value. |
178 const int8 V4 = 127; // Maximum | 178 const int8 V4 = 127; // Maximum |
179 | 179 |
180 const int16 V5 = -32768; // ... | 180 const int16 V5 = -32768; // ... |
181 const int16 V6 = -1; | 181 const int16 V6 = -1; |
182 const int16 V7 = 0; | 182 const int16 V7 = 0; |
183 const int16 V8 = 12345; | 183 const int16 V8 = 12345; |
184 const int16 V9 = 32767; | 184 const int16 V9 = 32767; |
185 | 185 |
186 const int32 V10 = -2147483648; | 186 // MSVC can't parse -2147483648 so V10 is intentionally off by one. |
| 187 // See http://msdn.microsoft.com/en-us/library/4kh09110.aspx |
| 188 // Tests may override V10. |
| 189 const int32 V10 = -2147483647; |
187 const int32 V11 = -1; | 190 const int32 V11 = -1; |
188 const int32 V12 = 0; | 191 const int32 V12 = 0; |
189 const int32 V13 = 1234567890; | 192 const int32 V13 = 1234567890; |
190 const int32 V14 = 2147483647; | 193 const int32 V14 = 2147483647; |
191 | 194 |
192 // The limits for JavaScript integers are +/- (2^53 - 1). | 195 // The limits for JavaScript integers are +/- (2^53 - 1). |
193 const int64 V15 = -9007199254740991; // Number.MIN_SAFE_INTEGER | 196 const int64 V15 = -9007199254740991; // Number.MIN_SAFE_INTEGER |
194 const int64 V16 = -1; | 197 const int64 V16 = -1; |
195 const int64 V17 = 0; | 198 const int64 V17 = 0; |
196 const int64 V18 = 1234567890123456; | 199 const int64 V18 = 1234567890123456; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 267 |
265 struct BitArrayValues { | 268 struct BitArrayValues { |
266 array<bool, 1> f0; | 269 array<bool, 1> f0; |
267 array<bool, 7> f1; | 270 array<bool, 7> f1; |
268 array<bool, 9> f2; | 271 array<bool, 9> f2; |
269 array<bool> f3; | 272 array<bool> f3; |
270 array<array<bool>> f4; | 273 array<array<bool>> f4; |
271 array<array<bool>?> f5; | 274 array<array<bool>?> f5; |
272 array<array<bool, 2>?> f6; | 275 array<array<bool, 2>?> f6; |
273 }; | 276 }; |
OLD | NEW |