|
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 JSDOMPluginArray_h |
|
22 #define JSDOMPluginArray_h |
|
23 |
|
24 #include "JSDOMBinding.h" |
|
25 #include <runtime/JSGlobalObject.h> |
|
26 #include <runtime/JSObjectWithGlobalObject.h> |
|
27 #include <runtime/ObjectPrototype.h> |
|
28 |
|
29 namespace WebCore { |
|
30 |
|
31 class DOMPluginArray; |
|
32 |
|
33 class JSDOMPluginArray : public DOMObjectWithGlobalPointer { |
|
34 typedef DOMObjectWithGlobalPointer Base; |
|
35 public: |
|
36 JSDOMPluginArray(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<DOMPluginArray>); |
|
37 virtual ~JSDOMPluginArray(); |
|
38 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
39 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
40 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
41 virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&); |
|
42 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
43 static const JSC::ClassInfo s_info; |
|
44 |
|
45 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
46 { |
|
47 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
48 } |
|
49 |
|
50 virtual void getOwnPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties); |
|
51 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
52 DOMPluginArray* impl() const { return m_impl.get(); } |
|
53 |
|
54 private: |
|
55 RefPtr<DOMPluginArray> m_impl; |
|
56 protected: |
|
57 static const unsigned StructureFlags = JSC::OverridesGetPropertyNames | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
58 static JSC::JSValue indexGetter(JSC::ExecState*, JSC::JSValue, unsigned); |
|
59 private: |
|
60 static bool canGetItemsForName(JSC::ExecState*, DOMPluginArray*, const JSC::Identifier&); |
|
61 static JSC::JSValue nameGetter(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
62 }; |
|
63 |
|
64 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, DOMPluginArray*); |
|
65 DOMPluginArray* toDOMPluginArray(JSC::JSValue); |
|
66 |
|
67 class JSDOMPluginArrayPrototype : public JSC::JSObjectWithGlobalObject { |
|
68 typedef JSC::JSObjectWithGlobalObject Base; |
|
69 public: |
|
70 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
71 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
72 static const JSC::ClassInfo s_info; |
|
73 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
74 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
75 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
76 { |
|
77 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
78 } |
|
79 JSDOMPluginArrayPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
80 protected: |
|
81 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
82 }; |
|
83 |
|
84 // Functions |
|
85 |
|
86 JSC::EncodedJSValue JSC_HOST_CALL jsDOMPluginArrayPrototypeFunctionItem(JSC::ExecState*); |
|
87 JSC::EncodedJSValue JSC_HOST_CALL jsDOMPluginArrayPrototypeFunctionNamedItem(JSC::ExecState*); |
|
88 JSC::EncodedJSValue JSC_HOST_CALL jsDOMPluginArrayPrototypeFunctionRefresh(JSC::ExecState*); |
|
89 // Attributes |
|
90 |
|
91 JSC::JSValue jsDOMPluginArrayLength(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
92 JSC::JSValue jsDOMPluginArrayConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
93 |
|
94 } // namespace WebCore |
|
95 |
|
96 #endif |