|
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 JSXMLHttpRequestUpload_h |
|
22 #define JSXMLHttpRequestUpload_h |
|
23 |
|
24 #include "JSDOMBinding.h" |
|
25 #include <runtime/JSGlobalObject.h> |
|
26 #include <runtime/JSObjectWithGlobalObject.h> |
|
27 #include <runtime/ObjectPrototype.h> |
|
28 |
|
29 namespace WebCore { |
|
30 |
|
31 class XMLHttpRequestUpload; |
|
32 |
|
33 class JSXMLHttpRequestUpload : public DOMObjectWithGlobalPointer { |
|
34 typedef DOMObjectWithGlobalPointer Base; |
|
35 public: |
|
36 JSXMLHttpRequestUpload(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<XMLHttpRequestUpload>); |
|
37 virtual ~JSXMLHttpRequestUpload(); |
|
38 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
39 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
40 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
41 virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&); |
|
42 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
43 static const JSC::ClassInfo s_info; |
|
44 |
|
45 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
46 { |
|
47 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
48 } |
|
49 |
|
50 virtual void markChildren(JSC::MarkStack&); |
|
51 |
|
52 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
53 XMLHttpRequestUpload* impl() const { return m_impl.get(); } |
|
54 |
|
55 private: |
|
56 RefPtr<XMLHttpRequestUpload> m_impl; |
|
57 protected: |
|
58 static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
59 }; |
|
60 |
|
61 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, XMLHttpRequestUpload*); |
|
62 XMLHttpRequestUpload* toXMLHttpRequestUpload(JSC::JSValue); |
|
63 |
|
64 class JSXMLHttpRequestUploadPrototype : public JSC::JSObjectWithGlobalObject { |
|
65 typedef JSC::JSObjectWithGlobalObject Base; |
|
66 public: |
|
67 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
68 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
69 static const JSC::ClassInfo s_info; |
|
70 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
71 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
72 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
73 { |
|
74 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
75 } |
|
76 JSXMLHttpRequestUploadPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
77 protected: |
|
78 static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
79 }; |
|
80 |
|
81 // Functions |
|
82 |
|
83 JSC::EncodedJSValue JSC_HOST_CALL jsXMLHttpRequestUploadPrototypeFunctionAddEventListener(JSC::ExecState*); |
|
84 JSC::EncodedJSValue JSC_HOST_CALL jsXMLHttpRequestUploadPrototypeFunctionRemoveEventListener(JSC::ExecState*); |
|
85 JSC::EncodedJSValue JSC_HOST_CALL jsXMLHttpRequestUploadPrototypeFunctionDispatchEvent(JSC::ExecState*); |
|
86 // Attributes |
|
87 |
|
88 JSC::JSValue jsXMLHttpRequestUploadOnabort(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
89 void setJSXMLHttpRequestUploadOnabort(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
90 JSC::JSValue jsXMLHttpRequestUploadOnerror(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
91 void setJSXMLHttpRequestUploadOnerror(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
92 JSC::JSValue jsXMLHttpRequestUploadOnload(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
93 void setJSXMLHttpRequestUploadOnload(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
94 JSC::JSValue jsXMLHttpRequestUploadOnloadstart(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
95 void setJSXMLHttpRequestUploadOnloadstart(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
96 JSC::JSValue jsXMLHttpRequestUploadOnprogress(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
97 void setJSXMLHttpRequestUploadOnprogress(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
98 JSC::JSValue jsXMLHttpRequestUploadConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
99 |
|
100 } // namespace WebCore |
|
101 |
|
102 #endif |