mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1073421 - B2G NFC: remove NDEF_Formatable and NDEF_Writable. r=smaug, dimi
This commit is contained in:
parent
b6744ba68f
commit
1842c74895
@ -8,7 +8,7 @@
|
||||
namespace mozilla {
|
||||
|
||||
#define NFCD_MAJOR_VERSION 1
|
||||
#define NFCD_MINOR_VERSION 11
|
||||
#define NFCD_MINOR_VERSION 12
|
||||
|
||||
enum NfcRequest {
|
||||
ConfigReq = 0,
|
||||
|
@ -31,20 +31,6 @@ function MozNFCTag() {
|
||||
this._nfcContentHelper = Cc["@mozilla.org/nfc/content-helper;1"]
|
||||
.getService(Ci.nsINfcContentHelper);
|
||||
this.session = null;
|
||||
|
||||
// Map WebIDL declared enum map names to integer
|
||||
this._techTypesMap = [];
|
||||
this._techTypesMap['NFC_A'] = 0;
|
||||
this._techTypesMap['NFC_B'] = 1;
|
||||
this._techTypesMap['NFC_ISO_DEP'] = 2;
|
||||
this._techTypesMap['NFC_F'] = 3;
|
||||
this._techTypesMap['NFC_V'] = 4;
|
||||
this._techTypesMap['NDEF'] = 5;
|
||||
this._techTypesMap['NDEF_FORMATABLE'] = 6;
|
||||
this._techTypesMap['MIFARE_CLASSIC'] = 7;
|
||||
this._techTypesMap['MIFARE_ULTRALIGHT'] = 8;
|
||||
this._techTypesMap['NFC_BARCODE'] = 9;
|
||||
this._techTypesMap['P2P'] = 10;
|
||||
}
|
||||
MozNFCTag.prototype = {
|
||||
_nfcContentHelper: null,
|
||||
@ -55,8 +41,6 @@ MozNFCTag.prototype = {
|
||||
this.session = aSessionToken;
|
||||
},
|
||||
|
||||
_techTypesMap: null,
|
||||
|
||||
// NFCTag interface:
|
||||
readNDEF: function readNDEF() {
|
||||
return this._nfcContentHelper.readNDEF(this._window, this.session);
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
enum NFCTechType {
|
||||
"NDEF",
|
||||
"NDEF_WRITABLE",
|
||||
"NDEF_FORMATABLE",
|
||||
"P2P",
|
||||
"NFC_A",
|
||||
"NFC_B",
|
||||
|
Loading…
Reference in New Issue
Block a user