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