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 JSJavaScriptAudioNode_h
22 #define JSJavaScriptAudioNode_h
23 
24 #if ENABLE(WEB_AUDIO)
25 
26 #include "JSAudioNode.h"
27 #include <runtime/JSObjectWithGlobalObject.h>
28 
29 namespace WebCore {
30 
31 class JavaScriptAudioNode;
32 
33 class JSJavaScriptAudioNode : public JSAudioNode {
34     typedef JSAudioNode Base;
35 public:
36     JSJavaScriptAudioNode(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<JavaScriptAudioNode>);
37     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
38     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
39     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
40     virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
41     static const JSC::ClassInfo s_info;
42 
createStructure(JSC::JSGlobalData & globalData,JSC::JSValue prototype)43     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
44     {
45         return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
46     }
47 
48     virtual void visitChildren(JSC::SlotVisitor&);
49 
50     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
51 protected:
52     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::OverridesVisitChildren | Base::StructureFlags;
53 };
54 
55 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, JavaScriptAudioNode*);
56 
57 class JSJavaScriptAudioNodePrototype : public JSC::JSObjectWithGlobalObject {
58     typedef JSC::JSObjectWithGlobalObject Base;
59 public:
60     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
61     static const JSC::ClassInfo s_info;
createStructure(JSC::JSGlobalData & globalData,JSC::JSValue prototype)62     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
63     {
64         return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
65     }
JSJavaScriptAudioNodePrototype(JSC::JSGlobalData & globalData,JSC::JSGlobalObject * globalObject,JSC::Structure * structure)66     JSJavaScriptAudioNodePrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) : JSC::JSObjectWithGlobalObject(globalData, globalObject, structure) { }
67 protected:
68     static const unsigned StructureFlags = JSC::OverridesVisitChildren | Base::StructureFlags;
69 };
70 
71 // Attributes
72 
73 JSC::JSValue jsJavaScriptAudioNodeOnaudioprocess(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
74 void setJSJavaScriptAudioNodeOnaudioprocess(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
75 JSC::JSValue jsJavaScriptAudioNodeBufferSize(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
76 JSC::JSValue jsJavaScriptAudioNodeConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
77 
78 } // namespace WebCore
79 
80 #endif // ENABLE(WEB_AUDIO)
81 
82 #endif
83