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

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSAttr.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 JSAttr_h
22
22
#define JSAttr_h
23
23
 
24
 
#include "JSEventTargetNode.h"
25
24
#include "Attr.h"
 
25
#include "JSNode.h"
 
26
 
26
27
namespace WebCore {
27
28
 
28
29
class Attr;
29
30
 
30
 
class JSAttr : public JSEventTargetNode {
31
 
    typedef JSEventTargetNode Base;
 
31
class JSAttr : public JSNode {
 
32
    typedef JSNode Base;
32
33
public:
33
 
    JSAttr(PassRefPtr<JSC::Structure>, PassRefPtr<Attr>);
 
34
    JSAttr(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<Attr>);
34
35
    static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
35
36
    virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
36
 
    virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValuePtr, JSC::PutPropertySlot&);
 
37
    virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
 
38
    virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
37
39
    virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
38
40
    static const JSC::ClassInfo s_info;
39
41
 
40
 
    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValuePtr prototype)
 
42
    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
41
43
    {
42
44
        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
43
45
    }
44
46
 
45
 
    static JSC::JSValuePtr getConstructor(JSC::ExecState*);
 
47
    virtual void markChildren(JSC::MarkStack&);
 
48
 
 
49
    static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
46
50
 
47
51
    // Custom attributes
48
 
    void setValue(JSC::ExecState*, JSC::JSValuePtr);
 
52
    void setValue(JSC::ExecState*, JSC::JSValue);
49
53
    Attr* impl() const
50
54
    {
51
55
        return static_cast<Attr*>(Base::impl());
52
56
    }
53
57
};
54
58
 
55
 
Attr* toAttr(JSC::JSValuePtr);
 
59
Attr* toAttr(JSC::JSValue);
56
60
 
57
61
class JSAttrPrototype : public JSC::JSObject {
 
62
    typedef JSC::JSObject Base;
58
63
public:
59
64
    static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
60
65
    virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
61
66
    static const JSC::ClassInfo s_info;
62
 
    JSAttrPrototype(PassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
 
67
    static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
 
68
    {
 
69
        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
 
70
    }
 
71
    JSAttrPrototype(NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObject(structure) { }
63
72
};
64
73
 
65
74
// Attributes
66
75
 
67
 
JSC::JSValuePtr jsAttrName(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
68
 
JSC::JSValuePtr jsAttrSpecified(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
69
 
JSC::JSValuePtr jsAttrValue(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
70
 
void setJSAttrValue(JSC::ExecState*, JSC::JSObject*, JSC::JSValuePtr);
71
 
JSC::JSValuePtr jsAttrOwnerElement(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
72
 
JSC::JSValuePtr jsAttrStyle(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
73
 
JSC::JSValuePtr jsAttrConstructor(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
76
JSC::JSValue jsAttrName(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
77
JSC::JSValue jsAttrSpecified(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
78
JSC::JSValue jsAttrValue(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
79
void setJSAttrValue(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
 
80
JSC::JSValue jsAttrOwnerElement(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
81
JSC::JSValue jsAttrStyle(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
 
82
JSC::JSValue jsAttrConstructor(JSC::ExecState*, const JSC::Identifier&, const JSC::PropertySlot&);
74
83
 
75
84
} // namespace WebCore
76
85