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 JSClientRect_h
22 #define JSClientRect_h
24 #include "ClientRect.h"
25 #include "JSDOMBinding.h"
26 #include <runtime/JSGlobalObject.h>
27 #include <runtime/JSObject.h>
28 #include <runtime/ObjectPrototype.h>
32 class JSClientRect : public JSDOMWrapper {
34 typedef JSDOMWrapper Base;
35 static JSClientRect* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<ClientRect> impl)
37 JSClientRect* ptr = new (JSC::allocateCell<JSClientRect>(globalObject->globalData().heap)) JSClientRect(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 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
53 ClientRect* impl() const { return m_impl; }
54 void releaseImpl() { m_impl->deref(); m_impl = 0; }
59 JSClientRect(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<ClientRect>);
60 void finishCreation(JSC::JSGlobalData&);
61 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
64 class JSClientRectOwner : public JSC::WeakHandleOwner {
65 virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
66 virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
69 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, ClientRect*)
71 DEFINE_STATIC_LOCAL(JSClientRectOwner, jsClientRectOwner, ());
72 return &jsClientRectOwner;
75 inline void* wrapperContext(DOMWrapperWorld* world, ClientRect*)
80 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, ClientRect*);
81 ClientRect* toClientRect(JSC::JSValue);
83 class JSClientRectPrototype : public JSC::JSNonFinalObject {
85 typedef JSC::JSNonFinalObject Base;
86 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
87 static JSClientRectPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
89 JSClientRectPrototype* ptr = new (JSC::allocateCell<JSClientRectPrototype>(globalData.heap)) JSClientRectPrototype(globalData, globalObject, structure);
90 ptr->finishCreation(globalData);
94 static const JSC::ClassInfo s_info;
95 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
97 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
101 JSClientRectPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
103 static const unsigned StructureFlags = Base::StructureFlags;
106 class JSClientRectConstructor : public DOMConstructorObject {
108 JSClientRectConstructor(JSC::Structure*, JSDOMGlobalObject*);
109 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
112 typedef DOMConstructorObject Base;
113 static JSClientRectConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
115 JSClientRectConstructor* ptr = new (JSC::allocateCell<JSClientRectConstructor>(*exec->heap())) JSClientRectConstructor(structure, globalObject);
116 ptr->finishCreation(exec, globalObject);
120 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
121 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
122 static const JSC::ClassInfo s_info;
123 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
125 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
128 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
133 JSC::JSValue jsClientRectTop(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
134 JSC::JSValue jsClientRectRight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
135 JSC::JSValue jsClientRectBottom(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
136 JSC::JSValue jsClientRectLeft(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
137 JSC::JSValue jsClientRectWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
138 JSC::JSValue jsClientRectHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
139 JSC::JSValue jsClientRectConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
141 } // namespace WebCore