2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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.
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.
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.
24 #include "JSCharacterData.h"
25 #include "JSDOMBinding.h"
27 #include <runtime/JSObject.h>
31 class JSText : public JSCharacterData {
33 typedef JSCharacterData Base;
34 static JSText* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<Text> impl)
36 JSText* ptr = new (JSC::allocateCell<JSText>(globalObject->globalData().heap)) JSText(structure, globalObject, impl);
37 ptr->finishCreation(globalObject->globalData());
41 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
42 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
43 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
44 static const JSC::ClassInfo s_info;
46 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
48 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
51 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
53 JSText(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<Text>);
54 void finishCreation(JSC::JSGlobalData&);
55 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
58 JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, Text*);
60 class JSTextPrototype : public JSC::JSNonFinalObject {
62 typedef JSC::JSNonFinalObject Base;
63 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
64 static JSTextPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
66 JSTextPrototype* ptr = new (JSC::allocateCell<JSTextPrototype>(globalData.heap)) JSTextPrototype(globalData, globalObject, structure);
67 ptr->finishCreation(globalData);
71 static const JSC::ClassInfo s_info;
72 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
73 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
74 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
76 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
80 JSTextPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
82 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
85 class JSTextConstructor : public DOMConstructorObject {
87 JSTextConstructor(JSC::Structure*, JSDOMGlobalObject*);
88 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
91 typedef DOMConstructorObject Base;
92 static JSTextConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
94 JSTextConstructor* ptr = new (JSC::allocateCell<JSTextConstructor>(*exec->heap())) JSTextConstructor(structure, globalObject);
95 ptr->finishCreation(exec, globalObject);
99 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
100 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
101 static const JSC::ClassInfo s_info;
102 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
104 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
107 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
112 JSC::EncodedJSValue JSC_HOST_CALL jsTextPrototypeFunctionSplitText(JSC::ExecState*);
113 JSC::EncodedJSValue JSC_HOST_CALL jsTextPrototypeFunctionReplaceWholeText(JSC::ExecState*);
116 JSC::JSValue jsTextWholeText(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
117 JSC::JSValue jsTextConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
119 } // namespace WebCore