gecko/dom/webidl/NfcOptions.webidl
Yoshi Huang 602507c295 Bug 1115465 - Add id attribute to NFCTag. r=smaug, dimi
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(-)
2014-12-26 16:07:45 +08:00

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;
};