WebCore/generated/JSFileReader.h
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 /*
       
     2     This file is part of the WebKit open source project.
       
     3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Library General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Library General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Library General Public License
       
    16     along with this library; see the file COPYING.LIB.  If not, write to
       
    17     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
       
    18     Boston, MA 02110-1301, USA.
       
    19 */
       
    20 
       
    21 #ifndef JSFileReader_h
       
    22 #define JSFileReader_h
       
    23 
       
    24 #if ENABLE(FILE_READER)
       
    25 
       
    26 #include "JSDOMBinding.h"
       
    27 #include <runtime/JSGlobalObject.h>
       
    28 #include <runtime/JSObjectWithGlobalObject.h>
       
    29 #include <runtime/ObjectPrototype.h>
       
    30 
       
    31 namespace WebCore {
       
    32 
       
    33 class FileReader;
       
    34 
       
    35 class JSFileReader : public DOMObjectWithGlobalPointer {
       
    36     typedef DOMObjectWithGlobalPointer Base;
       
    37 public:
       
    38     JSFileReader(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<FileReader>);
       
    39     virtual ~JSFileReader();
       
    40     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
       
    41     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
       
    42     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
       
    43     virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
       
    44     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    45     static const JSC::ClassInfo s_info;
       
    46 
       
    47     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    48     {
       
    49         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    50     }
       
    51 
       
    52     virtual void markChildren(JSC::MarkStack&);
       
    53 
       
    54     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
       
    55     FileReader* impl() const { return m_impl.get(); }
       
    56 
       
    57 private:
       
    58     RefPtr<FileReader> m_impl;
       
    59 protected:
       
    60     static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    61 };
       
    62 
       
    63 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, FileReader*);
       
    64 FileReader* toFileReader(JSC::JSValue);
       
    65 
       
    66 class JSFileReaderPrototype : public JSC::JSObjectWithGlobalObject {
       
    67     typedef JSC::JSObjectWithGlobalObject Base;
       
    68 public:
       
    69     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    70     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    71     static const JSC::ClassInfo s_info;
       
    72     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    73     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    74     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    75     {
       
    76         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    77     }
       
    78     JSFileReaderPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    79 protected:
       
    80     static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    81 };
       
    82 
       
    83 // Functions
       
    84 
       
    85 JSC::EncodedJSValue JSC_HOST_CALL jsFileReaderPrototypeFunctionReadAsBinaryString(JSC::ExecState*);
       
    86 JSC::EncodedJSValue JSC_HOST_CALL jsFileReaderPrototypeFunctionReadAsText(JSC::ExecState*);
       
    87 JSC::EncodedJSValue JSC_HOST_CALL jsFileReaderPrototypeFunctionReadAsDataURL(JSC::ExecState*);
       
    88 JSC::EncodedJSValue JSC_HOST_CALL jsFileReaderPrototypeFunctionAbort(JSC::ExecState*);
       
    89 // Attributes
       
    90 
       
    91 JSC::JSValue jsFileReaderReadyState(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    92 JSC::JSValue jsFileReaderResult(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    93 JSC::JSValue jsFileReaderError(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    94 JSC::JSValue jsFileReaderOnloadstart(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    95 void setJSFileReaderOnloadstart(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
    96 JSC::JSValue jsFileReaderOnprogress(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    97 void setJSFileReaderOnprogress(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
    98 JSC::JSValue jsFileReaderOnload(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    99 void setJSFileReaderOnload(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   100 JSC::JSValue jsFileReaderOnabort(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   101 void setJSFileReaderOnabort(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   102 JSC::JSValue jsFileReaderOnerror(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   103 void setJSFileReaderOnerror(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   104 JSC::JSValue jsFileReaderOnloadend(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   105 void setJSFileReaderOnloadend(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
   106 JSC::JSValue jsFileReaderConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   107 // Constants
       
   108 
       
   109 JSC::JSValue jsFileReaderEMPTY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   110 JSC::JSValue jsFileReaderLOADING(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   111 JSC::JSValue jsFileReaderDONE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   112 
       
   113 } // namespace WebCore
       
   114 
       
   115 #endif // ENABLE(FILE_READER)
       
   116 
       
   117 #endif