dom/webidl/MozNDEFRecord.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/MozNDEFRecord.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/* Copyright © 2013 Deutsche Telekom, Inc. */
    1.10 +
    1.11 +[Constructor(octet tnf, optional Uint8Array type, optional Uint8Array id, optional Uint8Array payload)]
    1.12 +interface MozNDEFRecord
    1.13 +{
    1.14 +  /**
    1.15 +   * Type Name Field (3-bits) - Specifies the NDEF record type in general.
    1.16 +   *   tnf_empty: 0x00
    1.17 +   *   tnf_well_known: 0x01
    1.18 +   *   tnf_mime_media: 0x02
    1.19 +   *   tnf_absolute_uri: 0x03
    1.20 +   *   tnf_external type: 0x04
    1.21 +   *   tnf_unknown: 0x05
    1.22 +   *   tnf_unchanged: 0x06
    1.23 +   *   tnf_reserved: 0x07
    1.24 +   */
    1.25 +  [Constant]
    1.26 +  readonly attribute octet tnf;
    1.27 +
    1.28 +  /**
    1.29 +   * type - Describes the content of the payload. This can be a mime type.
    1.30 +   */
    1.31 +  [Constant]
    1.32 +  readonly attribute Uint8Array? type;
    1.33 +
    1.34 +  /**
    1.35 +   * id - Identifer is application dependent.
    1.36 +   */
    1.37 +  [Constant]
    1.38 +  readonly attribute Uint8Array? id;
    1.39 +
    1.40 +  /**
    1.41 +   * payload - Binary data blob. The meaning of this field is application
    1.42 +   * dependent.
    1.43 +   */
    1.44 +  [Constant]
    1.45 +  readonly attribute Uint8Array? payload;
    1.46 +};

mercurial