tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebCore / JSEntity.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 JSEntity_h
22 #define JSEntity_h
23
24 #include "Entity.h"
25 #include "JSDOMBinding.h"
26 #include "JSNode.h"
27 #include <runtime/JSObject.h>
28
29 namespace WebCore {
30
31 class JSEntity : public JSNode {
32 public:
33     typedef JSNode Base;
34     static JSEntity* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<Entity> impl)
35     {
36         JSEntity* ptr = new (JSC::allocateCell<JSEntity>(globalObject->globalData().heap)) JSEntity(structure, globalObject, impl);
37         ptr->finishCreation(globalObject->globalData());
38         return ptr;
39     }
40
41     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
42     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
43     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
44     static const JSC::ClassInfo s_info;
45
46     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
47     {
48         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
49     }
50
51     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
52 protected:
53     JSEntity(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<Entity>);
54     void finishCreation(JSC::JSGlobalData&);
55     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
56 };
57
58
59 class JSEntityPrototype : public JSC::JSNonFinalObject {
60 public:
61     typedef JSC::JSNonFinalObject Base;
62     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
63     static JSEntityPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
64     {
65         JSEntityPrototype* ptr = new (JSC::allocateCell<JSEntityPrototype>(globalData.heap)) JSEntityPrototype(globalData, globalObject, structure);
66         ptr->finishCreation(globalData);
67         return ptr;
68     }
69
70     static const JSC::ClassInfo s_info;
71     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
72     {
73         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
74     }
75
76 private:
77     JSEntityPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
78 protected:
79     static const unsigned StructureFlags = Base::StructureFlags;
80 };
81
82 class JSEntityConstructor : public DOMConstructorObject {
83 private:
84     JSEntityConstructor(JSC::Structure*, JSDOMGlobalObject*);
85     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
86
87 public:
88     typedef DOMConstructorObject Base;
89     static JSEntityConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
90     {
91         JSEntityConstructor* ptr = new (JSC::allocateCell<JSEntityConstructor>(*exec->heap())) JSEntityConstructor(structure, globalObject);
92         ptr->finishCreation(exec, globalObject);
93         return ptr;
94     }
95
96     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
97     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
98     static const JSC::ClassInfo s_info;
99     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
100     {
101         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
102     }
103 protected:
104     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
105 };
106
107 // Attributes
108
109 JSC::JSValue jsEntityPublicId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
110 JSC::JSValue jsEntitySystemId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
111 JSC::JSValue jsEntityNotationName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
112 JSC::JSValue jsEntityConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
113
114 } // namespace WebCore
115
116 #endif