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 JSCustomEvent_h
22 #define JSCustomEvent_h
24 #include "CustomEvent.h"
25 #include "JSDOMBinding.h"
27 #include <runtime/JSObject.h>
33 class JSCustomEvent : public JSEvent {
36 static JSCustomEvent* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<CustomEvent> impl)
38 JSCustomEvent* ptr = new (JSC::allocateCell<JSCustomEvent>(globalObject->globalData().heap)) JSCustomEvent(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 JSCustomEvent(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<CustomEvent>);
56 void finishCreation(JSC::JSGlobalData&);
57 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
61 class JSCustomEventPrototype : public JSC::JSNonFinalObject {
63 typedef JSC::JSNonFinalObject Base;
64 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
65 static JSCustomEventPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
67 JSCustomEventPrototype* ptr = new (JSC::allocateCell<JSCustomEventPrototype>(globalData.heap)) JSCustomEventPrototype(globalData, globalObject, structure);
68 ptr->finishCreation(globalData);
72 static const JSC::ClassInfo s_info;
73 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
74 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
75 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
77 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
81 JSCustomEventPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
83 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
86 class JSCustomEventConstructor : public DOMConstructorObject {
88 JSCustomEventConstructor(JSC::Structure*, JSDOMGlobalObject*);
89 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
92 typedef DOMConstructorObject Base;
93 static JSCustomEventConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
95 JSCustomEventConstructor* ptr = new (JSC::allocateCell<JSCustomEventConstructor>(*exec->heap())) JSCustomEventConstructor(structure, globalObject);
96 ptr->finishCreation(exec, globalObject);
100 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
101 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
102 static const JSC::ClassInfo s_info;
103 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
105 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
108 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
109 static JSC::EncodedJSValue JSC_HOST_CALL constructJSCustomEvent(JSC::ExecState*);
110 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
113 bool fillCustomEventInit(CustomEventInit&, JSDictionary&);
117 JSC::EncodedJSValue JSC_HOST_CALL jsCustomEventPrototypeFunctionInitCustomEvent(JSC::ExecState*);
120 JSC::JSValue jsCustomEventDetail(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
121 JSC::JSValue jsCustomEventConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
123 } // namespace WebCore