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.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtaone at http://mozilla.org/MPL/2.0/. */
5 dictionary DOMFileMetadataParameters
6 {
7 boolean size = true;
8 boolean lastModified = true;
9 };
11 interface LockedFile : EventTarget
12 {
13 readonly attribute FileHandle? fileHandle;
14 readonly attribute FileMode mode;
15 readonly attribute boolean active;
16 attribute unsigned long long? location;
18 [Throws]
19 FileRequest? getMetadata(optional DOMFileMetadataParameters parameters);
20 [Throws]
21 FileRequest? readAsArrayBuffer(unsigned long long size);
22 [Throws]
23 FileRequest? readAsText(unsigned long long size,
24 optional DOMString? encoding = null);
26 [Throws]
27 FileRequest? write(ArrayBuffer value);
28 [Throws]
29 FileRequest? write(Blob value);
30 [Throws]
31 FileRequest? write(DOMString value);
32 [Throws]
33 FileRequest? append(ArrayBuffer value);
34 [Throws]
35 FileRequest? append(Blob value);
36 [Throws]
37 FileRequest? append(DOMString value);
38 [Throws]
39 FileRequest? truncate(optional unsigned long long size);
40 [Throws]
41 FileRequest? flush();
42 [Throws]
43 void abort();
45 attribute EventHandler oncomplete;
46 attribute EventHandler onabort;
47 attribute EventHandler onerror;
48 };