tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSStorageEvent.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 JSStorageEvent_h
22 #define JSStorageEvent_h
23
24 #include "JSDOMBinding.h"
25 #include "JSEvent.h"
26 #include "StorageEvent.h"
27 #include <runtime/JSObject.h>
28
29 namespace WebCore {
30
31 class JSStorageEvent : public JSEvent {
32 public:
33     typedef JSEvent Base;
34     static JSStorageEvent* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<StorageEvent> impl)
35     {
36         JSStorageEvent* ptr = new (JSC::allocateCell<JSStorageEvent>(globalObject->globalData().heap)) JSStorageEvent(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 const JSC::ClassInfo s_info;
45
46     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
47     {
48         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
49     }
50
51     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
52 protected:
53     JSStorageEvent(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<StorageEvent>);
54     void finishCreation(JSC::JSGlobalData&);
55     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
56 };
57
58
59 class JSStorageEventPrototype : public JSC::JSNonFinalObject {
60 public:
61     typedef JSC::JSNonFinalObject Base;
62     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
63     static JSStorageEventPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
64     {
65         JSStorageEventPrototype* ptr = new (JSC::allocateCell<JSStorageEventPrototype>(globalData.heap)) JSStorageEventPrototype(globalData, globalObject, structure);
66         ptr->finishCreation(globalData);
67         return ptr;
68     }
69
70     static const JSC::ClassInfo s_info;
71     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
72     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
73     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
74     {
75         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
76     }
77
78 private:
79     JSStorageEventPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
80 protected:
81     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
82 };
83
84 class JSStorageEventConstructor : public DOMConstructorObject {
85 private:
86     JSStorageEventConstructor(JSC::Structure*, JSDOMGlobalObject*);
87     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
88
89 public:
90     typedef DOMConstructorObject Base;
91     static JSStorageEventConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
92     {
93         JSStorageEventConstructor* ptr = new (JSC::allocateCell<JSStorageEventConstructor>(*exec->heap())) JSStorageEventConstructor(structure, globalObject);
94         ptr->finishCreation(exec, globalObject);
95         return ptr;
96     }
97
98     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
99     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
100     static const JSC::ClassInfo s_info;
101     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
102     {
103         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
104     }
105 protected:
106     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
107 };
108
109 // Functions
110
111 JSC::EncodedJSValue JSC_HOST_CALL jsStorageEventPrototypeFunctionInitStorageEvent(JSC::ExecState*);
112 // Attributes
113
114 JSC::JSValue jsStorageEventKey(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
115 JSC::JSValue jsStorageEventOldValue(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
116 JSC::JSValue jsStorageEventNewValue(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
117 JSC::JSValue jsStorageEventUrl(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
118 JSC::JSValue jsStorageEventStorageArea(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
119 JSC::JSValue jsStorageEventConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
120
121 } // namespace WebCore
122
123 #endif