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 JSDirectoryEntry_h
22 #define JSDirectoryEntry_h
24 #if ENABLE(FILE_SYSTEM)
26 #include "DirectoryEntry.h"
27 #include "JSDOMBinding.h"
29 #include <runtime/JSObject.h>
33 class JSDirectoryEntry : public JSEntry {
36 static JSDirectoryEntry* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<DirectoryEntry> impl)
38 JSDirectoryEntry* ptr = new (JSC::allocateCell<JSDirectoryEntry>(globalObject->globalData().heap)) JSDirectoryEntry(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 const JSC::ClassInfo s_info;
48 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
50 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
53 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
56 JSC::JSValue getFile(JSC::ExecState*);
57 JSC::JSValue getDirectory(JSC::ExecState*);
58 DirectoryEntry* impl() const
60 return static_cast<DirectoryEntry*>(Base::impl());
63 JSDirectoryEntry(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<DirectoryEntry>);
64 void finishCreation(JSC::JSGlobalData&);
65 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
68 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, DirectoryEntry*);
69 DirectoryEntry* toDirectoryEntry(JSC::JSValue);
71 class JSDirectoryEntryPrototype : public JSC::JSNonFinalObject {
73 typedef JSC::JSNonFinalObject Base;
74 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
75 static JSDirectoryEntryPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
77 JSDirectoryEntryPrototype* ptr = new (JSC::allocateCell<JSDirectoryEntryPrototype>(globalData.heap)) JSDirectoryEntryPrototype(globalData, globalObject, structure);
78 ptr->finishCreation(globalData);
82 static const JSC::ClassInfo s_info;
83 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
84 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
85 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
87 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
91 JSDirectoryEntryPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
93 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
96 class JSDirectoryEntryConstructor : public DOMConstructorObject {
98 JSDirectoryEntryConstructor(JSC::Structure*, JSDOMGlobalObject*);
99 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
102 typedef DOMConstructorObject Base;
103 static JSDirectoryEntryConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
105 JSDirectoryEntryConstructor* ptr = new (JSC::allocateCell<JSDirectoryEntryConstructor>(*exec->heap())) JSDirectoryEntryConstructor(structure, globalObject);
106 ptr->finishCreation(exec, globalObject);
110 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
111 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
112 static const JSC::ClassInfo s_info;
113 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
115 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
118 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
123 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntryPrototypeFunctionCreateReader(JSC::ExecState*);
124 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntryPrototypeFunctionGetFile(JSC::ExecState*);
125 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntryPrototypeFunctionGetDirectory(JSC::ExecState*);
126 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntryPrototypeFunctionRemoveRecursively(JSC::ExecState*);
129 JSC::JSValue jsDirectoryEntryConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 } // namespace WebCore
133 #endif // ENABLE(FILE_SYSTEM)