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 JSTestEventConstructor_h
22
#define JSTestEventConstructor_h
24
#include "JSDOMBinding.h"
25
#include "TestEventConstructor.h"
26
#include <runtime/JSGlobalObject.h>
27
#include <runtime/JSObject.h>
28
#include <runtime/ObjectPrototype.h>
34
class JSTestEventConstructor : public JSDOMWrapper {
36
typedef JSDOMWrapper Base;
37
static JSTestEventConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestEventConstructor> impl)
39
JSTestEventConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructor>(globalObject->globalData().heap)) JSTestEventConstructor(structure, globalObject, impl);
40
ptr->finishCreation(globalObject->globalData());
44
static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
45
static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, JSC::PropertyName, JSC::PropertySlot&);
46
static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, JSC::PropertyName, JSC::PropertyDescriptor&);
47
static void destroy(JSC::JSCell*);
48
~JSTestEventConstructor();
49
static const JSC::ClassInfo s_info;
51
static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
53
return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
56
static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
57
TestEventConstructor* impl() const { return m_impl; }
58
void releaseImpl() { m_impl->deref(); m_impl = 0; }
60
void releaseImplIfNotNull() { if (m_impl) { m_impl->deref(); m_impl = 0; } }
63
TestEventConstructor* m_impl;
65
JSTestEventConstructor(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestEventConstructor>);
66
void finishCreation(JSC::JSGlobalData&);
67
static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | Base::StructureFlags;
70
class JSTestEventConstructorOwner : public JSC::WeakHandleOwner {
72
virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
73
virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
76
inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, TestEventConstructor*)
78
DEFINE_STATIC_LOCAL(JSTestEventConstructorOwner, jsTestEventConstructorOwner, ());
79
return &jsTestEventConstructorOwner;
82
inline void* wrapperContext(DOMWrapperWorld* world, TestEventConstructor*)
87
JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestEventConstructor*);
88
TestEventConstructor* toTestEventConstructor(JSC::JSValue);
90
class JSTestEventConstructorPrototype : public JSC::JSNonFinalObject {
92
typedef JSC::JSNonFinalObject Base;
93
static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
94
static JSTestEventConstructorPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
96
JSTestEventConstructorPrototype* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructorPrototype>(globalData.heap)) JSTestEventConstructorPrototype(globalData, globalObject, structure);
97
ptr->finishCreation(globalData);
101
static const JSC::ClassInfo s_info;
102
static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
104
return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
108
JSTestEventConstructorPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
110
static const unsigned StructureFlags = Base::StructureFlags;
113
class JSTestEventConstructorConstructor : public DOMConstructorObject {
115
JSTestEventConstructorConstructor(JSC::Structure*, JSDOMGlobalObject*);
116
void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
119
typedef DOMConstructorObject Base;
120
static JSTestEventConstructorConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
122
JSTestEventConstructorConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructorConstructor>(*exec->heap())) JSTestEventConstructorConstructor(structure, globalObject);
123
ptr->finishCreation(exec, globalObject);
127
static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, JSC::PropertyName, JSC::PropertySlot&);
128
static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, JSC::PropertyName, JSC::PropertyDescriptor&);
129
static const JSC::ClassInfo s_info;
130
static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
132
return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
135
static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
136
static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestEventConstructor(JSC::ExecState*);
137
static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
140
bool fillTestEventConstructorInit(TestEventConstructorInit&, JSDictionary&);
144
JSC::JSValue jsTestEventConstructorAttr1(JSC::ExecState*, JSC::JSValue, JSC::PropertyName);
145
JSC::JSValue jsTestEventConstructorAttr2(JSC::ExecState*, JSC::JSValue, JSC::PropertyName);
146
JSC::JSValue jsTestEventConstructorConstructor(JSC::ExecState*, JSC::JSValue, JSC::PropertyName);
148
} // namespace WebCore