michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtaone at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: dictionary DOMFileMetadataParameters michael@0: { michael@0: boolean size = true; michael@0: boolean lastModified = true; michael@0: }; michael@0: michael@0: interface LockedFile : EventTarget michael@0: { michael@0: readonly attribute FileHandle? fileHandle; michael@0: readonly attribute FileMode mode; michael@0: readonly attribute boolean active; michael@0: attribute unsigned long long? location; michael@0: michael@0: [Throws] michael@0: FileRequest? getMetadata(optional DOMFileMetadataParameters parameters); michael@0: [Throws] michael@0: FileRequest? readAsArrayBuffer(unsigned long long size); michael@0: [Throws] michael@0: FileRequest? readAsText(unsigned long long size, michael@0: optional DOMString? encoding = null); michael@0: michael@0: [Throws] michael@0: FileRequest? write(ArrayBuffer value); michael@0: [Throws] michael@0: FileRequest? write(Blob value); michael@0: [Throws] michael@0: FileRequest? write(DOMString value); michael@0: [Throws] michael@0: FileRequest? append(ArrayBuffer value); michael@0: [Throws] michael@0: FileRequest? append(Blob value); michael@0: [Throws] michael@0: FileRequest? append(DOMString value); michael@0: [Throws] michael@0: FileRequest? truncate(optional unsigned long long size); michael@0: [Throws] michael@0: FileRequest? flush(); michael@0: [Throws] michael@0: void abort(); michael@0: michael@0: attribute EventHandler oncomplete; michael@0: attribute EventHandler onabort; michael@0: attribute EventHandler onerror; michael@0: };