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 JSSharedWorkerContext_h
22 #define JSSharedWorkerContext_h
24 #if ENABLE(SHARED_WORKERS)
26 #include "JSWorkerContext.h"
27 #include "SharedWorkerContext.h"
28 #include <runtime/JSObject.h>
32 class SharedWorkerContext;
34 class JSSharedWorkerContext : public JSWorkerContext {
36 typedef JSWorkerContext Base;
37 static JSSharedWorkerContext* create(JSC::JSGlobalData& globalData, JSC::Structure* structure, PassRefPtr<SharedWorkerContext> impl)
39 JSSharedWorkerContext* ptr = new (JSC::allocateCell<JSSharedWorkerContext>(globalData.heap)) JSSharedWorkerContext(globalData, structure, impl);
40 ptr->finishCreation(globalData);
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 void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
47 static const JSC::ClassInfo s_info;
49 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
51 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::GlobalObjectType, StructureFlags), &s_info);
54 SharedWorkerContext* impl() const
56 return static_cast<SharedWorkerContext*>(Base::impl());
59 JSSharedWorkerContext(JSC::JSGlobalData&, JSC::Structure*, PassRefPtr<SharedWorkerContext>);
60 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
63 SharedWorkerContext* toSharedWorkerContext(JSC::JSValue);
65 class JSSharedWorkerContextPrototype : public JSC::JSNonFinalObject {
67 typedef JSC::JSNonFinalObject Base;
68 static JSSharedWorkerContextPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
70 JSSharedWorkerContextPrototype* ptr = new (JSC::allocateCell<JSSharedWorkerContextPrototype>(globalData.heap)) JSSharedWorkerContextPrototype(globalData, globalObject, structure);
71 ptr->finishCreation(globalData);
75 static const JSC::ClassInfo s_info;
76 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
78 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
82 JSSharedWorkerContextPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
84 static const unsigned StructureFlags = Base::StructureFlags;
89 JSC::JSValue jsSharedWorkerContextName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
90 JSC::JSValue jsSharedWorkerContextOnconnect(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
91 void setJSSharedWorkerContextOnconnect(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
93 } // namespace WebCore
95 #endif // ENABLE(SHARED_WORKERS)