Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtaone at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | dictionary DOMFileMetadataParameters |
michael@0 | 6 | { |
michael@0 | 7 | boolean size = true; |
michael@0 | 8 | boolean lastModified = true; |
michael@0 | 9 | }; |
michael@0 | 10 | |
michael@0 | 11 | interface LockedFile : EventTarget |
michael@0 | 12 | { |
michael@0 | 13 | readonly attribute FileHandle? fileHandle; |
michael@0 | 14 | readonly attribute FileMode mode; |
michael@0 | 15 | readonly attribute boolean active; |
michael@0 | 16 | attribute unsigned long long? location; |
michael@0 | 17 | |
michael@0 | 18 | [Throws] |
michael@0 | 19 | FileRequest? getMetadata(optional DOMFileMetadataParameters parameters); |
michael@0 | 20 | [Throws] |
michael@0 | 21 | FileRequest? readAsArrayBuffer(unsigned long long size); |
michael@0 | 22 | [Throws] |
michael@0 | 23 | FileRequest? readAsText(unsigned long long size, |
michael@0 | 24 | optional DOMString? encoding = null); |
michael@0 | 25 | |
michael@0 | 26 | [Throws] |
michael@0 | 27 | FileRequest? write(ArrayBuffer value); |
michael@0 | 28 | [Throws] |
michael@0 | 29 | FileRequest? write(Blob value); |
michael@0 | 30 | [Throws] |
michael@0 | 31 | FileRequest? write(DOMString value); |
michael@0 | 32 | [Throws] |
michael@0 | 33 | FileRequest? append(ArrayBuffer value); |
michael@0 | 34 | [Throws] |
michael@0 | 35 | FileRequest? append(Blob value); |
michael@0 | 36 | [Throws] |
michael@0 | 37 | FileRequest? append(DOMString value); |
michael@0 | 38 | [Throws] |
michael@0 | 39 | FileRequest? truncate(optional unsigned long long size); |
michael@0 | 40 | [Throws] |
michael@0 | 41 | FileRequest? flush(); |
michael@0 | 42 | [Throws] |
michael@0 | 43 | void abort(); |
michael@0 | 44 | |
michael@0 | 45 | attribute EventHandler oncomplete; |
michael@0 | 46 | attribute EventHandler onabort; |
michael@0 | 47 | attribute EventHandler onerror; |
michael@0 | 48 | }; |