| 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 nfc_mojom; | 5 library nfc_mojom; |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:mojo/bindings.dart' as bindings; | 7 import 'package:mojo/bindings.dart' as bindings; |
| 8 import 'package:mojo/core.dart' as core; | 8 import 'package:mojo/core.dart' as core; |
| 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; | 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 | 76 |
| 77 Map toJson() { | 77 Map toJson() { |
| 78 Map map = new Map(); | 78 Map map = new Map(); |
| 79 map["data"] = data; | 79 map["data"] = data; |
| 80 return map; | 80 return map; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 | 84 |
| 85 | |
| 86 | |
| 87 class _NfcTransmissionCancelParams extends bindings.Struct { | 85 class _NfcTransmissionCancelParams extends bindings.Struct { |
| 88 static const List<bindings.StructDataHeader> kVersions = const [ | 86 static const List<bindings.StructDataHeader> kVersions = const [ |
| 89 const bindings.StructDataHeader(8, 0) | 87 const bindings.StructDataHeader(8, 0) |
| 90 ]; | 88 ]; |
| 91 | 89 |
| 92 _NfcTransmissionCancelParams() : super(kVersions.last.size); | 90 _NfcTransmissionCancelParams() : super(kVersions.last.size); |
| 93 | 91 |
| 94 static _NfcTransmissionCancelParams deserialize(bindings.Message message) { | 92 static _NfcTransmissionCancelParams deserialize(bindings.Message message) { |
| 95 var decoder = new bindings.Decoder(message); | 93 var decoder = new bindings.Decoder(message); |
| 96 var result = decode(decoder); | 94 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 return "_NfcTransmissionCancelParams("")"; | 133 return "_NfcTransmissionCancelParams("")"; |
| 136 } | 134 } |
| 137 | 135 |
| 138 Map toJson() { | 136 Map toJson() { |
| 139 Map map = new Map(); | 137 Map map = new Map(); |
| 140 return map; | 138 return map; |
| 141 } | 139 } |
| 142 } | 140 } |
| 143 | 141 |
| 144 | 142 |
| 145 | |
| 146 | |
| 147 class _NfcReceiverOnReceivedNfcDataParams extends bindings.Struct { | 143 class _NfcReceiverOnReceivedNfcDataParams extends bindings.Struct { |
| 148 static const List<bindings.StructDataHeader> kVersions = const [ | 144 static const List<bindings.StructDataHeader> kVersions = const [ |
| 149 const bindings.StructDataHeader(16, 0) | 145 const bindings.StructDataHeader(16, 0) |
| 150 ]; | 146 ]; |
| 151 NfcData nfcData = null; | 147 NfcData nfcData = null; |
| 152 | 148 |
| 153 _NfcReceiverOnReceivedNfcDataParams() : super(kVersions.last.size); | 149 _NfcReceiverOnReceivedNfcDataParams() : super(kVersions.last.size); |
| 154 | 150 |
| 155 static _NfcReceiverOnReceivedNfcDataParams deserialize(bindings.Message messag
e) { | 151 static _NfcReceiverOnReceivedNfcDataParams deserialize(bindings.Message messag
e) { |
| 156 var decoder = new bindings.Decoder(message); | 152 var decoder = new bindings.Decoder(message); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 206 } |
| 211 | 207 |
| 212 Map toJson() { | 208 Map toJson() { |
| 213 Map map = new Map(); | 209 Map map = new Map(); |
| 214 map["nfcData"] = nfcData; | 210 map["nfcData"] = nfcData; |
| 215 return map; | 211 return map; |
| 216 } | 212 } |
| 217 } | 213 } |
| 218 | 214 |
| 219 | 215 |
| 220 | |
| 221 | |
| 222 class _NfcTransmitOnNextConnectionParams extends bindings.Struct { | 216 class _NfcTransmitOnNextConnectionParams extends bindings.Struct { |
| 223 static const List<bindings.StructDataHeader> kVersions = const [ | 217 static const List<bindings.StructDataHeader> kVersions = const [ |
| 224 const bindings.StructDataHeader(24, 0) | 218 const bindings.StructDataHeader(24, 0) |
| 225 ]; | 219 ]; |
| 226 NfcData nfcData = null; | 220 NfcData nfcData = null; |
| 227 Object transmission = null; | 221 Object transmission = null; |
| 228 | 222 |
| 229 _NfcTransmitOnNextConnectionParams() : super(kVersions.last.size); | 223 _NfcTransmitOnNextConnectionParams() : super(kVersions.last.size); |
| 230 | 224 |
| 231 static _NfcTransmitOnNextConnectionParams deserialize(bindings.Message message
) { | 225 static _NfcTransmitOnNextConnectionParams deserialize(bindings.Message message
) { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 "transmission: $transmission" ")"; | 291 "transmission: $transmission" ")"; |
| 298 } | 292 } |
| 299 | 293 |
| 300 Map toJson() { | 294 Map toJson() { |
| 301 throw new bindings.MojoCodecError( | 295 throw new bindings.MojoCodecError( |
| 302 'Object containing handles cannot be encoded to JSON.'); | 296 'Object containing handles cannot be encoded to JSON.'); |
| 303 } | 297 } |
| 304 } | 298 } |
| 305 | 299 |
| 306 | 300 |
| 307 | |
| 308 | |
| 309 class NfcTransmitOnNextConnectionResponseParams extends bindings.Struct { | 301 class NfcTransmitOnNextConnectionResponseParams extends bindings.Struct { |
| 310 static const List<bindings.StructDataHeader> kVersions = const [ | 302 static const List<bindings.StructDataHeader> kVersions = const [ |
| 311 const bindings.StructDataHeader(16, 0) | 303 const bindings.StructDataHeader(16, 0) |
| 312 ]; | 304 ]; |
| 313 bool success = false; | 305 bool success = false; |
| 314 | 306 |
| 315 NfcTransmitOnNextConnectionResponseParams() : super(kVersions.last.size); | 307 NfcTransmitOnNextConnectionResponseParams() : super(kVersions.last.size); |
| 316 | 308 |
| 317 static NfcTransmitOnNextConnectionResponseParams deserialize(bindings.Message
message) { | 309 static NfcTransmitOnNextConnectionResponseParams deserialize(bindings.Message
message) { |
| 318 var decoder = new bindings.Decoder(message); | 310 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 } | 363 } |
| 372 | 364 |
| 373 Map toJson() { | 365 Map toJson() { |
| 374 Map map = new Map(); | 366 Map map = new Map(); |
| 375 map["success"] = success; | 367 map["success"] = success; |
| 376 return map; | 368 return map; |
| 377 } | 369 } |
| 378 } | 370 } |
| 379 | 371 |
| 380 | 372 |
| 381 | |
| 382 | |
| 383 class _NfcRegisterParams extends bindings.Struct { | 373 class _NfcRegisterParams extends bindings.Struct { |
| 384 static const List<bindings.StructDataHeader> kVersions = const [ | 374 static const List<bindings.StructDataHeader> kVersions = const [ |
| 385 const bindings.StructDataHeader(8, 0) | 375 const bindings.StructDataHeader(8, 0) |
| 386 ]; | 376 ]; |
| 387 | 377 |
| 388 _NfcRegisterParams() : super(kVersions.last.size); | 378 _NfcRegisterParams() : super(kVersions.last.size); |
| 389 | 379 |
| 390 static _NfcRegisterParams deserialize(bindings.Message message) { | 380 static _NfcRegisterParams deserialize(bindings.Message message) { |
| 391 var decoder = new bindings.Decoder(message); | 381 var decoder = new bindings.Decoder(message); |
| 392 var result = decode(decoder); | 382 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 return "_NfcRegisterParams("")"; | 421 return "_NfcRegisterParams("")"; |
| 432 } | 422 } |
| 433 | 423 |
| 434 Map toJson() { | 424 Map toJson() { |
| 435 Map map = new Map(); | 425 Map map = new Map(); |
| 436 return map; | 426 return map; |
| 437 } | 427 } |
| 438 } | 428 } |
| 439 | 429 |
| 440 | 430 |
| 441 | |
| 442 | |
| 443 class _NfcUnregisterParams extends bindings.Struct { | 431 class _NfcUnregisterParams extends bindings.Struct { |
| 444 static const List<bindings.StructDataHeader> kVersions = const [ | 432 static const List<bindings.StructDataHeader> kVersions = const [ |
| 445 const bindings.StructDataHeader(8, 0) | 433 const bindings.StructDataHeader(8, 0) |
| 446 ]; | 434 ]; |
| 447 | 435 |
| 448 _NfcUnregisterParams() : super(kVersions.last.size); | 436 _NfcUnregisterParams() : super(kVersions.last.size); |
| 449 | 437 |
| 450 static _NfcUnregisterParams deserialize(bindings.Message message) { | 438 static _NfcUnregisterParams deserialize(bindings.Message message) { |
| 451 var decoder = new bindings.Decoder(message); | 439 var decoder = new bindings.Decoder(message); |
| 452 var result = decode(decoder); | 440 var result = decode(decoder); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 String toString() { | 478 String toString() { |
| 491 return "_NfcUnregisterParams("")"; | 479 return "_NfcUnregisterParams("")"; |
| 492 } | 480 } |
| 493 | 481 |
| 494 Map toJson() { | 482 Map toJson() { |
| 495 Map map = new Map(); | 483 Map map = new Map(); |
| 496 return map; | 484 return map; |
| 497 } | 485 } |
| 498 } | 486 } |
| 499 | 487 |
| 500 | |
| 501 | |
| 502 | |
| 503 const int _NfcTransmission_cancelName = 0; | 488 const int _NfcTransmission_cancelName = 0; |
| 504 | 489 |
| 505 | |
| 506 | |
| 507 class _NfcTransmissionServiceDescription implements service_describer.ServiceDes
cription { | 490 class _NfcTransmissionServiceDescription implements service_describer.ServiceDes
cription { |
| 508 dynamic getTopLevelInterface([Function responseFactory]) => | 491 dynamic getTopLevelInterface([Function responseFactory]) => |
| 509 responseFactory(null); | 492 responseFactory(null); |
| 510 | 493 |
| 511 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 494 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 512 responseFactory(null); | 495 responseFactory(null); |
| 513 | 496 |
| 514 dynamic getAllTypeDefinitions([Function responseFactory]) => | 497 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 515 responseFactory(null); | 498 responseFactory(null); |
| 516 } | 499 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 static service_describer.ServiceDescription get serviceDescription { | 667 static service_describer.ServiceDescription get serviceDescription { |
| 685 if (_cachedServiceDescription == null) { | 668 if (_cachedServiceDescription == null) { |
| 686 _cachedServiceDescription = new _NfcTransmissionServiceDescription(); | 669 _cachedServiceDescription = new _NfcTransmissionServiceDescription(); |
| 687 } | 670 } |
| 688 return _cachedServiceDescription; | 671 return _cachedServiceDescription; |
| 689 } | 672 } |
| 690 } | 673 } |
| 691 | 674 |
| 692 const int _NfcReceiver_onReceivedNfcDataName = 0; | 675 const int _NfcReceiver_onReceivedNfcDataName = 0; |
| 693 | 676 |
| 694 | |
| 695 | |
| 696 class _NfcReceiverServiceDescription implements service_describer.ServiceDescrip
tion { | 677 class _NfcReceiverServiceDescription implements service_describer.ServiceDescrip
tion { |
| 697 dynamic getTopLevelInterface([Function responseFactory]) => | 678 dynamic getTopLevelInterface([Function responseFactory]) => |
| 698 responseFactory(null); | 679 responseFactory(null); |
| 699 | 680 |
| 700 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 681 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 701 responseFactory(null); | 682 responseFactory(null); |
| 702 | 683 |
| 703 dynamic getAllTypeDefinitions([Function responseFactory]) => | 684 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 704 responseFactory(null); | 685 responseFactory(null); |
| 705 } | 686 } |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 _cachedServiceDescription = new _NfcReceiverServiceDescription(); | 859 _cachedServiceDescription = new _NfcReceiverServiceDescription(); |
| 879 } | 860 } |
| 880 return _cachedServiceDescription; | 861 return _cachedServiceDescription; |
| 881 } | 862 } |
| 882 } | 863 } |
| 883 | 864 |
| 884 const int _Nfc_transmitOnNextConnectionName = 0; | 865 const int _Nfc_transmitOnNextConnectionName = 0; |
| 885 const int _Nfc_registerName = 1; | 866 const int _Nfc_registerName = 1; |
| 886 const int _Nfc_unregisterName = 2; | 867 const int _Nfc_unregisterName = 2; |
| 887 | 868 |
| 888 | |
| 889 | |
| 890 class _NfcServiceDescription implements service_describer.ServiceDescription { | 869 class _NfcServiceDescription implements service_describer.ServiceDescription { |
| 891 dynamic getTopLevelInterface([Function responseFactory]) => | 870 dynamic getTopLevelInterface([Function responseFactory]) => |
| 892 responseFactory(null); | 871 responseFactory(null); |
| 893 | 872 |
| 894 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 873 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 895 responseFactory(null); | 874 responseFactory(null); |
| 896 | 875 |
| 897 dynamic getAllTypeDefinitions([Function responseFactory]) => | 876 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 898 responseFactory(null); | 877 responseFactory(null); |
| 899 } | 878 } |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 static service_describer.ServiceDescription get serviceDescription { | 1116 static service_describer.ServiceDescription get serviceDescription { |
| 1138 if (_cachedServiceDescription == null) { | 1117 if (_cachedServiceDescription == null) { |
| 1139 _cachedServiceDescription = new _NfcServiceDescription(); | 1118 _cachedServiceDescription = new _NfcServiceDescription(); |
| 1140 } | 1119 } |
| 1141 return _cachedServiceDescription; | 1120 return _cachedServiceDescription; |
| 1142 } | 1121 } |
| 1143 } | 1122 } |
| 1144 | 1123 |
| 1145 | 1124 |
| 1146 | 1125 |
| OLD | NEW |