Bumping manifests a=b2g-bump
[gecko.git] / dom / webidl / IDBFileHandle.webidl
blobad88084fb41aeec8ca0164a6f1afbae2215dc9c7
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 IDBFileMetadataParameters
7   boolean size = true;
8   boolean lastModified = true;
9 };
11 interface IDBFileHandle : EventTarget
13   readonly attribute IDBMutableFile? mutableFile;
14   // this is deprecated due to renaming in the spec
15   readonly attribute IDBMutableFile? fileHandle; // now mutableFile
16   readonly attribute FileMode mode;
17   readonly attribute boolean active;
18   attribute unsigned long long? location;
20   [Throws]
21   IDBFileRequest? getMetadata(optional IDBFileMetadataParameters parameters);
22   [Throws]
23   IDBFileRequest? readAsArrayBuffer(unsigned long long size);
24   [Throws]
25   IDBFileRequest? readAsText(unsigned long long size,
26                              optional DOMString? encoding = null);
28   [Throws]
29   IDBFileRequest? write(ArrayBuffer value);
30   [Throws]
31   IDBFileRequest? write(Blob value);
32   [Throws]
33   IDBFileRequest? write(DOMString value);
34   [Throws]
35   IDBFileRequest? append(ArrayBuffer value);
36   [Throws]
37   IDBFileRequest? append(Blob value);
38   [Throws]
39   IDBFileRequest? append(DOMString value);
40   [Throws]
41   IDBFileRequest? truncate(optional unsigned long long size);
42   [Throws]
43   IDBFileRequest? flush();
44   [Throws]
45   void abort();
47   attribute EventHandler oncomplete;
48   attribute EventHandler onabort;
49   attribute EventHandler onerror;