Bumping manifests a=b2g-bump
[gecko.git] / dom / webidl / MozNDEFRecord.webidl
blob0448f7be0e49d1e3451f33924220acccea06dc3f
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 enum TNF {
9   "empty",
10   "well-known",
11   "media-type",
12   "absolute-uri",
13   "external",
14   "unknown",
15   "unchanged"
18 [Constructor(optional MozNDEFRecordOptions options)]
19 interface MozNDEFRecord
21   /**
22    * Type Name Field - Specifies the NDEF record type in general.
23    */
24   [Constant]
25   readonly attribute TNF tnf;
27   /**
28    * type - Describes the content of the payload. This can be a mime type.
29    */
30   [Constant]
31   readonly attribute Uint8Array? type;
33   /**
34    * id - Identifer is application dependent.
35    */
36   [Constant]
37   readonly attribute Uint8Array? id;
39   /**
40    * payload - Binary data blob. The meaning of this field is application
41    * dependent.
42    */
43   [Constant]
44   readonly attribute Uint8Array? payload;
46   /**
47    * Get the size of this NDEF Record.
48    */
49   [Constant]
50   readonly attribute unsigned long size;
53 dictionary MozNDEFRecordOptions {
54   TNF tnf = "empty";
55   Uint8Array type;
56   Uint8Array id;
57   Uint8Array payload;