|
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 #include "config.h" |
|
22 #include "JSHTMLFrameSetElement.h" |
|
23 |
|
24 #include "AtomicString.h" |
|
25 #include "EventListener.h" |
|
26 #include "HTMLFrameSetElement.h" |
|
27 #include "HTMLNames.h" |
|
28 #include "JSEventListener.h" |
|
29 #include "KURL.h" |
|
30 #include <runtime/JSString.h> |
|
31 #include <wtf/GetPtr.h> |
|
32 |
|
33 using namespace JSC; |
|
34 |
|
35 namespace WebCore { |
|
36 |
|
37 ASSERT_CLASS_FITS_IN_CELL(JSHTMLFrameSetElement); |
|
38 |
|
39 /* Hash table */ |
|
40 #if ENABLE(JIT) |
|
41 #define THUNK_GENERATOR(generator) , generator |
|
42 #else |
|
43 #define THUNK_GENERATOR(generator) |
|
44 #endif |
|
45 |
|
46 static const HashTableValue JSHTMLFrameSetElementTableValues[17] = |
|
47 { |
|
48 { "cols", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementCols), (intptr_t)setJSHTMLFrameSetElementCols THUNK_GENERATOR(0) }, |
|
49 { "rows", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementRows), (intptr_t)setJSHTMLFrameSetElementRows THUNK_GENERATOR(0) }, |
|
50 { "onbeforeunload", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnbeforeunload), (intptr_t)setJSHTMLFrameSetElementOnbeforeunload THUNK_GENERATOR(0) }, |
|
51 { "onhashchange", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnhashchange), (intptr_t)setJSHTMLFrameSetElementOnhashchange THUNK_GENERATOR(0) }, |
|
52 { "onmessage", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnmessage), (intptr_t)setJSHTMLFrameSetElementOnmessage THUNK_GENERATOR(0) }, |
|
53 { "onoffline", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnoffline), (intptr_t)setJSHTMLFrameSetElementOnoffline THUNK_GENERATOR(0) }, |
|
54 { "ononline", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnonline), (intptr_t)setJSHTMLFrameSetElementOnonline THUNK_GENERATOR(0) }, |
|
55 { "onpopstate", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnpopstate), (intptr_t)setJSHTMLFrameSetElementOnpopstate THUNK_GENERATOR(0) }, |
|
56 { "onresize", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnresize), (intptr_t)setJSHTMLFrameSetElementOnresize THUNK_GENERATOR(0) }, |
|
57 { "onstorage", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnstorage), (intptr_t)setJSHTMLFrameSetElementOnstorage THUNK_GENERATOR(0) }, |
|
58 { "onunload", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnunload), (intptr_t)setJSHTMLFrameSetElementOnunload THUNK_GENERATOR(0) }, |
|
59 { "onblur", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnblur), (intptr_t)setJSHTMLFrameSetElementOnblur THUNK_GENERATOR(0) }, |
|
60 { "onerror", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnerror), (intptr_t)setJSHTMLFrameSetElementOnerror THUNK_GENERATOR(0) }, |
|
61 { "onfocus", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnfocus), (intptr_t)setJSHTMLFrameSetElementOnfocus THUNK_GENERATOR(0) }, |
|
62 { "onload", DontDelete | DontEnum, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementOnload), (intptr_t)setJSHTMLFrameSetElementOnload THUNK_GENERATOR(0) }, |
|
63 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameSetElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
64 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
65 }; |
|
66 |
|
67 #undef THUNK_GENERATOR |
|
68 static JSC_CONST_HASHTABLE HashTable JSHTMLFrameSetElementTable = { 33, 31, JSHTMLFrameSetElementTableValues, 0 }; |
|
69 /* Hash table for constructor */ |
|
70 #if ENABLE(JIT) |
|
71 #define THUNK_GENERATOR(generator) , generator |
|
72 #else |
|
73 #define THUNK_GENERATOR(generator) |
|
74 #endif |
|
75 |
|
76 static const HashTableValue JSHTMLFrameSetElementConstructorTableValues[1] = |
|
77 { |
|
78 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
79 }; |
|
80 |
|
81 #undef THUNK_GENERATOR |
|
82 static JSC_CONST_HASHTABLE HashTable JSHTMLFrameSetElementConstructorTable = { 1, 0, JSHTMLFrameSetElementConstructorTableValues, 0 }; |
|
83 class JSHTMLFrameSetElementConstructor : public DOMConstructorObject { |
|
84 public: |
|
85 JSHTMLFrameSetElementConstructor(JSC::ExecState*, JSDOMGlobalObject*); |
|
86 |
|
87 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
88 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
89 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
90 static const JSC::ClassInfo s_info; |
|
91 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
92 { |
|
93 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
94 } |
|
95 protected: |
|
96 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; |
|
97 }; |
|
98 |
|
99 const ClassInfo JSHTMLFrameSetElementConstructor::s_info = { "HTMLFrameSetElementConstructor", 0, &JSHTMLFrameSetElementConstructorTable, 0 }; |
|
100 |
|
101 JSHTMLFrameSetElementConstructor::JSHTMLFrameSetElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) |
|
102 : DOMConstructorObject(JSHTMLFrameSetElementConstructor::createStructure(globalObject->objectPrototype()), globalObject) |
|
103 { |
|
104 putDirect(exec->propertyNames().prototype, JSHTMLFrameSetElementPrototype::self(exec, globalObject), DontDelete | ReadOnly); |
|
105 } |
|
106 |
|
107 bool JSHTMLFrameSetElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
108 { |
|
109 return getStaticValueSlot<JSHTMLFrameSetElementConstructor, DOMObject>(exec, &JSHTMLFrameSetElementConstructorTable, this, propertyName, slot); |
|
110 } |
|
111 |
|
112 bool JSHTMLFrameSetElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
113 { |
|
114 return getStaticValueDescriptor<JSHTMLFrameSetElementConstructor, DOMObject>(exec, &JSHTMLFrameSetElementConstructorTable, this, propertyName, descriptor); |
|
115 } |
|
116 |
|
117 /* Hash table for prototype */ |
|
118 #if ENABLE(JIT) |
|
119 #define THUNK_GENERATOR(generator) , generator |
|
120 #else |
|
121 #define THUNK_GENERATOR(generator) |
|
122 #endif |
|
123 |
|
124 static const HashTableValue JSHTMLFrameSetElementPrototypeTableValues[1] = |
|
125 { |
|
126 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
127 }; |
|
128 |
|
129 #undef THUNK_GENERATOR |
|
130 static JSC_CONST_HASHTABLE HashTable JSHTMLFrameSetElementPrototypeTable = { 1, 0, JSHTMLFrameSetElementPrototypeTableValues, 0 }; |
|
131 const ClassInfo JSHTMLFrameSetElementPrototype::s_info = { "HTMLFrameSetElementPrototype", 0, &JSHTMLFrameSetElementPrototypeTable, 0 }; |
|
132 |
|
133 JSObject* JSHTMLFrameSetElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject) |
|
134 { |
|
135 return getDOMPrototype<JSHTMLFrameSetElement>(exec, globalObject); |
|
136 } |
|
137 |
|
138 const ClassInfo JSHTMLFrameSetElement::s_info = { "HTMLFrameSetElement", &JSHTMLElement::s_info, &JSHTMLFrameSetElementTable, 0 }; |
|
139 |
|
140 JSHTMLFrameSetElement::JSHTMLFrameSetElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLFrameSetElement> impl) |
|
141 : JSHTMLElement(structure, globalObject, impl) |
|
142 { |
|
143 } |
|
144 |
|
145 JSObject* JSHTMLFrameSetElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject) |
|
146 { |
|
147 return new (exec) JSHTMLFrameSetElementPrototype(globalObject, JSHTMLFrameSetElementPrototype::createStructure(JSHTMLElementPrototype::self(exec, globalObject))); |
|
148 } |
|
149 |
|
150 bool JSHTMLFrameSetElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
151 { |
|
152 if (canGetItemsForName(exec, static_cast<HTMLFrameSetElement*>(impl()), propertyName)) { |
|
153 slot.setCustom(this, nameGetter); |
|
154 return true; |
|
155 } |
|
156 return getStaticValueSlot<JSHTMLFrameSetElement, Base>(exec, &JSHTMLFrameSetElementTable, this, propertyName, slot); |
|
157 } |
|
158 |
|
159 bool JSHTMLFrameSetElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
160 { |
|
161 if (canGetItemsForName(exec, static_cast<HTMLFrameSetElement*>(impl()), propertyName)) { |
|
162 PropertySlot slot; |
|
163 slot.setCustom(this, nameGetter); |
|
164 descriptor.setDescriptor(slot.getValue(exec, propertyName), ReadOnly | DontDelete | DontEnum); |
|
165 return true; |
|
166 } |
|
167 return getStaticValueDescriptor<JSHTMLFrameSetElement, Base>(exec, &JSHTMLFrameSetElementTable, this, propertyName, descriptor); |
|
168 } |
|
169 |
|
170 JSValue jsHTMLFrameSetElementCols(ExecState* exec, JSValue slotBase, const Identifier&) |
|
171 { |
|
172 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
173 UNUSED_PARAM(exec); |
|
174 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
175 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::colsAttr)); |
|
176 return result; |
|
177 } |
|
178 |
|
179 JSValue jsHTMLFrameSetElementRows(ExecState* exec, JSValue slotBase, const Identifier&) |
|
180 { |
|
181 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
182 UNUSED_PARAM(exec); |
|
183 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
184 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::rowsAttr)); |
|
185 return result; |
|
186 } |
|
187 |
|
188 JSValue jsHTMLFrameSetElementOnbeforeunload(ExecState* exec, JSValue slotBase, const Identifier&) |
|
189 { |
|
190 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
191 UNUSED_PARAM(exec); |
|
192 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
193 if (EventListener* listener = imp->onbeforeunload()) { |
|
194 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
195 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
196 return jsFunction; |
|
197 } |
|
198 } |
|
199 return jsNull(); |
|
200 } |
|
201 |
|
202 JSValue jsHTMLFrameSetElementOnhashchange(ExecState* exec, JSValue slotBase, const Identifier&) |
|
203 { |
|
204 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
205 UNUSED_PARAM(exec); |
|
206 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
207 if (EventListener* listener = imp->onhashchange()) { |
|
208 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
209 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
210 return jsFunction; |
|
211 } |
|
212 } |
|
213 return jsNull(); |
|
214 } |
|
215 |
|
216 JSValue jsHTMLFrameSetElementOnmessage(ExecState* exec, JSValue slotBase, const Identifier&) |
|
217 { |
|
218 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
219 UNUSED_PARAM(exec); |
|
220 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
221 if (EventListener* listener = imp->onmessage()) { |
|
222 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
223 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
224 return jsFunction; |
|
225 } |
|
226 } |
|
227 return jsNull(); |
|
228 } |
|
229 |
|
230 JSValue jsHTMLFrameSetElementOnoffline(ExecState* exec, JSValue slotBase, const Identifier&) |
|
231 { |
|
232 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
233 UNUSED_PARAM(exec); |
|
234 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
235 if (EventListener* listener = imp->onoffline()) { |
|
236 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
237 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
238 return jsFunction; |
|
239 } |
|
240 } |
|
241 return jsNull(); |
|
242 } |
|
243 |
|
244 JSValue jsHTMLFrameSetElementOnonline(ExecState* exec, JSValue slotBase, const Identifier&) |
|
245 { |
|
246 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
247 UNUSED_PARAM(exec); |
|
248 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
249 if (EventListener* listener = imp->ononline()) { |
|
250 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
251 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
252 return jsFunction; |
|
253 } |
|
254 } |
|
255 return jsNull(); |
|
256 } |
|
257 |
|
258 JSValue jsHTMLFrameSetElementOnpopstate(ExecState* exec, JSValue slotBase, const Identifier&) |
|
259 { |
|
260 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
261 UNUSED_PARAM(exec); |
|
262 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
263 if (EventListener* listener = imp->onpopstate()) { |
|
264 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
265 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
266 return jsFunction; |
|
267 } |
|
268 } |
|
269 return jsNull(); |
|
270 } |
|
271 |
|
272 JSValue jsHTMLFrameSetElementOnresize(ExecState* exec, JSValue slotBase, const Identifier&) |
|
273 { |
|
274 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
275 UNUSED_PARAM(exec); |
|
276 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
277 if (EventListener* listener = imp->onresize()) { |
|
278 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
279 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
280 return jsFunction; |
|
281 } |
|
282 } |
|
283 return jsNull(); |
|
284 } |
|
285 |
|
286 JSValue jsHTMLFrameSetElementOnstorage(ExecState* exec, JSValue slotBase, const Identifier&) |
|
287 { |
|
288 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
289 UNUSED_PARAM(exec); |
|
290 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
291 if (EventListener* listener = imp->onstorage()) { |
|
292 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
293 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
294 return jsFunction; |
|
295 } |
|
296 } |
|
297 return jsNull(); |
|
298 } |
|
299 |
|
300 JSValue jsHTMLFrameSetElementOnunload(ExecState* exec, JSValue slotBase, const Identifier&) |
|
301 { |
|
302 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
303 UNUSED_PARAM(exec); |
|
304 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
305 if (EventListener* listener = imp->onunload()) { |
|
306 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
307 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
308 return jsFunction; |
|
309 } |
|
310 } |
|
311 return jsNull(); |
|
312 } |
|
313 |
|
314 JSValue jsHTMLFrameSetElementOnblur(ExecState* exec, JSValue slotBase, const Identifier&) |
|
315 { |
|
316 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
317 UNUSED_PARAM(exec); |
|
318 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
319 if (EventListener* listener = imp->onblur()) { |
|
320 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
321 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
322 return jsFunction; |
|
323 } |
|
324 } |
|
325 return jsNull(); |
|
326 } |
|
327 |
|
328 JSValue jsHTMLFrameSetElementOnerror(ExecState* exec, JSValue slotBase, const Identifier&) |
|
329 { |
|
330 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
331 UNUSED_PARAM(exec); |
|
332 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
333 if (EventListener* listener = imp->onerror()) { |
|
334 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
335 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
336 return jsFunction; |
|
337 } |
|
338 } |
|
339 return jsNull(); |
|
340 } |
|
341 |
|
342 JSValue jsHTMLFrameSetElementOnfocus(ExecState* exec, JSValue slotBase, const Identifier&) |
|
343 { |
|
344 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
345 UNUSED_PARAM(exec); |
|
346 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
347 if (EventListener* listener = imp->onfocus()) { |
|
348 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
349 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
350 return jsFunction; |
|
351 } |
|
352 } |
|
353 return jsNull(); |
|
354 } |
|
355 |
|
356 JSValue jsHTMLFrameSetElementOnload(ExecState* exec, JSValue slotBase, const Identifier&) |
|
357 { |
|
358 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
359 UNUSED_PARAM(exec); |
|
360 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
361 if (EventListener* listener = imp->onload()) { |
|
362 if (const JSEventListener* jsListener = JSEventListener::cast(listener)) { |
|
363 if (JSObject* jsFunction = jsListener->jsFunction(imp->scriptExecutionContext())) |
|
364 return jsFunction; |
|
365 } |
|
366 } |
|
367 return jsNull(); |
|
368 } |
|
369 |
|
370 JSValue jsHTMLFrameSetElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
371 { |
|
372 JSHTMLFrameSetElement* domObject = static_cast<JSHTMLFrameSetElement*>(asObject(slotBase)); |
|
373 return JSHTMLFrameSetElement::getConstructor(exec, domObject->globalObject()); |
|
374 } |
|
375 void JSHTMLFrameSetElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) |
|
376 { |
|
377 lookupPut<JSHTMLFrameSetElement, Base>(exec, propertyName, value, &JSHTMLFrameSetElementTable, this, slot); |
|
378 } |
|
379 |
|
380 void setJSHTMLFrameSetElementCols(ExecState* exec, JSObject* thisObject, JSValue value) |
|
381 { |
|
382 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
383 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
384 imp->setAttribute(WebCore::HTMLNames::colsAttr, valueToStringWithNullCheck(exec, value)); |
|
385 } |
|
386 |
|
387 void setJSHTMLFrameSetElementRows(ExecState* exec, JSObject* thisObject, JSValue value) |
|
388 { |
|
389 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
390 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(castedThis->impl()); |
|
391 imp->setAttribute(WebCore::HTMLNames::rowsAttr, valueToStringWithNullCheck(exec, value)); |
|
392 } |
|
393 |
|
394 void setJSHTMLFrameSetElementOnbeforeunload(ExecState* exec, JSObject* thisObject, JSValue value) |
|
395 { |
|
396 UNUSED_PARAM(exec); |
|
397 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
398 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
399 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
400 imp->setOnbeforeunload(createJSAttributeEventListener(exec, value, globalObject)); |
|
401 } |
|
402 |
|
403 void setJSHTMLFrameSetElementOnhashchange(ExecState* exec, JSObject* thisObject, JSValue value) |
|
404 { |
|
405 UNUSED_PARAM(exec); |
|
406 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
407 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
408 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
409 imp->setOnhashchange(createJSAttributeEventListener(exec, value, globalObject)); |
|
410 } |
|
411 |
|
412 void setJSHTMLFrameSetElementOnmessage(ExecState* exec, JSObject* thisObject, JSValue value) |
|
413 { |
|
414 UNUSED_PARAM(exec); |
|
415 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
416 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
417 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
418 imp->setOnmessage(createJSAttributeEventListener(exec, value, globalObject)); |
|
419 } |
|
420 |
|
421 void setJSHTMLFrameSetElementOnoffline(ExecState* exec, JSObject* thisObject, JSValue value) |
|
422 { |
|
423 UNUSED_PARAM(exec); |
|
424 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
425 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
426 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
427 imp->setOnoffline(createJSAttributeEventListener(exec, value, globalObject)); |
|
428 } |
|
429 |
|
430 void setJSHTMLFrameSetElementOnonline(ExecState* exec, JSObject* thisObject, JSValue value) |
|
431 { |
|
432 UNUSED_PARAM(exec); |
|
433 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
434 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
435 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
436 imp->setOnonline(createJSAttributeEventListener(exec, value, globalObject)); |
|
437 } |
|
438 |
|
439 void setJSHTMLFrameSetElementOnpopstate(ExecState* exec, JSObject* thisObject, JSValue value) |
|
440 { |
|
441 UNUSED_PARAM(exec); |
|
442 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
443 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
444 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
445 imp->setOnpopstate(createJSAttributeEventListener(exec, value, globalObject)); |
|
446 } |
|
447 |
|
448 void setJSHTMLFrameSetElementOnresize(ExecState* exec, JSObject* thisObject, JSValue value) |
|
449 { |
|
450 UNUSED_PARAM(exec); |
|
451 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
452 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
453 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
454 imp->setOnresize(createJSAttributeEventListener(exec, value, globalObject)); |
|
455 } |
|
456 |
|
457 void setJSHTMLFrameSetElementOnstorage(ExecState* exec, JSObject* thisObject, JSValue value) |
|
458 { |
|
459 UNUSED_PARAM(exec); |
|
460 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
461 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
462 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
463 imp->setOnstorage(createJSAttributeEventListener(exec, value, globalObject)); |
|
464 } |
|
465 |
|
466 void setJSHTMLFrameSetElementOnunload(ExecState* exec, JSObject* thisObject, JSValue value) |
|
467 { |
|
468 UNUSED_PARAM(exec); |
|
469 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
470 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
471 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
472 imp->setOnunload(createJSAttributeEventListener(exec, value, globalObject)); |
|
473 } |
|
474 |
|
475 void setJSHTMLFrameSetElementOnblur(ExecState* exec, JSObject* thisObject, JSValue value) |
|
476 { |
|
477 UNUSED_PARAM(exec); |
|
478 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
479 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
480 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
481 imp->setOnblur(createJSAttributeEventListener(exec, value, globalObject)); |
|
482 } |
|
483 |
|
484 void setJSHTMLFrameSetElementOnerror(ExecState* exec, JSObject* thisObject, JSValue value) |
|
485 { |
|
486 UNUSED_PARAM(exec); |
|
487 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
488 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
489 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
490 imp->setOnerror(createJSAttributeEventListener(exec, value, globalObject)); |
|
491 } |
|
492 |
|
493 void setJSHTMLFrameSetElementOnfocus(ExecState* exec, JSObject* thisObject, JSValue value) |
|
494 { |
|
495 UNUSED_PARAM(exec); |
|
496 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
497 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
498 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
499 imp->setOnfocus(createJSAttributeEventListener(exec, value, globalObject)); |
|
500 } |
|
501 |
|
502 void setJSHTMLFrameSetElementOnload(ExecState* exec, JSObject* thisObject, JSValue value) |
|
503 { |
|
504 UNUSED_PARAM(exec); |
|
505 JSHTMLFrameSetElement* castedThis = static_cast<JSHTMLFrameSetElement*>(thisObject); |
|
506 JSDOMGlobalObject* globalObject = castedThis->globalObject(); |
|
507 HTMLFrameSetElement* imp = static_cast<HTMLFrameSetElement*>(static_cast<JSHTMLFrameSetElement*>(thisObject)->impl()); |
|
508 imp->setOnload(createJSAttributeEventListener(exec, value, globalObject)); |
|
509 } |
|
510 |
|
511 JSValue JSHTMLFrameSetElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject) |
|
512 { |
|
513 return getDOMConstructor<JSHTMLFrameSetElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject)); |
|
514 } |
|
515 |
|
516 |
|
517 } |