dom/webidl/LockedFile.webidl

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:77962d57c29e
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/. */
4
5 dictionary DOMFileMetadataParameters
6 {
7 boolean size = true;
8 boolean lastModified = true;
9 };
10
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;
17
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);
25
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();
44
45 attribute EventHandler oncomplete;
46 attribute EventHandler onabort;
47 attribute EventHandler onerror;
48 };

mercurial