| 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 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
| 10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 } | 501 } |
| 502 | 502 |
| 503 | 503 |
| 504 | 504 |
| 505 | 505 |
| 506 const int _NfcTransmission_cancelName = 0; | 506 const int _NfcTransmission_cancelName = 0; |
| 507 | 507 |
| 508 | 508 |
| 509 | 509 |
| 510 class _NfcTransmissionServiceDescription implements service_describer.ServiceDes
cription { | 510 class _NfcTransmissionServiceDescription implements service_describer.ServiceDes
cription { |
| 511 dynamic getTopLevelInterface([Function responseFactory]) => null; | 511 dynamic getTopLevelInterface([Function responseFactory]) => |
| 512 responseFactory(null); |
| 512 | 513 |
| 513 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 514 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 515 responseFactory(null); |
| 514 | 516 |
| 515 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 517 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 518 responseFactory(null); |
| 516 } | 519 } |
| 517 | 520 |
| 518 abstract class NfcTransmission { | 521 abstract class NfcTransmission { |
| 519 static const String serviceName = null; | 522 static const String serviceName = null; |
| 520 void cancel(); | 523 void cancel(); |
| 521 } | 524 } |
| 522 | 525 |
| 523 | 526 |
| 524 class _NfcTransmissionProxyImpl extends bindings.Proxy { | 527 class _NfcTransmissionProxyImpl extends bindings.Proxy { |
| 525 _NfcTransmissionProxyImpl.fromEndpoint( | 528 _NfcTransmissionProxyImpl.fromEndpoint( |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 _impl = d; | 678 _impl = d; |
| 676 } | 679 } |
| 677 | 680 |
| 678 String toString() { | 681 String toString() { |
| 679 var superString = super.toString(); | 682 var superString = super.toString(); |
| 680 return "NfcTransmissionStub($superString)"; | 683 return "NfcTransmissionStub($superString)"; |
| 681 } | 684 } |
| 682 | 685 |
| 683 int get version => 0; | 686 int get version => 0; |
| 684 | 687 |
| 685 service_describer.ServiceDescription get serviceDescription => | 688 static service_describer.ServiceDescription get serviceDescription => |
| 686 new _NfcTransmissionServiceDescription(); | 689 new _NfcTransmissionServiceDescription(); |
| 687 } | 690 } |
| 688 | 691 |
| 689 const int _NfcReceiver_onReceivedNfcDataName = 0; | 692 const int _NfcReceiver_onReceivedNfcDataName = 0; |
| 690 | 693 |
| 691 | 694 |
| 692 | 695 |
| 693 class _NfcReceiverServiceDescription implements service_describer.ServiceDescrip
tion { | 696 class _NfcReceiverServiceDescription implements service_describer.ServiceDescrip
tion { |
| 694 dynamic getTopLevelInterface([Function responseFactory]) => null; | 697 dynamic getTopLevelInterface([Function responseFactory]) => |
| 698 responseFactory(null); |
| 695 | 699 |
| 696 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 700 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 701 responseFactory(null); |
| 697 | 702 |
| 698 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 703 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 704 responseFactory(null); |
| 699 } | 705 } |
| 700 | 706 |
| 701 abstract class NfcReceiver { | 707 abstract class NfcReceiver { |
| 702 static const String serviceName = "nfc::NfcReceiver"; | 708 static const String serviceName = "nfc::NfcReceiver"; |
| 703 void onReceivedNfcData(NfcData nfcData); | 709 void onReceivedNfcData(NfcData nfcData); |
| 704 } | 710 } |
| 705 | 711 |
| 706 | 712 |
| 707 class _NfcReceiverProxyImpl extends bindings.Proxy { | 713 class _NfcReceiverProxyImpl extends bindings.Proxy { |
| 708 _NfcReceiverProxyImpl.fromEndpoint( | 714 _NfcReceiverProxyImpl.fromEndpoint( |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 _impl = d; | 865 _impl = d; |
| 860 } | 866 } |
| 861 | 867 |
| 862 String toString() { | 868 String toString() { |
| 863 var superString = super.toString(); | 869 var superString = super.toString(); |
| 864 return "NfcReceiverStub($superString)"; | 870 return "NfcReceiverStub($superString)"; |
| 865 } | 871 } |
| 866 | 872 |
| 867 int get version => 0; | 873 int get version => 0; |
| 868 | 874 |
| 869 service_describer.ServiceDescription get serviceDescription => | 875 static service_describer.ServiceDescription get serviceDescription => |
| 870 new _NfcReceiverServiceDescription(); | 876 new _NfcReceiverServiceDescription(); |
| 871 } | 877 } |
| 872 | 878 |
| 873 const int _Nfc_transmitOnNextConnectionName = 0; | 879 const int _Nfc_transmitOnNextConnectionName = 0; |
| 874 const int _Nfc_registerName = 1; | 880 const int _Nfc_registerName = 1; |
| 875 const int _Nfc_unregisterName = 2; | 881 const int _Nfc_unregisterName = 2; |
| 876 | 882 |
| 877 | 883 |
| 878 | 884 |
| 879 class _NfcServiceDescription implements service_describer.ServiceDescription { | 885 class _NfcServiceDescription implements service_describer.ServiceDescription { |
| 880 dynamic getTopLevelInterface([Function responseFactory]) => null; | 886 dynamic getTopLevelInterface([Function responseFactory]) => |
| 887 responseFactory(null); |
| 881 | 888 |
| 882 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 889 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 890 responseFactory(null); |
| 883 | 891 |
| 884 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 892 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 893 responseFactory(null); |
| 885 } | 894 } |
| 886 | 895 |
| 887 abstract class Nfc { | 896 abstract class Nfc { |
| 888 static const String serviceName = "nfc::Nfc"; | 897 static const String serviceName = "nfc::Nfc"; |
| 889 dynamic transmitOnNextConnection(NfcData nfcData,Object transmission,[Function
responseFactory = null]); | 898 dynamic transmitOnNextConnection(NfcData nfcData,Object transmission,[Function
responseFactory = null]); |
| 890 void register(); | 899 void register(); |
| 891 void unregister(); | 900 void unregister(); |
| 892 } | 901 } |
| 893 | 902 |
| 894 | 903 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 _impl = d; | 1125 _impl = d; |
| 1117 } | 1126 } |
| 1118 | 1127 |
| 1119 String toString() { | 1128 String toString() { |
| 1120 var superString = super.toString(); | 1129 var superString = super.toString(); |
| 1121 return "NfcStub($superString)"; | 1130 return "NfcStub($superString)"; |
| 1122 } | 1131 } |
| 1123 | 1132 |
| 1124 int get version => 0; | 1133 int get version => 0; |
| 1125 | 1134 |
| 1126 service_describer.ServiceDescription get serviceDescription => | 1135 static service_describer.ServiceDescription get serviceDescription => |
| 1127 new _NfcServiceDescription(); | 1136 new _NfcServiceDescription(); |
| 1128 } | 1137 } |
| 1129 | 1138 |
| 1130 | 1139 |
| 1131 | 1140 |
| OLD | NEW |