2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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.
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.
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.
21 #ifndef JSRealtimeAnalyserNode_h
22 #define JSRealtimeAnalyserNode_h
26 #include "JSAudioNode.h"
27 #include "JSDOMBinding.h"
28 #include "RealtimeAnalyserNode.h"
29 #include <runtime/JSObject.h>
33 class JSRealtimeAnalyserNode : public JSAudioNode {
35 typedef JSAudioNode Base;
36 static JSRealtimeAnalyserNode* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<RealtimeAnalyserNode> impl)
38 JSRealtimeAnalyserNode* ptr = new (JSC::allocateCell<JSRealtimeAnalyserNode>(globalObject->globalData().heap)) JSRealtimeAnalyserNode(structure, globalObject, impl);
39 ptr->finishCreation(globalObject->globalData());
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;
49 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
51 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
54 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
56 JSRealtimeAnalyserNode(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<RealtimeAnalyserNode>);
57 void finishCreation(JSC::JSGlobalData&);
58 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
61 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, RealtimeAnalyserNode*);
63 class JSRealtimeAnalyserNodePrototype : public JSC::JSNonFinalObject {
65 typedef JSC::JSNonFinalObject Base;
66 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
67 static JSRealtimeAnalyserNodePrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
69 JSRealtimeAnalyserNodePrototype* ptr = new (JSC::allocateCell<JSRealtimeAnalyserNodePrototype>(globalData.heap)) JSRealtimeAnalyserNodePrototype(globalData, globalObject, structure);
70 ptr->finishCreation(globalData);
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)
79 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
83 JSRealtimeAnalyserNodePrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
85 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
88 class JSRealtimeAnalyserNodeConstructor : public DOMConstructorObject {
90 JSRealtimeAnalyserNodeConstructor(JSC::Structure*, JSDOMGlobalObject*);
91 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
94 typedef DOMConstructorObject Base;
95 static JSRealtimeAnalyserNodeConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
97 JSRealtimeAnalyserNodeConstructor* ptr = new (JSC::allocateCell<JSRealtimeAnalyserNodeConstructor>(*exec->heap())) JSRealtimeAnalyserNodeConstructor(structure, globalObject);
98 ptr->finishCreation(exec, globalObject);
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)
107 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
110 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
115 JSC::EncodedJSValue JSC_HOST_CALL jsRealtimeAnalyserNodePrototypeFunctionGetFloatFrequencyData(JSC::ExecState*);
116 JSC::EncodedJSValue JSC_HOST_CALL jsRealtimeAnalyserNodePrototypeFunctionGetByteFrequencyData(JSC::ExecState*);
117 JSC::EncodedJSValue JSC_HOST_CALL jsRealtimeAnalyserNodePrototypeFunctionGetByteTimeDomainData(JSC::ExecState*);
120 JSC::JSValue jsRealtimeAnalyserNodeFftSize(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
121 void setJSRealtimeAnalyserNodeFftSize(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
122 JSC::JSValue jsRealtimeAnalyserNodeFrequencyBinCount(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
123 JSC::JSValue jsRealtimeAnalyserNodeMinDecibels(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
124 void setJSRealtimeAnalyserNodeMinDecibels(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
125 JSC::JSValue jsRealtimeAnalyserNodeMaxDecibels(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
126 void setJSRealtimeAnalyserNodeMaxDecibels(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
127 JSC::JSValue jsRealtimeAnalyserNodeSmoothingTimeConstant(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
128 void setJSRealtimeAnalyserNodeSmoothingTimeConstant(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
129 JSC::JSValue jsRealtimeAnalyserNodeConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 } // namespace WebCore
133 #endif // ENABLE(WEB_AUDIO)