tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSMouseEvent.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 JSMouseEvent_h
22 #define JSMouseEvent_h
23
24 #include "JSDOMBinding.h"
25 #include "JSUIEvent.h"
26 #include "MouseEvent.h"
27 #include <runtime/JSObject.h>
28
29 namespace WebCore {
30
31 class JSMouseEvent : public JSUIEvent {
32 public:
33     typedef JSUIEvent Base;
34     static JSMouseEvent* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<MouseEvent> impl)
35     {
36         JSMouseEvent* ptr = new (JSC::allocateCell<JSMouseEvent>(globalObject->globalData().heap)) JSMouseEvent(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     JSMouseEvent(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<MouseEvent>);
54     void finishCreation(JSC::JSGlobalData&);
55     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
56 };
57
58
59 class JSMouseEventPrototype : public JSC::JSNonFinalObject {
60 public:
61     typedef JSC::JSNonFinalObject Base;
62     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
63     static JSMouseEventPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
64     {
65         JSMouseEventPrototype* ptr = new (JSC::allocateCell<JSMouseEventPrototype>(globalData.heap)) JSMouseEventPrototype(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     JSMouseEventPrototype(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 JSMouseEventConstructor : public DOMConstructorObject {
85 private:
86     JSMouseEventConstructor(JSC::Structure*, JSDOMGlobalObject*);
87     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
88
89 public:
90     typedef DOMConstructorObject Base;
91     static JSMouseEventConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
92     {
93         JSMouseEventConstructor* ptr = new (JSC::allocateCell<JSMouseEventConstructor>(*exec->heap())) JSMouseEventConstructor(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 jsMouseEventPrototypeFunctionInitMouseEvent(JSC::ExecState*);
112 // Attributes
113
114 JSC::JSValue jsMouseEventScreenX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
115 JSC::JSValue jsMouseEventScreenY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
116 JSC::JSValue jsMouseEventClientX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
117 JSC::JSValue jsMouseEventClientY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
118 JSC::JSValue jsMouseEventWebkitMovementX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
119 JSC::JSValue jsMouseEventWebkitMovementY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
120 JSC::JSValue jsMouseEventCtrlKey(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
121 JSC::JSValue jsMouseEventShiftKey(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
122 JSC::JSValue jsMouseEventAltKey(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
123 JSC::JSValue jsMouseEventMetaKey(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
124 JSC::JSValue jsMouseEventButton(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
125 JSC::JSValue jsMouseEventRelatedTarget(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
126 JSC::JSValue jsMouseEventOffsetX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
127 JSC::JSValue jsMouseEventOffsetY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
128 JSC::JSValue jsMouseEventX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
129 JSC::JSValue jsMouseEventY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
130 JSC::JSValue jsMouseEventFromElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 JSC::JSValue jsMouseEventToElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
132 JSC::JSValue jsMouseEventDataTransfer(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
133 JSC::JSValue jsMouseEventConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
134
135 } // namespace WebCore
136
137 #endif