74
static const HashTable JSWheelEventConstructorTable =
71
static JSC_CONST_HASHTABLE HashTable JSWheelEventConstructorTable =
75
72
#if ENABLE(PERFECT_HASH_SIZE)
76
73
{ 0, JSWheelEventConstructorTableValues, 0 };
78
75
{ 1, 0, JSWheelEventConstructorTableValues, 0 };
81
class JSWheelEventConstructor : public DOMObject {
78
class JSWheelEventConstructor : public DOMConstructorObject {
83
JSWheelEventConstructor(ExecState* exec)
84
: DOMObject(JSWheelEventConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype()))
80
JSWheelEventConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
81
: DOMConstructorObject(JSWheelEventConstructor::createStructure(globalObject->objectPrototype()), globalObject)
86
putDirect(exec->propertyNames().prototype, JSWheelEventPrototype::self(exec, exec->lexicalGlobalObject()), None);
83
putDirect(exec->propertyNames().prototype, JSWheelEventPrototype::self(exec, globalObject), None);
88
85
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
86
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
89
87
virtual const ClassInfo* classInfo() const { return &s_info; }
90
88
static const ClassInfo s_info;
92
static PassRefPtr<Structure> createStructure(JSValuePtr proto)
90
static PassRefPtr<Structure> createStructure(JSValue proto)
94
92
return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance));
140
143
return getStaticValueSlot<JSWheelEvent, Base>(exec, &JSWheelEventTable, this, propertyName, slot);
143
JSValuePtr jsWheelEventScreenX(ExecState* exec, const Identifier&, const PropertySlot& slot)
145
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
146
bool JSWheelEvent::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
148
return getStaticValueDescriptor<JSWheelEvent, Base>(exec, &JSWheelEventTable, this, propertyName, descriptor);
151
JSValue jsWheelEventScreenX(ExecState* exec, const Identifier&, const PropertySlot& slot)
153
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
155
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
146
156
return jsNumber(exec, imp->screenX());
149
JSValuePtr jsWheelEventScreenY(ExecState* exec, const Identifier&, const PropertySlot& slot)
159
JSValue jsWheelEventScreenY(ExecState* exec, const Identifier&, const PropertySlot& slot)
151
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
161
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
163
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
152
164
return jsNumber(exec, imp->screenY());
155
JSValuePtr jsWheelEventClientX(ExecState* exec, const Identifier&, const PropertySlot& slot)
167
JSValue jsWheelEventClientX(ExecState* exec, const Identifier&, const PropertySlot& slot)
157
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
169
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
171
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
158
172
return jsNumber(exec, imp->clientX());
161
JSValuePtr jsWheelEventClientY(ExecState* exec, const Identifier&, const PropertySlot& slot)
175
JSValue jsWheelEventClientY(ExecState* exec, const Identifier&, const PropertySlot& slot)
163
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
177
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
179
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
164
180
return jsNumber(exec, imp->clientY());
167
JSValuePtr jsWheelEventCtrlKey(ExecState* exec, const Identifier&, const PropertySlot& slot)
183
JSValue jsWheelEventCtrlKey(ExecState* exec, const Identifier&, const PropertySlot& slot)
169
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
185
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
187
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
170
188
return jsBoolean(imp->ctrlKey());
173
JSValuePtr jsWheelEventShiftKey(ExecState* exec, const Identifier&, const PropertySlot& slot)
191
JSValue jsWheelEventShiftKey(ExecState* exec, const Identifier&, const PropertySlot& slot)
175
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
193
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
195
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
176
196
return jsBoolean(imp->shiftKey());
179
JSValuePtr jsWheelEventAltKey(ExecState* exec, const Identifier&, const PropertySlot& slot)
199
JSValue jsWheelEventAltKey(ExecState* exec, const Identifier&, const PropertySlot& slot)
181
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
201
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
203
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
182
204
return jsBoolean(imp->altKey());
185
JSValuePtr jsWheelEventMetaKey(ExecState* exec, const Identifier&, const PropertySlot& slot)
207
JSValue jsWheelEventMetaKey(ExecState* exec, const Identifier&, const PropertySlot& slot)
187
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
209
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
211
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
188
212
return jsBoolean(imp->metaKey());
191
JSValuePtr jsWheelEventWheelDelta(ExecState* exec, const Identifier&, const PropertySlot& slot)
215
JSValue jsWheelEventWheelDelta(ExecState* exec, const Identifier&, const PropertySlot& slot)
193
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
217
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
219
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
194
220
return jsNumber(exec, imp->wheelDelta());
197
JSValuePtr jsWheelEventWheelDeltaX(ExecState* exec, const Identifier&, const PropertySlot& slot)
223
JSValue jsWheelEventWheelDeltaX(ExecState* exec, const Identifier&, const PropertySlot& slot)
199
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
225
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
227
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
200
228
return jsNumber(exec, imp->wheelDeltaX());
203
JSValuePtr jsWheelEventWheelDeltaY(ExecState* exec, const Identifier&, const PropertySlot& slot)
231
JSValue jsWheelEventWheelDeltaY(ExecState* exec, const Identifier&, const PropertySlot& slot)
205
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
233
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
235
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
206
236
return jsNumber(exec, imp->wheelDeltaY());
209
JSValuePtr jsWheelEventOffsetX(ExecState* exec, const Identifier&, const PropertySlot& slot)
239
JSValue jsWheelEventOffsetX(ExecState* exec, const Identifier&, const PropertySlot& slot)
211
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
241
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
243
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
212
244
return jsNumber(exec, imp->offsetX());
215
JSValuePtr jsWheelEventOffsetY(ExecState* exec, const Identifier&, const PropertySlot& slot)
247
JSValue jsWheelEventOffsetY(ExecState* exec, const Identifier&, const PropertySlot& slot)
217
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
249
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
251
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
218
252
return jsNumber(exec, imp->offsetY());
221
JSValuePtr jsWheelEventX(ExecState* exec, const Identifier&, const PropertySlot& slot)
255
JSValue jsWheelEventX(ExecState* exec, const Identifier&, const PropertySlot& slot)
223
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
257
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
259
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
224
260
return jsNumber(exec, imp->x());
227
JSValuePtr jsWheelEventY(ExecState* exec, const Identifier&, const PropertySlot& slot)
263
JSValue jsWheelEventY(ExecState* exec, const Identifier&, const PropertySlot& slot)
229
WheelEvent* imp = static_cast<WheelEvent*>(static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->impl());
265
JSWheelEvent* castedThis = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
267
WheelEvent* imp = static_cast<WheelEvent*>(castedThis->impl());
230
268
return jsNumber(exec, imp->y());
233
JSValuePtr jsWheelEventConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
271
JSValue jsWheelEventConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
235
return static_cast<JSWheelEvent*>(asObject(slot.slotBase()))->getConstructor(exec);
273
JSWheelEvent* domObject = static_cast<JSWheelEvent*>(asObject(slot.slotBase()));
274
return JSWheelEvent::getConstructor(exec, domObject->globalObject());
237
JSValuePtr JSWheelEvent::getConstructor(ExecState* exec)
276
JSValue JSWheelEvent::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
239
return getDOMConstructor<JSWheelEventConstructor>(exec);
278
return getDOMConstructor<JSWheelEventConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));