tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSAudioPannerNode.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 JSAudioPannerNode_h
22 #define JSAudioPannerNode_h
23
24 #if ENABLE(WEB_AUDIO)
25
26 #include "AudioPannerNode.h"
27 #include "JSAudioNode.h"
28 #include "JSDOMBinding.h"
29 #include <runtime/JSObject.h>
30
31 namespace WebCore {
32
33 class JSAudioPannerNode : public JSAudioNode {
34 public:
35     typedef JSAudioNode Base;
36     static JSAudioPannerNode* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<AudioPannerNode> impl)
37     {
38         JSAudioPannerNode* ptr = new (JSC::allocateCell<JSAudioPannerNode>(globalObject->globalData().heap)) JSAudioPannerNode(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 void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
47     static const JSC::ClassInfo s_info;
48
49     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
50     {
51         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
52     }
53
54     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
55 protected:
56     JSAudioPannerNode(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<AudioPannerNode>);
57     void finishCreation(JSC::JSGlobalData&);
58     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
59 };
60
61 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, AudioPannerNode*);
62
63 class JSAudioPannerNodePrototype : public JSC::JSNonFinalObject {
64 public:
65     typedef JSC::JSNonFinalObject Base;
66     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
67     static JSAudioPannerNodePrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
68     {
69         JSAudioPannerNodePrototype* ptr = new (JSC::allocateCell<JSAudioPannerNodePrototype>(globalData.heap)) JSAudioPannerNodePrototype(globalData, globalObject, structure);
70         ptr->finishCreation(globalData);
71         return ptr;
72     }
73
74     static const JSC::ClassInfo s_info;
75     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
76     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
77     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
78     {
79         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
80     }
81
82 private:
83     JSAudioPannerNodePrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
84 protected:
85     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
86 };
87
88 class JSAudioPannerNodeConstructor : public DOMConstructorObject {
89 private:
90     JSAudioPannerNodeConstructor(JSC::Structure*, JSDOMGlobalObject*);
91     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
92
93 public:
94     typedef DOMConstructorObject Base;
95     static JSAudioPannerNodeConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
96     {
97         JSAudioPannerNodeConstructor* ptr = new (JSC::allocateCell<JSAudioPannerNodeConstructor>(*exec->heap())) JSAudioPannerNodeConstructor(structure, globalObject);
98         ptr->finishCreation(exec, globalObject);
99         return ptr;
100     }
101
102     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
103     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
104     static const JSC::ClassInfo s_info;
105     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
106     {
107         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
108     }
109 protected:
110     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
111 };
112
113 // Functions
114
115 JSC::EncodedJSValue JSC_HOST_CALL jsAudioPannerNodePrototypeFunctionSetPosition(JSC::ExecState*);
116 JSC::EncodedJSValue JSC_HOST_CALL jsAudioPannerNodePrototypeFunctionSetOrientation(JSC::ExecState*);
117 JSC::EncodedJSValue JSC_HOST_CALL jsAudioPannerNodePrototypeFunctionSetVelocity(JSC::ExecState*);
118 // Attributes
119
120 JSC::JSValue jsAudioPannerNodePanningModel(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
121 void setJSAudioPannerNodePanningModel(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
122 JSC::JSValue jsAudioPannerNodeDistanceModel(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
123 void setJSAudioPannerNodeDistanceModel(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
124 JSC::JSValue jsAudioPannerNodeRefDistance(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
125 void setJSAudioPannerNodeRefDistance(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
126 JSC::JSValue jsAudioPannerNodeMaxDistance(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
127 void setJSAudioPannerNodeMaxDistance(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
128 JSC::JSValue jsAudioPannerNodeRolloffFactor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
129 void setJSAudioPannerNodeRolloffFactor(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
130 JSC::JSValue jsAudioPannerNodeConeInnerAngle(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 void setJSAudioPannerNodeConeInnerAngle(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
132 JSC::JSValue jsAudioPannerNodeConeOuterAngle(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
133 void setJSAudioPannerNodeConeOuterAngle(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
134 JSC::JSValue jsAudioPannerNodeConeOuterGain(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
135 void setJSAudioPannerNodeConeOuterGain(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
136 JSC::JSValue jsAudioPannerNodeConeGain(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
137 JSC::JSValue jsAudioPannerNodeDistanceGain(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
138 JSC::JSValue jsAudioPannerNodeConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
139 // Constants
140
141 JSC::JSValue jsAudioPannerNodeEQUALPOWER(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
142 JSC::JSValue jsAudioPannerNodeHRTF(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
143 JSC::JSValue jsAudioPannerNodeSOUNDFIELD(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
144
145 } // namespace WebCore
146
147 #endif // ENABLE(WEB_AUDIO)
148
149 #endif