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