|
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 JSWebKitCSSKeyframesRule_h |
|
22 #define JSWebKitCSSKeyframesRule_h |
|
23 |
|
24 #include "JSCSSRule.h" |
|
25 #include <runtime/JSObjectWithGlobalObject.h> |
|
26 |
|
27 namespace WebCore { |
|
28 |
|
29 class WebKitCSSKeyframesRule; |
|
30 |
|
31 class JSWebKitCSSKeyframesRule : public JSCSSRule { |
|
32 typedef JSCSSRule Base; |
|
33 public: |
|
34 JSWebKitCSSKeyframesRule(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<WebKitCSSKeyframesRule>); |
|
35 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
36 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
37 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
38 virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&); |
|
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 getOwnPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties); |
|
49 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
50 protected: |
|
51 static const unsigned StructureFlags = JSC::OverridesGetPropertyNames | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
52 static JSC::JSValue indexGetter(JSC::ExecState*, JSC::JSValue, unsigned); |
|
53 }; |
|
54 |
|
55 |
|
56 class JSWebKitCSSKeyframesRulePrototype : public JSC::JSObjectWithGlobalObject { |
|
57 typedef JSC::JSObjectWithGlobalObject Base; |
|
58 public: |
|
59 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
60 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
61 static const JSC::ClassInfo s_info; |
|
62 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
63 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
64 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
65 { |
|
66 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
67 } |
|
68 JSWebKitCSSKeyframesRulePrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
69 protected: |
|
70 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
71 }; |
|
72 |
|
73 // Functions |
|
74 |
|
75 JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSKeyframesRulePrototypeFunctionInsertRule(JSC::ExecState*); |
|
76 JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSKeyframesRulePrototypeFunctionDeleteRule(JSC::ExecState*); |
|
77 JSC::EncodedJSValue JSC_HOST_CALL jsWebKitCSSKeyframesRulePrototypeFunctionFindRule(JSC::ExecState*); |
|
78 // Attributes |
|
79 |
|
80 JSC::JSValue jsWebKitCSSKeyframesRuleName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
81 void setJSWebKitCSSKeyframesRuleName(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
82 JSC::JSValue jsWebKitCSSKeyframesRuleCssRules(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
83 JSC::JSValue jsWebKitCSSKeyframesRuleConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
84 |
|
85 } // namespace WebCore |
|
86 |
|
87 #endif |