mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
602507c295
From 152d8835dedf6592d274478bac369530f98c3935 Mon Sep 17 00:00:00 2001 --- dom/nfc/NfcContentHelper.js | 6 ++++-- dom/nfc/gonk/NfcGonkMessage.h | 2 +- dom/nfc/gonk/NfcMessageHandler.cpp | 17 +++++++++++------ dom/nfc/gonk/NfcOptions.h | 1 + dom/nfc/gonk/NfcService.cpp | 5 +++++ dom/nfc/nsINfcContentHelper.idl | 4 +++- dom/nfc/nsNfc.js | 2 ++ dom/webidl/MozNFCTag.webidl | 5 +++++ dom/webidl/NfcOptions.webidl | 1 + 9 files changed, 33 insertions(+), 10 deletions(-)
55 lines
965 B
Plaintext
55 lines
965 B
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
enum RFState {
|
|
"idle",
|
|
"listen",
|
|
"discovery"
|
|
};
|
|
|
|
dictionary NfcCommandOptions
|
|
{
|
|
DOMString type = "";
|
|
|
|
long sessionId;
|
|
DOMString requestId = "";
|
|
|
|
RFState rfState;
|
|
|
|
long techType;
|
|
|
|
boolean isP2P;
|
|
sequence<MozNDEFRecordOptions> records;
|
|
};
|
|
|
|
dictionary NfcEventOptions
|
|
{
|
|
DOMString type = "";
|
|
|
|
long status;
|
|
NfcErrorMessage errorMsg;
|
|
long sessionId;
|
|
DOMString requestId;
|
|
|
|
long majorVersion;
|
|
long minorVersion;
|
|
|
|
boolean isP2P;
|
|
sequence<NFCTechType> techList;
|
|
Uint8Array tagId;
|
|
sequence<MozNDEFRecordOptions> records;
|
|
|
|
NFCTagType tagType;
|
|
long maxNDEFSize;
|
|
boolean isReadOnly;
|
|
boolean isFormatable;
|
|
|
|
RFState rfState;
|
|
|
|
// HCI Event Transaction fields
|
|
DOMString origin;
|
|
Uint8Array aid;
|
|
Uint8Array payload;
|
|
};
|