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"
31
class SharedWorkerContext;
33
class JSSharedWorkerContext : public JSWorkerContext {
34
typedef JSWorkerContext Base;
36
JSSharedWorkerContext(NonNullPassRefPtr<JSC::Structure>, PassRefPtr<SharedWorkerContext>);
37
virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
38
virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
39
virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
40
virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
41
static const JSC::ClassInfo s_info;
43
static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
45
return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
48
SharedWorkerContext* impl() const
50
return static_cast<SharedWorkerContext*>(Base::impl());
54
SharedWorkerContext* toSharedWorkerContext(JSC::JSValue);
56
class JSSharedWorkerContextPrototype : public JSC::JSObject {
57
typedef JSC::JSObject Base;
59
void* operator new(size_t, JSC::JSGlobalData*);
60
virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
61
static const JSC::ClassInfo s_info;
62
JSSharedWorkerContextPrototype(NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
67
JSC::JSValue jsSharedWorkerContextName(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
68
JSC::JSValue jsSharedWorkerContextOnconnect(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
69
void setJSSharedWorkerContextOnconnect(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
71
} // namespace WebCore
73
#endif // ENABLE(SHARED_WORKERS)