~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 JSTestEventConstructor_h
 
22
#define JSTestEventConstructor_h
 
23
 
 
24
#include "JSDOMBinding.h"
 
25
#include "TestEventConstructor.h"
 
26
#include <runtime/JSGlobalObject.h>
 
27
#include <runtime/JSObject.h>
 
28
#include <runtime/ObjectPrototype.h>
 
29
 
 
30
namespace WebCore {
 
31
 
 
32
class JSDictionary;
 
33
 
 
34
class JSTestEventConstructor : public JSDOMWrapper {
 
35
public:
 
36
    typedef JSDOMWrapper Base;
 
37
    static JSTestEventConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestEventConstructor> impl)
 
38
    {
 
39
        JSTestEventConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructor>(globalObject->globalData().heap)) JSTestEventConstructor(structure, globalObject, impl);
 
40
        ptr->finishCreation(globalObject->globalData());
 
41
        return ptr;
 
42
    }
 
43
 
 
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;
 
50
 
 
51
    static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
 
52
    {
 
53
        return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
 
54
    }
 
55
 
 
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; }
 
59
 
 
60
    void releaseImplIfNotNull() { if (m_impl) { m_impl->deref(); m_impl = 0; } }
 
61
 
 
62
private:
 
63
    TestEventConstructor* m_impl;
 
64
protected:
 
65
    JSTestEventConstructor(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestEventConstructor>);
 
66
    void finishCreation(JSC::JSGlobalData&);
 
67
    static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | Base::StructureFlags;
 
68
};
 
69
 
 
70
class JSTestEventConstructorOwner : public JSC::WeakHandleOwner {
 
71
public:
 
72
    virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
 
73
    virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
 
74
};
 
75
 
 
76
inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, TestEventConstructor*)
 
77
{
 
78
    DEFINE_STATIC_LOCAL(JSTestEventConstructorOwner, jsTestEventConstructorOwner, ());
 
79
    return &jsTestEventConstructorOwner;
 
80
}
 
81
 
 
82
inline void* wrapperContext(DOMWrapperWorld* world, TestEventConstructor*)
 
83
{
 
84
    return world;
 
85
}
 
86
 
 
87
JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestEventConstructor*);
 
88
TestEventConstructor* toTestEventConstructor(JSC::JSValue);
 
89
 
 
90
class JSTestEventConstructorPrototype : public JSC::JSNonFinalObject {
 
91
public:
 
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)
 
95
    {
 
96
        JSTestEventConstructorPrototype* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructorPrototype>(globalData.heap)) JSTestEventConstructorPrototype(globalData, globalObject, structure);
 
97
        ptr->finishCreation(globalData);
 
98
        return ptr;
 
99
    }
 
100
 
 
101
    static const JSC::ClassInfo s_info;
 
102
    static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
 
103
    {
 
104
        return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
 
105
    }
 
106
 
 
107
private:
 
108
    JSTestEventConstructorPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
 
109
protected:
 
110
    static const unsigned StructureFlags = Base::StructureFlags;
 
111
};
 
112
 
 
113
class JSTestEventConstructorConstructor : public DOMConstructorObject {
 
114
private:
 
115
    JSTestEventConstructorConstructor(JSC::Structure*, JSDOMGlobalObject*);
 
116
    void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
 
117
 
 
118
public:
 
119
    typedef DOMConstructorObject Base;
 
120
    static JSTestEventConstructorConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
 
121
    {
 
122
        JSTestEventConstructorConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructorConstructor>(*exec->heap())) JSTestEventConstructorConstructor(structure, globalObject);
 
123
        ptr->finishCreation(exec, globalObject);
 
124
        return ptr;
 
125
    }
 
126
 
 
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)
 
131
    {
 
132
        return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
 
133
    }
 
134
protected:
 
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&);
 
138
};
 
139
 
 
140
bool fillTestEventConstructorInit(TestEventConstructorInit&, JSDictionary&);
 
141
 
 
142
// Attributes
 
143
 
 
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);
 
147
 
 
148
} // namespace WebCore
 
149
 
 
150
#endif