|
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 JSSVGUnitTypes_H |
|
22 #define JSSVGUnitTypes_H |
|
23 |
|
24 |
|
25 #if ENABLE(SVG) |
|
26 |
|
27 #include "kjs_binding.h" |
|
28 |
|
29 namespace WebCore { |
|
30 |
|
31 class SVGUnitTypes; |
|
32 |
|
33 class JSSVGUnitTypes : public KJS::DOMObject { |
|
34 public: |
|
35 JSSVGUnitTypes(KJS::ExecState*, SVGUnitTypes*); |
|
36 virtual ~JSSVGUnitTypes(); |
|
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 // The Constructor Attribute |
|
45 ConstructorAttrNum |
|
46 }; |
|
47 SVGUnitTypes* impl() const { return m_impl.get(); } |
|
48 private: |
|
49 RefPtr<SVGUnitTypes> m_impl; |
|
50 }; |
|
51 |
|
52 KJS::JSValue* toJS(KJS::ExecState*, SVGUnitTypes*); |
|
53 SVGUnitTypes* toSVGUnitTypes(KJS::JSValue*); |
|
54 |
|
55 class JSSVGUnitTypesPrototype : public KJS::JSObject { |
|
56 public: |
|
57 static KJS::JSObject* self(KJS::ExecState* exec); |
|
58 virtual const KJS::ClassInfo* classInfo() const { return &info; } |
|
59 static const KJS::ClassInfo info; |
|
60 bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&); |
|
61 KJS::JSValue* getValueProperty(KJS::ExecState*, int token) const; |
|
62 JSSVGUnitTypesPrototype(KJS::ExecState* exec) |
|
63 : KJS::JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()) { } |
|
64 }; |
|
65 |
|
66 } // namespace WebCore |
|
67 |
|
68 #endif // ENABLE(SVG) |
|
69 |
|
70 #endif |