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

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSStyleSheetList.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:
21
21
#ifndef JSStyleSheetList_h
22
22
#define JSStyleSheetList_h
23
23
 
 
24
#include "DOMObjectWithSVGContext.h"
24
25
#include "JSDOMBinding.h"
25
26
#include <runtime/JSGlobalObject.h>
26
27
#include <runtime/ObjectPrototype.h>
29
30
 
30
31
class StyleSheetList;
31
32
 
32
 
class JSStyleSheetList : public DOMObject {
33
 
    typedef DOMObject Base;
 
33
class JSStyleSheetList : public DOMObjectWithGlobalPointer {
 
34
    typedef DOMObjectWithGlobalPointer Base;
34
35
public:
35
 
    JSStyleSheetList(PassRefPtr<JSC::Structure>, PassRefPtr<StyleSheetList>);
 
36
    JSStyleSheetList(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<StyleSheetList>);
36
37
    virtual ~JSStyleSheetList();
37
38
    static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
38
39
    virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
 
40
    virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
39
41
    virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);
40
42
    virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
41
43
    static const JSC::ClassInfo s_info;
42
44
 
43
 
    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValuePtr prototype)
 
45
    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
44
46
    {
45
47
        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
46
48
    }
47
49
 
48
 
    virtual void getPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&);
49
 
    static JSC::JSValuePtr getConstructor(JSC::ExecState*);
 
50
    virtual void markChildren(JSC::MarkStack&);
 
51
 
 
52
    virtual void getOwnPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&);
 
53
    static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
50
54
    StyleSheetList* impl() const { return m_impl.get(); }
51
55
 
52
56
private:
53
57
    RefPtr<StyleSheetList> m_impl;
54
 
    static JSC::JSValuePtr indexGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
58
    static JSC::JSValue indexGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
55
59
private:
56
60
    static bool canGetItemsForName(JSC::ExecState*, StyleSheetList*, const JSC::Identifier&);
57
 
    static JSC::JSValuePtr nameGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
61
    static JSC::JSValue nameGetter(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
58
62
};
59
63
 
60
 
JSC::JSValuePtr toJS(JSC::ExecState*, StyleSheetList*);
61
 
StyleSheetList* toStyleSheetList(JSC::JSValuePtr);
 
64
JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, StyleSheetList*);
 
65
StyleSheetList* toStyleSheetList(JSC::JSValue);
62
66
 
63
67
class JSStyleSheetListPrototype : public JSC::JSObject {
 
68
    typedef JSC::JSObject Base;
64
69
public:
65
70
    static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
66
71
    virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
67
72
    static const JSC::ClassInfo s_info;
68
73
    virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
69
 
    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValuePtr prototype)
 
74
    virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
 
75
    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
70
76
    {
71
77
        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
72
78
    }
73
 
    JSStyleSheetListPrototype(PassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
 
79
    JSStyleSheetListPrototype(NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
74
80
};
75
81
 
76
82
// Functions
77
83
 
78
 
JSC::JSValuePtr jsStyleSheetListPrototypeFunctionItem(JSC::ExecState*, JSC::JSObject*, JSC::JSValuePtr, const JSC::ArgList&);
 
84
JSC::JSValue JSC_HOST_CALL jsStyleSheetListPrototypeFunctionItem(JSC::ExecState*, JSC::JSObject*, JSC::JSValue, const JSC::ArgList&);
79
85
// Attributes
80
86
 
81
 
JSC::JSValuePtr jsStyleSheetListLength(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
82
 
JSC::JSValuePtr jsStyleSheetListConstructor(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
87
JSC::JSValue jsStyleSheetListLength(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
88
JSC::JSValue jsStyleSheetListConstructor(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
83
89
 
84
90
} // namespace WebCore
85
91