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