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 JSDirectoryEntrySync_h
22 #define JSDirectoryEntrySync_h
24 #if ENABLE(FILE_SYSTEM)
26 #include "DirectoryEntrySync.h"
27 #include "JSDOMBinding.h"
28 #include "JSEntrySync.h"
29 #include <runtime/JSObject.h>
33 class JSDirectoryEntrySync : public JSEntrySync {
35 typedef JSEntrySync Base;
36 static JSDirectoryEntrySync* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<DirectoryEntrySync> impl)
38 JSDirectoryEntrySync* ptr = new (JSC::allocateCell<JSDirectoryEntrySync>(globalObject->globalData().heap)) JSDirectoryEntrySync(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 DirectoryEntrySync* impl() const
60 return static_cast<DirectoryEntrySync*>(Base::impl());
63 JSDirectoryEntrySync(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<DirectoryEntrySync>);
64 void finishCreation(JSC::JSGlobalData&);
65 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
68 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, DirectoryEntrySync*);
69 DirectoryEntrySync* toDirectoryEntrySync(JSC::JSValue);
71 class JSDirectoryEntrySyncPrototype : public JSC::JSNonFinalObject {
73 typedef JSC::JSNonFinalObject Base;
74 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
75 static JSDirectoryEntrySyncPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
77 JSDirectoryEntrySyncPrototype* ptr = new (JSC::allocateCell<JSDirectoryEntrySyncPrototype>(globalData.heap)) JSDirectoryEntrySyncPrototype(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 JSDirectoryEntrySyncPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
93 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
96 class JSDirectoryEntrySyncConstructor : public DOMConstructorObject {
98 JSDirectoryEntrySyncConstructor(JSC::Structure*, JSDOMGlobalObject*);
99 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
102 typedef DOMConstructorObject Base;
103 static JSDirectoryEntrySyncConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
105 JSDirectoryEntrySyncConstructor* ptr = new (JSC::allocateCell<JSDirectoryEntrySyncConstructor>(*exec->heap())) JSDirectoryEntrySyncConstructor(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 jsDirectoryEntrySyncPrototypeFunctionCreateReader(JSC::ExecState*);
124 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntrySyncPrototypeFunctionGetFile(JSC::ExecState*);
125 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntrySyncPrototypeFunctionGetDirectory(JSC::ExecState*);
126 JSC::EncodedJSValue JSC_HOST_CALL jsDirectoryEntrySyncPrototypeFunctionRemoveRecursively(JSC::ExecState*);
129 JSC::JSValue jsDirectoryEntrySyncConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 } // namespace WebCore
133 #endif // ENABLE(FILE_SYSTEM)