|
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 JSSVGTransform_H |
|
22 #define JSSVGTransform_H |
|
23 |
|
24 |
|
25 #if ENABLE(SVG) |
|
26 |
|
27 #include "kjs_binding.h" |
|
28 #include "SVGTransform.h" |
|
29 #include "JSSVGPODTypeWrapper.h" |
|
30 |
|
31 namespace WebCore { |
|
32 |
|
33 class JSSVGTransform : public KJS::DOMObject { |
|
34 public: |
|
35 JSSVGTransform(KJS::ExecState*, JSSVGPODTypeWrapper<SVGTransform>*); |
|
36 virtual ~JSSVGTransform(); |
|
37 virtual bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&); |
|
38 KJS::JSValue* getValueProperty(KJS::ExecState*, int token) const; |
|
39 virtual const KJS::ClassInfo* classInfo() const { return &info; } |
|
40 static const KJS::ClassInfo info; |
|
41 |
|
42 static KJS::JSValue* getConstructor(KJS::ExecState*); |
|
43 enum { |
|
44 // Attributes |
|
45 TypeAttrNum, MatrixAttrNum, AngleAttrNum, |
|
46 |
|
47 // The Constructor Attribute |
|
48 ConstructorAttrNum, |
|
49 |
|
50 // Functions |
|
51 SetMatrixFuncNum, SetTranslateFuncNum, SetScaleFuncNum, SetRotateFuncNum, |
|
52 SetSkewXFuncNum, SetSkewYFuncNum |
|
53 }; |
|
54 JSSVGPODTypeWrapper<SVGTransform>* impl() const { return m_impl.get(); } |
|
55 private: |
|
56 RefPtr<JSSVGPODTypeWrapper<SVGTransform> > m_impl; |
|
57 }; |
|
58 |
|
59 KJS::JSValue* toJS(KJS::ExecState*, JSSVGPODTypeWrapper<SVGTransform>*); |
|
60 SVGTransform toSVGTransform(KJS::JSValue*); |
|
61 |
|
62 class JSSVGTransformPrototype : public KJS::JSObject { |
|
63 public: |
|
64 static KJS::JSObject* self(KJS::ExecState* exec); |
|
65 virtual const KJS::ClassInfo* classInfo() const { return &info; } |
|
66 static const KJS::ClassInfo info; |
|
67 bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&); |
|
68 KJS::JSValue* getValueProperty(KJS::ExecState*, int token) const; |
|
69 JSSVGTransformPrototype(KJS::ExecState* exec) |
|
70 : KJS::JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()) { } |
|
71 }; |
|
72 |
|
73 class JSSVGTransformPrototypeFunction : public KJS::InternalFunctionImp { |
|
74 public: |
|
75 JSSVGTransformPrototypeFunction(KJS::ExecState* exec, int i, int len, const KJS::Identifier& name) |
|
76 : KJS::InternalFunctionImp(static_cast<KJS::FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()), name) |
|
77 , id(i) |
|
78 { |
|
79 put(exec, exec->propertyNames().length, KJS::jsNumber(len), KJS::DontDelete|KJS::ReadOnly|KJS::DontEnum); |
|
80 } |
|
81 virtual KJS::JSValue* callAsFunction(KJS::ExecState*, KJS::JSObject*, const KJS::List&); |
|
82 |
|
83 private: |
|
84 int id; |
|
85 }; |
|
86 |
|
87 } // namespace WebCore |
|
88 |
|
89 #endif // ENABLE(SVG) |
|
90 |
|
91 #endif |