OLD | NEW |
1 // WARNING: DO NOT EDIT. This file was generated by a program. | 1 // WARNING: DO NOT EDIT. This file was generated by a program. |
2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. | 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. |
3 | 3 |
4 library test_included_unions_mojom; | 4 library test_included_unions_mojom; |
5 import 'dart:collection'; | 5 import 'dart:collection'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 import 'dart:typed_data'; | 8 import 'dart:typed_data'; |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; | 10 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { | 97 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
98 return getRuntimeTypeInfo().typeMap; | 98 return getRuntimeTypeInfo().typeMap; |
99 } | 99 } |
100 | 100 |
101 var _runtimeTypeInfo; | 101 var _runtimeTypeInfo; |
102 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { | 102 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { |
103 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of | 103 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of |
104 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this | 104 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this |
105 // file. The string contains the base64 encoding of the gzip-compressed bytes. | 105 // file. The string contains the base64 encoding of the gzip-compressed bytes. |
106 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/5JggAABKG0ApdHFYTQHGo2uzgGJz4ikT
gOIFYA4JDLANd7bNdIqNz8rX68ktbhEzzMvOac0JTUlNC8zP08Cqg+knwmPPWBFSPYxoLkfJv4fCgIYs
ANRIOYFYhRHAPnyQCwOxDicieEediBmA+JEII4EYv2M/NxU/aLSlPzczLzUIn2QOfrFRckQRkFpUk5ms
n5mXklqUVpicmqxflJmXkpmXnqxPsguCBmfCbUxvhRkZbEeSGsunvBlgIYxsruY0fyLK7wYkMIL2Tx0w
Am1NxFHvHBAw4Je4QAIAAD//8B6whbAAgAA"; | 106 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/7yRsU/FIBDGeZroczBxMb5NR6eecXRye
YNx6aBDp4ZSrBgKBsriP6+HvSYUxdFLfr1COL6vX3dsrjPqN9Tz/aVvs56fu0/Wm+TcNXKFPDX1vn3cN
3ejfbPVJP1UPRihQy/7Z6Os2dFcnD/4Q2e7WeuxzP+y/0lVs9/rHDlFViZwfYlcIAWbP/wcI0fxPCIRC
N6BtoJrGKwdtIRXO0r4cBzilbfgnfh+g/fQaSVAmUm6Fy6kh06ZXpnBQ9Sdn60i9TZEeV/F0bGQM6OsU
3+H2XeXcmNJbul9eZ2QLi/9H8rkv/P4CgAA///OToRD0AIAAA=="; |
107 | 107 |
108 // Deserialize RuntimeTypeInfo | 108 // Deserialize RuntimeTypeInfo |
109 var bytes = BASE64.decode(serializedRuntimeTypeInfo); | 109 var bytes = BASE64.decode(serializedRuntimeTypeInfo); |
110 var unzippedBytes = new ZLibDecoder().convert(bytes); | 110 var unzippedBytes = new ZLibDecoder().convert(bytes); |
111 var bdata = new ByteData.view(unzippedBytes.buffer); | 111 var bdata = new ByteData.view(unzippedBytes.buffer); |
112 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); | 112 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); |
113 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); | 113 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); |
114 return _runtimeTypeInfo; | 114 return _runtimeTypeInfo; |
115 } | 115 } |
OLD | NEW |