tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebCore / JSCSSStyleRule.h
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 JSCSSStyleRule_h
22 #define JSCSSStyleRule_h
23
24 #include "CSSStyleRule.h"
25 #include "JSCSSRule.h"
26 #include "JSDOMBinding.h"
27 #include <runtime/JSObject.h>
28
29 namespace WebCore {
30
31 class JSCSSStyleRule : public JSCSSRule {
32 public:
33     typedef JSCSSRule Base;
34     static JSCSSStyleRule* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<CSSStyleRule> impl)
35     {
36         JSCSSStyleRule* ptr = new (JSC::allocateCell<JSCSSStyleRule>(globalObject->globalData().heap)) JSCSSStyleRule(structure, globalObject, impl);
37         ptr->finishCreation(globalObject->globalData());
38         return ptr;
39     }
40
41     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
42     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
43     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
44     static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
45     static const JSC::ClassInfo s_info;
46
47     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
48     {
49         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
50     }
51
52     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
53 protected:
54     JSCSSStyleRule(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<CSSStyleRule>);
55     void finishCreation(JSC::JSGlobalData&);
56     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
57 };
58
59
60 class JSCSSStyleRulePrototype : public JSC::JSNonFinalObject {
61 public:
62     typedef JSC::JSNonFinalObject Base;
63     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
64     static JSCSSStyleRulePrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
65     {
66         JSCSSStyleRulePrototype* ptr = new (JSC::allocateCell<JSCSSStyleRulePrototype>(globalData.heap)) JSCSSStyleRulePrototype(globalData, globalObject, structure);
67         ptr->finishCreation(globalData);
68         return ptr;
69     }
70
71     static const JSC::ClassInfo s_info;
72     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
73     {
74         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
75     }
76
77 private:
78     JSCSSStyleRulePrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
79 protected:
80     static const unsigned StructureFlags = Base::StructureFlags;
81 };
82
83 class JSCSSStyleRuleConstructor : public DOMConstructorObject {
84 private:
85     JSCSSStyleRuleConstructor(JSC::Structure*, JSDOMGlobalObject*);
86     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
87
88 public:
89     typedef DOMConstructorObject Base;
90     static JSCSSStyleRuleConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
91     {
92         JSCSSStyleRuleConstructor* ptr = new (JSC::allocateCell<JSCSSStyleRuleConstructor>(*exec->heap())) JSCSSStyleRuleConstructor(structure, globalObject);
93         ptr->finishCreation(exec, globalObject);
94         return ptr;
95     }
96
97     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
98     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
99     static const JSC::ClassInfo s_info;
100     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
101     {
102         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
103     }
104 protected:
105     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
106 };
107
108 // Attributes
109
110 JSC::JSValue jsCSSStyleRuleSelectorText(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
111 void setJSCSSStyleRuleSelectorText(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
112 JSC::JSValue jsCSSStyleRuleStyle(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
113 JSC::JSValue jsCSSStyleRuleConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
114
115 } // namespace WebCore
116
117 #endif