content/base/public/nsIDOMFileReader.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 %}

mercurial