tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebCore / JSXMLHttpRequestException.h
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 JSXMLHttpRequestException_h
22 #define JSXMLHttpRequestException_h
23
24 #include "JSDOMBinding.h"
25 #include "XMLHttpRequestException.h"
26 #include <runtime/JSGlobalObject.h>
27 #include <runtime/JSObject.h>
28 #include <runtime/ObjectPrototype.h>
29
30 namespace WebCore {
31
32 class JSXMLHttpRequestException : public JSDOMWrapper {
33 public:
34     typedef JSDOMWrapper Base;
35     static JSXMLHttpRequestException* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<XMLHttpRequestException> impl)
36     {
37         JSXMLHttpRequestException* ptr = new (JSC::allocateCell<JSXMLHttpRequestException>(globalObject->globalData().heap)) JSXMLHttpRequestException(structure, globalObject, impl);
38         ptr->finishCreation(globalObject->globalData());
39         return ptr;
40     }
41
42     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
43     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
44     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
45     static const JSC::ClassInfo s_info;
46
47     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
48     {
49         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
50     }
51
52     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
53     XMLHttpRequestException* impl() const { return m_impl; }
54     void releaseImpl() { m_impl->deref(); m_impl = 0; }
55
56 private:
57     XMLHttpRequestException* m_impl;
58 protected:
59     JSXMLHttpRequestException(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<XMLHttpRequestException>);
60     void finishCreation(JSC::JSGlobalData&);
61     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
62 };
63
64 class JSXMLHttpRequestExceptionOwner : public JSC::WeakHandleOwner {
65     virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
66     virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
67 };
68
69 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, XMLHttpRequestException*)
70 {
71     DEFINE_STATIC_LOCAL(JSXMLHttpRequestExceptionOwner, jsXMLHttpRequestExceptionOwner, ());
72     return &jsXMLHttpRequestExceptionOwner;
73 }
74
75 inline void* wrapperContext(DOMWrapperWorld* world, XMLHttpRequestException*)
76 {
77     return world;
78 }
79
80 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, XMLHttpRequestException*);
81 XMLHttpRequestException* toXMLHttpRequestException(JSC::JSValue);
82
83 class JSXMLHttpRequestExceptionPrototype : public JSC::JSNonFinalObject {
84 public:
85     typedef JSC::JSNonFinalObject Base;
86     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
87     static JSXMLHttpRequestExceptionPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
88     {
89         JSXMLHttpRequestExceptionPrototype* ptr = new (JSC::allocateCell<JSXMLHttpRequestExceptionPrototype>(globalData.heap)) JSXMLHttpRequestExceptionPrototype(globalData, globalObject, structure);
90         ptr->finishCreation(globalData);
91         return ptr;
92     }
93
94     static const JSC::ClassInfo s_info;
95     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
96     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
97     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
98     {
99         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
100     }
101
102 private:
103     JSXMLHttpRequestExceptionPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
104 protected:
105     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
106 };
107
108 class JSXMLHttpRequestExceptionConstructor : public DOMConstructorObject {
109 private:
110     JSXMLHttpRequestExceptionConstructor(JSC::Structure*, JSDOMGlobalObject*);
111     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
112
113 public:
114     typedef DOMConstructorObject Base;
115     static JSXMLHttpRequestExceptionConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
116     {
117         JSXMLHttpRequestExceptionConstructor* ptr = new (JSC::allocateCell<JSXMLHttpRequestExceptionConstructor>(*exec->heap())) JSXMLHttpRequestExceptionConstructor(structure, globalObject);
118         ptr->finishCreation(exec, globalObject);
119         return ptr;
120     }
121
122     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
123     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
124     static const JSC::ClassInfo s_info;
125     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
126     {
127         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
128     }
129 protected:
130     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
131 };
132
133 // Functions
134
135 JSC::EncodedJSValue JSC_HOST_CALL jsXMLHttpRequestExceptionPrototypeFunctionToString(JSC::ExecState*);
136 // Attributes
137
138 JSC::JSValue jsXMLHttpRequestExceptionCode(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
139 JSC::JSValue jsXMLHttpRequestExceptionName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
140 JSC::JSValue jsXMLHttpRequestExceptionMessage(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
141 JSC::JSValue jsXMLHttpRequestExceptionConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
142 // Constants
143
144 JSC::JSValue jsXMLHttpRequestExceptionNETWORK_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
145 JSC::JSValue jsXMLHttpRequestExceptionABORT_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
146
147 } // namespace WebCore
148
149 #endif