|
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 JSWebGLFramebuffer_h |
|
22 #define JSWebGLFramebuffer_h |
|
23 |
|
24 #if ENABLE(3D_CANVAS) |
|
25 |
|
26 #include "JSDOMBinding.h" |
|
27 #include <runtime/JSGlobalObject.h> |
|
28 #include <runtime/JSObjectWithGlobalObject.h> |
|
29 #include <runtime/ObjectPrototype.h> |
|
30 |
|
31 namespace WebCore { |
|
32 |
|
33 class WebGLFramebuffer; |
|
34 |
|
35 class JSWebGLFramebuffer : public DOMObjectWithGlobalPointer { |
|
36 typedef DOMObjectWithGlobalPointer Base; |
|
37 public: |
|
38 JSWebGLFramebuffer(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<WebGLFramebuffer>); |
|
39 virtual ~JSWebGLFramebuffer(); |
|
40 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
41 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
42 static const JSC::ClassInfo s_info; |
|
43 |
|
44 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
45 { |
|
46 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
47 } |
|
48 |
|
49 WebGLFramebuffer* impl() const { return m_impl.get(); } |
|
50 |
|
51 private: |
|
52 RefPtr<WebGLFramebuffer> m_impl; |
|
53 protected: |
|
54 static const unsigned StructureFlags = Base::StructureFlags; |
|
55 }; |
|
56 |
|
57 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, WebGLFramebuffer*); |
|
58 WebGLFramebuffer* toWebGLFramebuffer(JSC::JSValue); |
|
59 |
|
60 class JSWebGLFramebufferPrototype : public JSC::JSObjectWithGlobalObject { |
|
61 typedef JSC::JSObjectWithGlobalObject Base; |
|
62 public: |
|
63 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
64 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
65 static const JSC::ClassInfo s_info; |
|
66 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
67 { |
|
68 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
69 } |
|
70 JSWebGLFramebufferPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
71 protected: |
|
72 static const unsigned StructureFlags = Base::StructureFlags; |
|
73 }; |
|
74 |
|
75 |
|
76 } // namespace WebCore |
|
77 |
|
78 #endif // ENABLE(3D_CANVAS) |
|
79 |
|
80 #endif |