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.
25 #include "JSDOMBinding.h"
26 #include <runtime/JSGlobalObject.h>
27 #include <runtime/JSObject.h>
28 #include <runtime/ObjectPrototype.h>
32 class JSBarInfo : public JSDOMWrapper {
34 typedef JSDOMWrapper Base;
35 static JSBarInfo* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<BarInfo> impl)
37 JSBarInfo* ptr = new (JSC::allocateCell<JSBarInfo>(globalObject->globalData().heap)) JSBarInfo(structure, globalObject, impl);
38 ptr->finishCreation(globalObject->globalData());
42 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
43 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
44 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
45 static const JSC::ClassInfo s_info;
47 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
49 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
52 BarInfo* impl() const { return m_impl; }
53 void releaseImpl() { m_impl->deref(); m_impl = 0; }
58 JSBarInfo(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<BarInfo>);
59 void finishCreation(JSC::JSGlobalData&);
60 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
63 class JSBarInfoOwner : public JSC::WeakHandleOwner {
64 virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
65 virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
68 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, BarInfo*)
70 DEFINE_STATIC_LOCAL(JSBarInfoOwner, jsBarInfoOwner, ());
71 return &jsBarInfoOwner;
74 inline void* wrapperContext(DOMWrapperWorld* world, BarInfo*)
79 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, BarInfo*);
80 BarInfo* toBarInfo(JSC::JSValue);
82 class JSBarInfoPrototype : public JSC::JSNonFinalObject {
84 typedef JSC::JSNonFinalObject Base;
85 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
86 static JSBarInfoPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
88 JSBarInfoPrototype* ptr = new (JSC::allocateCell<JSBarInfoPrototype>(globalData.heap)) JSBarInfoPrototype(globalData, globalObject, structure);
89 ptr->finishCreation(globalData);
93 static const JSC::ClassInfo s_info;
94 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
96 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
100 JSBarInfoPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
102 static const unsigned StructureFlags = Base::StructureFlags;
107 JSC::JSValue jsBarInfoVisible(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
109 } // namespace WebCore