dom/webidl/MozNDEFRecord.webidl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 /* Copyright © 2013 Deutsche Telekom, Inc. */
     8 [Constructor(octet tnf, optional Uint8Array type, optional Uint8Array id, optional Uint8Array payload)]
     9 interface MozNDEFRecord
    10 {
    11   /**
    12    * Type Name Field (3-bits) - Specifies the NDEF record type in general.
    13    *   tnf_empty: 0x00
    14    *   tnf_well_known: 0x01
    15    *   tnf_mime_media: 0x02
    16    *   tnf_absolute_uri: 0x03
    17    *   tnf_external type: 0x04
    18    *   tnf_unknown: 0x05
    19    *   tnf_unchanged: 0x06
    20    *   tnf_reserved: 0x07
    21    */
    22   [Constant]
    23   readonly attribute octet tnf;
    25   /**
    26    * type - Describes the content of the payload. This can be a mime type.
    27    */
    28   [Constant]
    29   readonly attribute Uint8Array? type;
    31   /**
    32    * id - Identifer is application dependent.
    33    */
    34   [Constant]
    35   readonly attribute Uint8Array? id;
    37   /**
    38    * payload - Binary data blob. The meaning of this field is application
    39    * dependent.
    40    */
    41   [Constant]
    42   readonly attribute Uint8Array? payload;
    43 };

mercurial