~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSSharedWorkerContext.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
29
namespace WebCore {
 
30
 
 
31
class SharedWorkerContext;
 
32
 
 
33
class JSSharedWorkerContext : public JSWorkerContext {
 
34
    typedef JSWorkerContext Base;
 
35
public:
 
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;
 
42
 
 
43
    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
 
44
    {
 
45
        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
 
46
    }
 
47
 
 
48
    SharedWorkerContext* impl() const
 
49
    {
 
50
        return static_cast<SharedWorkerContext*>(Base::impl());
 
51
    }
 
52
};
 
53
 
 
54
SharedWorkerContext* toSharedWorkerContext(JSC::JSValue);
 
55
 
 
56
class JSSharedWorkerContextPrototype : public JSC::JSObject {
 
57
    typedef JSC::JSObject Base;
 
58
public:
 
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) { }
 
63
};
 
64
 
 
65
// Attributes
 
66
 
 
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);
 
70
 
 
71
} // namespace WebCore
 
72
 
 
73
#endif // ENABLE(SHARED_WORKERS)
 
74
 
 
75
#endif