| 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 surface_id_mojom; | 4 library surface_id_mojom; |
| 5 import 'package:mojo/bindings.dart' as bindings; | 5 import 'package:mojo/bindings.dart' as bindings; |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| 10 class SurfaceId extends bindings.Struct { | 10 class SurfaceId extends bindings.Struct { |
| 11 static const List<bindings.StructDataHeader> kVersions = const [ | 11 static const List<bindings.StructDataHeader> kVersions = const [ |
| 12 const bindings.StructDataHeader(16, 0) | 12 const bindings.StructDataHeader(16, 0) |
| 13 ]; | 13 ]; |
| 14 int local = 0; | 14 int local = 0; |
| 15 int idNamespace = 0; | 15 int idNamespace = 0; |
| 16 | 16 |
| 17 SurfaceId() : super(kVersions.last.size); | 17 SurfaceId() : super(kVersions.last.size); |
| 18 | 18 |
| 19 SurfaceId.init( |
| 20 int this.local, |
| 21 int this.idNamespace |
| 22 ) : super(kVersions.last.size); |
| 23 |
| 19 static SurfaceId deserialize(bindings.Message message) { | 24 static SurfaceId deserialize(bindings.Message message) { |
| 20 var decoder = new bindings.Decoder(message); | 25 var decoder = new bindings.Decoder(message); |
| 21 var result = decode(decoder); | 26 var result = decode(decoder); |
| 22 if (decoder.excessHandles != null) { | 27 if (decoder.excessHandles != null) { |
| 23 decoder.excessHandles.forEach((h) => h.close()); | 28 decoder.excessHandles.forEach((h) => h.close()); |
| 24 } | 29 } |
| 25 return result; | 30 return result; |
| 26 } | 31 } |
| 27 | 32 |
| 28 static SurfaceId decode(bindings.Decoder decoder0) { | 33 static SurfaceId decode(bindings.Decoder decoder0) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 Map toJson() { | 92 Map toJson() { |
| 88 Map map = new Map(); | 93 Map map = new Map(); |
| 89 map["local"] = local; | 94 map["local"] = local; |
| 90 map["idNamespace"] = idNamespace; | 95 map["idNamespace"] = idNamespace; |
| 91 return map; | 96 return map; |
| 92 } | 97 } |
| 93 } | 98 } |
| 94 | 99 |
| 95 | 100 |
| 96 | 101 |
| OLD | NEW |