2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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.
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.
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.
21 #ifndef JSErrorEvent_h
22 #define JSErrorEvent_h
24 #include "ErrorEvent.h"
25 #include "JSDOMBinding.h"
27 #include <runtime/JSObject.h>
33 class JSErrorEvent : public JSEvent {
36 static JSErrorEvent* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<ErrorEvent> impl)
38 JSErrorEvent* ptr = new (JSC::allocateCell<JSErrorEvent>(globalObject->globalData().heap)) JSErrorEvent(structure, globalObject, impl);
39 ptr->finishCreation(globalObject->globalData());
43 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
44 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
45 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
46 static const JSC::ClassInfo s_info;
48 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
50 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
53 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
55 JSErrorEvent(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<ErrorEvent>);
56 void finishCreation(JSC::JSGlobalData&);
57 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
61 class JSErrorEventPrototype : public JSC::JSNonFinalObject {
63 typedef JSC::JSNonFinalObject Base;
64 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
65 static JSErrorEventPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
67 JSErrorEventPrototype* ptr = new (JSC::allocateCell<JSErrorEventPrototype>(globalData.heap)) JSErrorEventPrototype(globalData, globalObject, structure);
68 ptr->finishCreation(globalData);
72 static const JSC::ClassInfo s_info;
73 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
75 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
79 JSErrorEventPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
81 static const unsigned StructureFlags = Base::StructureFlags;
84 class JSErrorEventConstructor : public DOMConstructorObject {
86 JSErrorEventConstructor(JSC::Structure*, JSDOMGlobalObject*);
87 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
90 typedef DOMConstructorObject Base;
91 static JSErrorEventConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
93 JSErrorEventConstructor* ptr = new (JSC::allocateCell<JSErrorEventConstructor>(*exec->heap())) JSErrorEventConstructor(structure, globalObject);
94 ptr->finishCreation(exec, globalObject);
98 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
99 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
100 static const JSC::ClassInfo s_info;
101 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
103 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
106 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
107 static JSC::EncodedJSValue JSC_HOST_CALL constructJSErrorEvent(JSC::ExecState*);
108 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
111 bool fillErrorEventInit(ErrorEventInit&, JSDictionary&);
115 JSC::JSValue jsErrorEventMessage(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
116 JSC::JSValue jsErrorEventFilename(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
117 JSC::JSValue jsErrorEventLineno(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
118 JSC::JSValue jsErrorEventConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
120 } // namespace WebCore