| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 library interface_control_messages_mojom; | 5 library interface_control_messages_mojom; |
| 6 import 'package:mojo/bindings.dart' as bindings; | 6 import 'package:mojo/bindings.dart' as bindings; |
| 7 | 7 |
| 8 const int kRunMessageId = 4294967295; | 8 const int kRunMessageId = 4294967295; |
| 9 const int kRunOrClosePipeMessageId = 4294967294; | 9 const int kRunOrClosePipeMessageId = 4294967294; |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 Map toJson() { | 104 Map toJson() { |
| 105 Map map = new Map(); | 105 Map map = new Map(); |
| 106 map["reserved0"] = reserved0; | 106 map["reserved0"] = reserved0; |
| 107 map["reserved1"] = reserved1; | 107 map["reserved1"] = reserved1; |
| 108 map["queryVersion"] = queryVersion; | 108 map["queryVersion"] = queryVersion; |
| 109 return map; | 109 return map; |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 | 113 |
| 114 | |
| 115 | |
| 116 class RunResponseMessageParams extends bindings.Struct { | 114 class RunResponseMessageParams extends bindings.Struct { |
| 117 static const List<bindings.StructDataHeader> kVersions = const [ | 115 static const List<bindings.StructDataHeader> kVersions = const [ |
| 118 const bindings.StructDataHeader(24, 0) | 116 const bindings.StructDataHeader(24, 0) |
| 119 ]; | 117 ]; |
| 120 int reserved0 = 0; | 118 int reserved0 = 0; |
| 121 int reserved1 = 0; | 119 int reserved1 = 0; |
| 122 QueryVersionResult queryVersionResult = null; | 120 QueryVersionResult queryVersionResult = null; |
| 123 | 121 |
| 124 RunResponseMessageParams() : super(kVersions.last.size); | 122 RunResponseMessageParams() : super(kVersions.last.size); |
| 125 | 123 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 Map toJson() { | 205 Map toJson() { |
| 208 Map map = new Map(); | 206 Map map = new Map(); |
| 209 map["reserved0"] = reserved0; | 207 map["reserved0"] = reserved0; |
| 210 map["reserved1"] = reserved1; | 208 map["reserved1"] = reserved1; |
| 211 map["queryVersionResult"] = queryVersionResult; | 209 map["queryVersionResult"] = queryVersionResult; |
| 212 return map; | 210 return map; |
| 213 } | 211 } |
| 214 } | 212 } |
| 215 | 213 |
| 216 | 214 |
| 217 | |
| 218 | |
| 219 class QueryVersion extends bindings.Struct { | 215 class QueryVersion extends bindings.Struct { |
| 220 static const List<bindings.StructDataHeader> kVersions = const [ | 216 static const List<bindings.StructDataHeader> kVersions = const [ |
| 221 const bindings.StructDataHeader(8, 0) | 217 const bindings.StructDataHeader(8, 0) |
| 222 ]; | 218 ]; |
| 223 | 219 |
| 224 QueryVersion() : super(kVersions.last.size); | 220 QueryVersion() : super(kVersions.last.size); |
| 225 | 221 |
| 226 static QueryVersion deserialize(bindings.Message message) { | 222 static QueryVersion deserialize(bindings.Message message) { |
| 227 var decoder = new bindings.Decoder(message); | 223 var decoder = new bindings.Decoder(message); |
| 228 var result = decode(decoder); | 224 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 return "QueryVersion("")"; | 263 return "QueryVersion("")"; |
| 268 } | 264 } |
| 269 | 265 |
| 270 Map toJson() { | 266 Map toJson() { |
| 271 Map map = new Map(); | 267 Map map = new Map(); |
| 272 return map; | 268 return map; |
| 273 } | 269 } |
| 274 } | 270 } |
| 275 | 271 |
| 276 | 272 |
| 277 | |
| 278 | |
| 279 class QueryVersionResult extends bindings.Struct { | 273 class QueryVersionResult extends bindings.Struct { |
| 280 static const List<bindings.StructDataHeader> kVersions = const [ | 274 static const List<bindings.StructDataHeader> kVersions = const [ |
| 281 const bindings.StructDataHeader(16, 0) | 275 const bindings.StructDataHeader(16, 0) |
| 282 ]; | 276 ]; |
| 283 int version = 0; | 277 int version = 0; |
| 284 | 278 |
| 285 QueryVersionResult() : super(kVersions.last.size); | 279 QueryVersionResult() : super(kVersions.last.size); |
| 286 | 280 |
| 287 static QueryVersionResult deserialize(bindings.Message message) { | 281 static QueryVersionResult deserialize(bindings.Message message) { |
| 288 var decoder = new bindings.Decoder(message); | 282 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 } | 335 } |
| 342 | 336 |
| 343 Map toJson() { | 337 Map toJson() { |
| 344 Map map = new Map(); | 338 Map map = new Map(); |
| 345 map["version"] = version; | 339 map["version"] = version; |
| 346 return map; | 340 return map; |
| 347 } | 341 } |
| 348 } | 342 } |
| 349 | 343 |
| 350 | 344 |
| 351 | |
| 352 | |
| 353 class RunOrClosePipeMessageParams extends bindings.Struct { | 345 class RunOrClosePipeMessageParams extends bindings.Struct { |
| 354 static const List<bindings.StructDataHeader> kVersions = const [ | 346 static const List<bindings.StructDataHeader> kVersions = const [ |
| 355 const bindings.StructDataHeader(24, 0) | 347 const bindings.StructDataHeader(24, 0) |
| 356 ]; | 348 ]; |
| 357 int reserved0 = 0; | 349 int reserved0 = 0; |
| 358 int reserved1 = 0; | 350 int reserved1 = 0; |
| 359 RequireVersion requireVersion = null; | 351 RequireVersion requireVersion = null; |
| 360 | 352 |
| 361 RunOrClosePipeMessageParams() : super(kVersions.last.size); | 353 RunOrClosePipeMessageParams() : super(kVersions.last.size); |
| 362 | 354 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 Map toJson() { | 436 Map toJson() { |
| 445 Map map = new Map(); | 437 Map map = new Map(); |
| 446 map["reserved0"] = reserved0; | 438 map["reserved0"] = reserved0; |
| 447 map["reserved1"] = reserved1; | 439 map["reserved1"] = reserved1; |
| 448 map["requireVersion"] = requireVersion; | 440 map["requireVersion"] = requireVersion; |
| 449 return map; | 441 return map; |
| 450 } | 442 } |
| 451 } | 443 } |
| 452 | 444 |
| 453 | 445 |
| 454 | |
| 455 | |
| 456 class RequireVersion extends bindings.Struct { | 446 class RequireVersion extends bindings.Struct { |
| 457 static const List<bindings.StructDataHeader> kVersions = const [ | 447 static const List<bindings.StructDataHeader> kVersions = const [ |
| 458 const bindings.StructDataHeader(16, 0) | 448 const bindings.StructDataHeader(16, 0) |
| 459 ]; | 449 ]; |
| 460 int version = 0; | 450 int version = 0; |
| 461 | 451 |
| 462 RequireVersion() : super(kVersions.last.size); | 452 RequireVersion() : super(kVersions.last.size); |
| 463 | 453 |
| 464 static RequireVersion deserialize(bindings.Message message) { | 454 static RequireVersion deserialize(bindings.Message message) { |
| 465 var decoder = new bindings.Decoder(message); | 455 var decoder = new bindings.Decoder(message); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 | 509 |
| 520 Map toJson() { | 510 Map toJson() { |
| 521 Map map = new Map(); | 511 Map map = new Map(); |
| 522 map["version"] = version; | 512 map["version"] = version; |
| 523 return map; | 513 return map; |
| 524 } | 514 } |
| 525 } | 515 } |
| 526 | 516 |
| 527 | 517 |
| 528 | 518 |
| 529 | |
| 530 | |
| 531 | |
| OLD | NEW |