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