|
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 JSXSLTProcessor_h |
|
22 #define JSXSLTProcessor_h |
|
23 |
|
24 #if ENABLE(XSLT) |
|
25 |
|
26 #include "JSDOMBinding.h" |
|
27 #include <runtime/JSGlobalObject.h> |
|
28 #include <runtime/JSObjectWithGlobalObject.h> |
|
29 #include <runtime/ObjectPrototype.h> |
|
30 |
|
31 namespace WebCore { |
|
32 |
|
33 class XSLTProcessor; |
|
34 |
|
35 class JSXSLTProcessor : public DOMObjectWithGlobalPointer { |
|
36 typedef DOMObjectWithGlobalPointer Base; |
|
37 public: |
|
38 JSXSLTProcessor(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<XSLTProcessor>); |
|
39 virtual ~JSXSLTProcessor(); |
|
40 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
41 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
42 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
43 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
44 static const JSC::ClassInfo s_info; |
|
45 |
|
46 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
47 { |
|
48 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
49 } |
|
50 |
|
51 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
52 |
|
53 // Custom functions |
|
54 JSC::JSValue importStylesheet(JSC::ExecState*); |
|
55 JSC::JSValue transformToFragment(JSC::ExecState*); |
|
56 JSC::JSValue transformToDocument(JSC::ExecState*); |
|
57 JSC::JSValue setParameter(JSC::ExecState*); |
|
58 JSC::JSValue getParameter(JSC::ExecState*); |
|
59 JSC::JSValue removeParameter(JSC::ExecState*); |
|
60 XSLTProcessor* impl() const { return m_impl.get(); } |
|
61 |
|
62 private: |
|
63 RefPtr<XSLTProcessor> m_impl; |
|
64 protected: |
|
65 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
66 }; |
|
67 |
|
68 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, XSLTProcessor*); |
|
69 XSLTProcessor* toXSLTProcessor(JSC::JSValue); |
|
70 |
|
71 class JSXSLTProcessorPrototype : public JSC::JSObjectWithGlobalObject { |
|
72 typedef JSC::JSObjectWithGlobalObject Base; |
|
73 public: |
|
74 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
75 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
76 static const JSC::ClassInfo s_info; |
|
77 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
78 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
79 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
80 { |
|
81 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
82 } |
|
83 JSXSLTProcessorPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
84 protected: |
|
85 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
86 }; |
|
87 |
|
88 class JSXSLTProcessorConstructor : public DOMConstructorObject { |
|
89 public: |
|
90 JSXSLTProcessorConstructor(JSC::ExecState*, JSDOMGlobalObject*); |
|
91 |
|
92 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
93 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
94 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
95 static const JSC::ClassInfo s_info; |
|
96 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
97 { |
|
98 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
99 } |
|
100 protected: |
|
101 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; |
|
102 static JSC::EncodedJSValue JSC_HOST_CALL constructJSXSLTProcessor(JSC::ExecState*); |
|
103 virtual JSC::ConstructType getConstructData(JSC::ConstructData&); |
|
104 }; |
|
105 |
|
106 // Functions |
|
107 |
|
108 JSC::EncodedJSValue JSC_HOST_CALL jsXSLTProcessorPrototypeFunctionImportStylesheet(JSC::ExecState*); |
|
109 JSC::EncodedJSValue JSC_HOST_CALL jsXSLTProcessorPrototypeFunctionTransformToFragment(JSC::ExecState*); |
|
110 JSC::EncodedJSValue JSC_HOST_CALL jsXSLTProcessorPrototypeFunctionTransformToDocument(JSC::ExecState*); |
|
111 JSC::EncodedJSValue JSC_HOST_CALL jsXSLTProcessorPrototypeFunctionSetParameter(JSC::ExecState*); |
|
112 JSC::EncodedJSValue JSC_HOST_CALL jsXSLTProcessorPrototypeFunctionGetParameter(JSC::ExecState*); |
|
113 JSC::EncodedJSValue JSC_HOST_CALL jsXSLTProcessorPrototypeFunctionRemoveParameter(JSC::ExecState*); |
|
114 JSC::EncodedJSValue JSC_HOST_CALL jsXSLTProcessorPrototypeFunctionClearParameters(JSC::ExecState*); |
|
115 JSC::EncodedJSValue JSC_HOST_CALL jsXSLTProcessorPrototypeFunctionReset(JSC::ExecState*); |
|
116 // Attributes |
|
117 |
|
118 JSC::JSValue jsXSLTProcessorConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
119 |
|
120 } // namespace WebCore |
|
121 |
|
122 #endif // ENABLE(XSLT) |
|
123 |
|
124 #endif |