tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSSharedWorkerContext.h
1 /*
2     This file is part of the WebKit open source project.
3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4
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.
9
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.
14
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.
19 */
20
21 #ifndef JSSharedWorkerContext_h
22 #define JSSharedWorkerContext_h
23
24 #if ENABLE(SHARED_WORKERS)
25
26 #include "JSWorkerContext.h"
27 #include "SharedWorkerContext.h"
28 #include <runtime/JSObject.h>
29
30 namespace WebCore {
31
32 class SharedWorkerContext;
33
34 class JSSharedWorkerContext : public JSWorkerContext {
35 public:
36     typedef JSWorkerContext Base;
37     static JSSharedWorkerContext* create(JSC::JSGlobalData& globalData, JSC::Structure* structure, PassRefPtr<SharedWorkerContext> impl)
38     {
39         JSSharedWorkerContext* ptr = new (JSC::allocateCell<JSSharedWorkerContext>(globalData.heap)) JSSharedWorkerContext(globalData, structure, impl);
40         ptr->finishCreation(globalData);
41         return ptr;
42     }
43
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;
48
49     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
50     {
51         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::GlobalObjectType, StructureFlags), &s_info);
52     }
53
54     SharedWorkerContext* impl() const
55     {
56         return static_cast<SharedWorkerContext*>(Base::impl());
57     }
58 protected:
59     JSSharedWorkerContext(JSC::JSGlobalData&, JSC::Structure*, PassRefPtr<SharedWorkerContext>);
60     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
61 };
62
63 SharedWorkerContext* toSharedWorkerContext(JSC::JSValue);
64
65 class JSSharedWorkerContextPrototype : public JSC::JSNonFinalObject {
66 public:
67     typedef JSC::JSNonFinalObject Base;
68     static JSSharedWorkerContextPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
69     {
70         JSSharedWorkerContextPrototype* ptr = new (JSC::allocateCell<JSSharedWorkerContextPrototype>(globalData.heap)) JSSharedWorkerContextPrototype(globalData, globalObject, structure);
71         ptr->finishCreation(globalData);
72         return ptr;
73     }
74
75     static const JSC::ClassInfo s_info;
76     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
77     {
78         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
79     }
80
81 private:
82     JSSharedWorkerContextPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
83 protected:
84     static const unsigned StructureFlags = Base::StructureFlags;
85 };
86
87 // Attributes
88
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);
92
93 } // namespace WebCore
94
95 #endif // ENABLE(SHARED_WORKERS)
96
97 #endif