tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebCore / JSDOMMimeTypeArray.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 JSDOMMimeTypeArray_h
22 #define JSDOMMimeTypeArray_h
23
24 #include "DOMMimeTypeArray.h"
25 #include "JSDOMBinding.h"
26 #include <runtime/JSGlobalObject.h>
27 #include <runtime/JSObject.h>
28 #include <runtime/ObjectPrototype.h>
29
30 namespace WebCore {
31
32 class JSDOMMimeTypeArray : public JSDOMWrapper {
33 public:
34     typedef JSDOMWrapper Base;
35     static JSDOMMimeTypeArray* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<DOMMimeTypeArray> impl)
36     {
37         JSDOMMimeTypeArray* ptr = new (JSC::allocateCell<JSDOMMimeTypeArray>(globalObject->globalData().heap)) JSDOMMimeTypeArray(structure, globalObject, impl);
38         ptr->finishCreation(globalObject->globalData());
39         return ptr;
40     }
41
42     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
43     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
44     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
45     static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);
46     static const JSC::ClassInfo s_info;
47
48     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
49     {
50         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
51     }
52
53     static void getOwnPropertyNames(JSC::JSObject*, JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);
54     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
55     DOMMimeTypeArray* impl() const { return m_impl; }
56     void releaseImpl() { m_impl->deref(); m_impl = 0; }
57
58 private:
59     DOMMimeTypeArray* m_impl;
60 protected:
61     JSDOMMimeTypeArray(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<DOMMimeTypeArray>);
62     void finishCreation(JSC::JSGlobalData&);
63     static const unsigned StructureFlags = JSC::OverridesGetPropertyNames | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
64     static JSC::JSValue indexGetter(JSC::ExecState*, JSC::JSValue, unsigned);
65 private:
66     static bool canGetItemsForName(JSC::ExecState*, DOMMimeTypeArray*, const JSC::Identifier&);
67     static JSC::JSValue nameGetter(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
68 };
69
70 class JSDOMMimeTypeArrayOwner : public JSC::WeakHandleOwner {
71     virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
72     virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
73 };
74
75 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, DOMMimeTypeArray*)
76 {
77     DEFINE_STATIC_LOCAL(JSDOMMimeTypeArrayOwner, jsDOMMimeTypeArrayOwner, ());
78     return &jsDOMMimeTypeArrayOwner;
79 }
80
81 inline void* wrapperContext(DOMWrapperWorld* world, DOMMimeTypeArray*)
82 {
83     return world;
84 }
85
86 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, DOMMimeTypeArray*);
87 DOMMimeTypeArray* toDOMMimeTypeArray(JSC::JSValue);
88
89 class JSDOMMimeTypeArrayPrototype : public JSC::JSNonFinalObject {
90 public:
91     typedef JSC::JSNonFinalObject Base;
92     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
93     static JSDOMMimeTypeArrayPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
94     {
95         JSDOMMimeTypeArrayPrototype* ptr = new (JSC::allocateCell<JSDOMMimeTypeArrayPrototype>(globalData.heap)) JSDOMMimeTypeArrayPrototype(globalData, globalObject, structure);
96         ptr->finishCreation(globalData);
97         return ptr;
98     }
99
100     static const JSC::ClassInfo s_info;
101     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
102     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
103     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
104     {
105         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
106     }
107
108 private:
109     JSDOMMimeTypeArrayPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
110 protected:
111     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
112 };
113
114 class JSDOMMimeTypeArrayConstructor : public DOMConstructorObject {
115 private:
116     JSDOMMimeTypeArrayConstructor(JSC::Structure*, JSDOMGlobalObject*);
117     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
118
119 public:
120     typedef DOMConstructorObject Base;
121     static JSDOMMimeTypeArrayConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
122     {
123         JSDOMMimeTypeArrayConstructor* ptr = new (JSC::allocateCell<JSDOMMimeTypeArrayConstructor>(*exec->heap())) JSDOMMimeTypeArrayConstructor(structure, globalObject);
124         ptr->finishCreation(exec, globalObject);
125         return ptr;
126     }
127
128     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
129     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
130     static const JSC::ClassInfo s_info;
131     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
132     {
133         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
134     }
135 protected:
136     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
137 };
138
139 // Functions
140
141 JSC::EncodedJSValue JSC_HOST_CALL jsDOMMimeTypeArrayPrototypeFunctionItem(JSC::ExecState*);
142 JSC::EncodedJSValue JSC_HOST_CALL jsDOMMimeTypeArrayPrototypeFunctionNamedItem(JSC::ExecState*);
143 // Attributes
144
145 JSC::JSValue jsDOMMimeTypeArrayLength(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
146 JSC::JSValue jsDOMMimeTypeArrayConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
147
148 } // namespace WebCore
149
150 #endif