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 JSHTMLTrackElement_h
22 #define JSHTMLTrackElement_h
24 #if ENABLE(VIDEO_TRACK)
26 #include "HTMLTrackElement.h"
27 #include "JSDOMBinding.h"
28 #include "JSHTMLElement.h"
29 #include <runtime/JSObject.h>
33 class JSHTMLTrackElement : public JSHTMLElement {
35 typedef JSHTMLElement Base;
36 static JSHTMLTrackElement* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLTrackElement> impl)
38 JSHTMLTrackElement* ptr = new (JSC::allocateCell<JSHTMLTrackElement>(globalObject->globalData().heap)) JSHTMLTrackElement(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 JSHTMLTrackElement(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<HTMLTrackElement>);
57 void finishCreation(JSC::JSGlobalData&);
58 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
62 class JSHTMLTrackElementPrototype : public JSC::JSNonFinalObject {
64 typedef JSC::JSNonFinalObject Base;
65 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
66 static JSHTMLTrackElementPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
68 JSHTMLTrackElementPrototype* ptr = new (JSC::allocateCell<JSHTMLTrackElementPrototype>(globalData.heap)) JSHTMLTrackElementPrototype(globalData, globalObject, structure);
69 ptr->finishCreation(globalData);
73 static const JSC::ClassInfo s_info;
74 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
75 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
76 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
78 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
82 JSHTMLTrackElementPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
84 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
87 class JSHTMLTrackElementConstructor : public DOMConstructorObject {
89 JSHTMLTrackElementConstructor(JSC::Structure*, JSDOMGlobalObject*);
90 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
93 typedef DOMConstructorObject Base;
94 static JSHTMLTrackElementConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
96 JSHTMLTrackElementConstructor* ptr = new (JSC::allocateCell<JSHTMLTrackElementConstructor>(*exec->heap())) JSHTMLTrackElementConstructor(structure, globalObject);
97 ptr->finishCreation(exec, globalObject);
101 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
102 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
103 static const JSC::ClassInfo s_info;
104 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
106 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
109 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
114 JSC::JSValue jsHTMLTrackElementSrc(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
115 void setJSHTMLTrackElementSrc(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
116 JSC::JSValue jsHTMLTrackElementKind(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
117 void setJSHTMLTrackElementKind(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
118 JSC::JSValue jsHTMLTrackElementSrclang(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
119 void setJSHTMLTrackElementSrclang(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
120 JSC::JSValue jsHTMLTrackElementLabel(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
121 void setJSHTMLTrackElementLabel(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
122 JSC::JSValue jsHTMLTrackElementIsDefault(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
123 void setJSHTMLTrackElementIsDefault(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
124 JSC::JSValue jsHTMLTrackElementReadyState(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
125 JSC::JSValue jsHTMLTrackElementTrack(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
126 JSC::JSValue jsHTMLTrackElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
129 JSC::JSValue jsHTMLTrackElementNONE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
130 JSC::JSValue jsHTMLTrackElementLOADING(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 JSC::JSValue jsHTMLTrackElementLOADED(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
132 JSC::JSValue jsHTMLTrackElementERROR(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
134 } // namespace WebCore
136 #endif // ENABLE(VIDEO_TRACK)