|
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 JSSVGAnimatedRect_h |
|
22 #define JSSVGAnimatedRect_h |
|
23 |
|
24 #if ENABLE(SVG) |
|
25 |
|
26 #include "JSDOMBinding.h" |
|
27 #include "SVGElement.h" |
|
28 #include <runtime/JSGlobalObject.h> |
|
29 #include <runtime/JSObjectWithGlobalObject.h> |
|
30 #include <runtime/ObjectPrototype.h> |
|
31 |
|
32 namespace WebCore { |
|
33 |
|
34 class JSSVGAnimatedRect : public DOMObjectWithGlobalPointer { |
|
35 typedef DOMObjectWithGlobalPointer Base; |
|
36 public: |
|
37 JSSVGAnimatedRect(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<SVGAnimatedRect>); |
|
38 virtual ~JSSVGAnimatedRect(); |
|
39 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
40 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
41 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
42 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
43 static const JSC::ClassInfo s_info; |
|
44 |
|
45 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
46 { |
|
47 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
48 } |
|
49 |
|
50 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
51 SVGAnimatedRect* impl() const { return m_impl.get(); } |
|
52 |
|
53 private: |
|
54 RefPtr<SVGAnimatedRect> m_impl; |
|
55 protected: |
|
56 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
57 }; |
|
58 |
|
59 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGAnimatedRect*, SVGElement* context); |
|
60 SVGAnimatedRect* toSVGAnimatedRect(JSC::JSValue); |
|
61 |
|
62 class JSSVGAnimatedRectPrototype : public JSC::JSObjectWithGlobalObject { |
|
63 typedef JSC::JSObjectWithGlobalObject Base; |
|
64 public: |
|
65 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
66 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
67 static const JSC::ClassInfo s_info; |
|
68 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
69 { |
|
70 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
71 } |
|
72 JSSVGAnimatedRectPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
73 protected: |
|
74 static const unsigned StructureFlags = Base::StructureFlags; |
|
75 }; |
|
76 |
|
77 // Attributes |
|
78 |
|
79 JSC::JSValue jsSVGAnimatedRectBaseVal(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
80 JSC::JSValue jsSVGAnimatedRectAnimVal(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
81 JSC::JSValue jsSVGAnimatedRectConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
82 |
|
83 } // namespace WebCore |
|
84 |
|
85 #endif // ENABLE(SVG) |
|
86 |
|
87 #endif |