|
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 JSAttr_h |
|
22 #define JSAttr_h |
|
23 |
|
24 #include "Attr.h" |
|
25 #include "JSNode.h" |
|
26 #include <runtime/JSObjectWithGlobalObject.h> |
|
27 |
|
28 namespace WebCore { |
|
29 |
|
30 class Attr; |
|
31 |
|
32 class JSAttr : public JSNode { |
|
33 typedef JSNode Base; |
|
34 public: |
|
35 JSAttr(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<Attr>); |
|
36 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
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, StructureFlags), AnonymousSlotCount); |
|
46 } |
|
47 |
|
48 virtual void markChildren(JSC::MarkStack&); |
|
49 |
|
50 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
51 Attr* impl() const |
|
52 { |
|
53 return static_cast<Attr*>(Base::impl()); |
|
54 } |
|
55 protected: |
|
56 static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
57 }; |
|
58 |
|
59 Attr* toAttr(JSC::JSValue); |
|
60 |
|
61 class JSAttrPrototype : public JSC::JSObjectWithGlobalObject { |
|
62 typedef JSC::JSObjectWithGlobalObject Base; |
|
63 public: |
|
64 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
65 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
66 static const JSC::ClassInfo s_info; |
|
67 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
68 { |
|
69 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
70 } |
|
71 JSAttrPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
72 protected: |
|
73 static const unsigned StructureFlags = JSC::OverridesMarkChildren | Base::StructureFlags; |
|
74 }; |
|
75 |
|
76 // Attributes |
|
77 |
|
78 JSC::JSValue jsAttrName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
79 JSC::JSValue jsAttrSpecified(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
80 JSC::JSValue jsAttrValue(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
81 void setJSAttrValue(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
82 JSC::JSValue jsAttrOwnerElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
83 JSC::JSValue jsAttrIsId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
84 JSC::JSValue jsAttrStyle(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
85 JSC::JSValue jsAttrConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
86 |
|
87 } // namespace WebCore |
|
88 |
|
89 #endif |