Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsIDOMEventTarget.idl"
8 interface nsIDOMEventListener;
9 interface nsIDOMBlob;
11 [scriptable, builtinclass, uuid(39ea2c73-7711-4cea-9f73-3166c24dfa69)]
12 interface nsIDOMFileReader : nsIDOMEventTarget
13 {
14 [implicit_jscontext]
15 void readAsArrayBuffer(in nsIDOMBlob filedata);
16 void readAsBinaryString(in nsIDOMBlob filedata);
17 void readAsText(in nsIDOMBlob filedata, [optional] in DOMString encoding);
18 void readAsDataURL(in nsIDOMBlob file);
20 void abort();
22 const unsigned short EMPTY = 0;
23 const unsigned short LOADING = 1;
24 const unsigned short DONE = 2;
25 readonly attribute unsigned short readyState;
27 [implicit_jscontext]
28 readonly attribute jsval result;
30 // This is a DOMError
31 readonly attribute nsISupports error;
33 [implicit_jscontext] attribute jsval onloadstart;
34 [implicit_jscontext] attribute jsval onprogress;
35 [implicit_jscontext] attribute jsval onload;
36 [implicit_jscontext] attribute jsval onabort;
37 [implicit_jscontext] attribute jsval onerror;
38 [implicit_jscontext] attribute jsval onloadend;
39 };
41 %{ C++
42 #define NS_FILEREADER_CID \
43 {0x06aa7c21, 0xfe05, 0x4cf2, \
44 {0xb1, 0xc4, 0x0c, 0x71, 0x26, 0xa4, 0xf7, 0x13}}
45 #define NS_FILEREADER_CONTRACTID \
46 "@mozilla.org/files/filereader;1"
47 %}