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.
21 #ifndef JSHTMLSourceElement_h
22 #define JSHTMLSourceElement_h
26 #include "HTMLSourceElement.h"
27 #include "JSDOMBinding.h"
28 #include "JSHTMLElement.h"
29 #include <runtime/JSObject.h>
33 class JSHTMLSourceElement : public JSHTMLElement {
35 typedef JSHTMLElement Base;
36 static JSHTMLSourceElement* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLSourceElement> impl)
38 JSHTMLSourceElement* ptr = new (JSC::allocateCell<JSHTMLSourceElement>(globalObject->globalData().heap)) JSHTMLSourceElement(structure, globalObject, impl);
39 ptr->finishCreation(globalObject->globalData());
43 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
44 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
45 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
46 static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
47 static const JSC::ClassInfo s_info;
49 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
51 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
54 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
56 JSHTMLSourceElement(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<HTMLSourceElement>);
57 void finishCreation(JSC::JSGlobalData&);
58 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
62 class JSHTMLSourceElementPrototype : public JSC::JSNonFinalObject {
64 typedef JSC::JSNonFinalObject Base;
65 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
66 static JSHTMLSourceElementPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
68 JSHTMLSourceElementPrototype* ptr = new (JSC::allocateCell<JSHTMLSourceElementPrototype>(globalData.heap)) JSHTMLSourceElementPrototype(globalData, globalObject, structure);
69 ptr->finishCreation(globalData);
73 static const JSC::ClassInfo s_info;
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 JSHTMLSourceElementPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
82 static const unsigned StructureFlags = Base::StructureFlags;
85 class JSHTMLSourceElementConstructor : public DOMConstructorObject {
87 JSHTMLSourceElementConstructor(JSC::Structure*, JSDOMGlobalObject*);
88 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
91 typedef DOMConstructorObject Base;
92 static JSHTMLSourceElementConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
94 JSHTMLSourceElementConstructor* ptr = new (JSC::allocateCell<JSHTMLSourceElementConstructor>(*exec->heap())) JSHTMLSourceElementConstructor(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::JSValue jsHTMLSourceElementSrc(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
113 void setJSHTMLSourceElementSrc(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
114 JSC::JSValue jsHTMLSourceElementType(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
115 void setJSHTMLSourceElementType(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
116 JSC::JSValue jsHTMLSourceElementMedia(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
117 void setJSHTMLSourceElementMedia(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
118 JSC::JSValue jsHTMLSourceElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
120 } // namespace WebCore
122 #endif // ENABLE(VIDEO)