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 JSTextTrackCueList_h
22 #define JSTextTrackCueList_h
24 #if ENABLE(VIDEO_TRACK)
26 #include "JSDOMBinding.h"
27 #include "TextTrackCueList.h"
28 #include <runtime/JSGlobalObject.h>
29 #include <runtime/JSObject.h>
30 #include <runtime/ObjectPrototype.h>
34 class JSTextTrackCueList : public JSDOMWrapper {
36 typedef JSDOMWrapper Base;
37 static JSTextTrackCueList* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TextTrackCueList> impl)
39 JSTextTrackCueList* ptr = new (JSC::allocateCell<JSTextTrackCueList>(globalObject->globalData().heap)) JSTextTrackCueList(structure, globalObject, impl);
40 ptr->finishCreation(globalObject->globalData());
44 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
45 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
46 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
47 static bool getOwnPropertySlotByIndex(JSC::JSCell*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);
48 static const JSC::ClassInfo s_info;
50 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
52 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
55 static void getOwnPropertyNames(JSC::JSObject*, JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);
56 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
57 TextTrackCueList* impl() const { return m_impl; }
58 void releaseImpl() { m_impl->deref(); m_impl = 0; }
61 TextTrackCueList* m_impl;
63 JSTextTrackCueList(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TextTrackCueList>);
64 void finishCreation(JSC::JSGlobalData&);
65 static const unsigned StructureFlags = JSC::OverridesGetPropertyNames | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
66 static JSC::JSValue indexGetter(JSC::ExecState*, JSC::JSValue, unsigned);
69 class JSTextTrackCueListOwner : public JSC::WeakHandleOwner {
70 virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
71 virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
74 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, TextTrackCueList*)
76 DEFINE_STATIC_LOCAL(JSTextTrackCueListOwner, jsTextTrackCueListOwner, ());
77 return &jsTextTrackCueListOwner;
80 inline void* wrapperContext(DOMWrapperWorld* world, TextTrackCueList*)
85 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TextTrackCueList*);
86 TextTrackCueList* toTextTrackCueList(JSC::JSValue);
88 class JSTextTrackCueListPrototype : public JSC::JSNonFinalObject {
90 typedef JSC::JSNonFinalObject Base;
91 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
92 static JSTextTrackCueListPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
94 JSTextTrackCueListPrototype* ptr = new (JSC::allocateCell<JSTextTrackCueListPrototype>(globalData.heap)) JSTextTrackCueListPrototype(globalData, globalObject, structure);
95 ptr->finishCreation(globalData);
99 static const JSC::ClassInfo s_info;
100 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
101 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
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);
108 JSTextTrackCueListPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
110 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
113 class JSTextTrackCueListConstructor : public DOMConstructorObject {
115 JSTextTrackCueListConstructor(JSC::Structure*, JSDOMGlobalObject*);
116 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
119 typedef DOMConstructorObject Base;
120 static JSTextTrackCueListConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
122 JSTextTrackCueListConstructor* ptr = new (JSC::allocateCell<JSTextTrackCueListConstructor>(*exec->heap())) JSTextTrackCueListConstructor(structure, globalObject);
123 ptr->finishCreation(exec, globalObject);
127 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
128 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
129 static const JSC::ClassInfo s_info;
130 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
132 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
135 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
140 JSC::EncodedJSValue JSC_HOST_CALL jsTextTrackCueListPrototypeFunctionItem(JSC::ExecState*);
141 JSC::EncodedJSValue JSC_HOST_CALL jsTextTrackCueListPrototypeFunctionGetCueById(JSC::ExecState*);
144 JSC::JSValue jsTextTrackCueListLength(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
145 JSC::JSValue jsTextTrackCueListConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
147 } // namespace WebCore
149 #endif // ENABLE(VIDEO_TRACK)