|
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 JSSVGException_h |
|
22 #define JSSVGException_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 SVGException; |
|
35 |
|
36 class JSSVGException : public DOMObjectWithGlobalPointer { |
|
37 typedef DOMObjectWithGlobalPointer Base; |
|
38 public: |
|
39 JSSVGException(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<SVGException>); |
|
40 virtual ~JSSVGException(); |
|
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 const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
45 static const JSC::ClassInfo s_info; |
|
46 |
|
47 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
48 { |
|
49 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
50 } |
|
51 |
|
52 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
53 SVGException* impl() const { return m_impl.get(); } |
|
54 |
|
55 private: |
|
56 RefPtr<SVGException> m_impl; |
|
57 protected: |
|
58 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
59 }; |
|
60 |
|
61 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGException*, SVGElement* context); |
|
62 SVGException* toSVGException(JSC::JSValue); |
|
63 |
|
64 class JSSVGExceptionPrototype : public JSC::JSObjectWithGlobalObject { |
|
65 typedef JSC::JSObjectWithGlobalObject Base; |
|
66 public: |
|
67 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
68 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
69 static const JSC::ClassInfo s_info; |
|
70 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
71 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
72 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
73 { |
|
74 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
75 } |
|
76 JSSVGExceptionPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
77 protected: |
|
78 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
79 }; |
|
80 |
|
81 // Functions |
|
82 |
|
83 JSC::EncodedJSValue JSC_HOST_CALL jsSVGExceptionPrototypeFunctionToString(JSC::ExecState*); |
|
84 // Attributes |
|
85 |
|
86 JSC::JSValue jsSVGExceptionCode(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
87 JSC::JSValue jsSVGExceptionName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
88 JSC::JSValue jsSVGExceptionMessage(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
89 JSC::JSValue jsSVGExceptionConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
90 // Constants |
|
91 |
|
92 JSC::JSValue jsSVGExceptionSVG_WRONG_TYPE_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
93 JSC::JSValue jsSVGExceptionSVG_INVALID_VALUE_ERR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
94 JSC::JSValue jsSVGExceptionSVG_MATRIX_NOT_INVERTABLE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
95 |
|
96 } // namespace WebCore |
|
97 |
|
98 #endif // ENABLE(SVG) |
|
99 |
|
100 #endif |