Rename OptionsObject to Dictionary
[WebKit-https.git] / Source / WebCore / bindings / scripts / test / ObjC / DOMTestObj.mm
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  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
25  */
26
27 #import "config.h"
28 #import "DOMInternal.h"
29
30 #import "DOMTestObj.h"
31
32 #import "DOMBlobInternal.h"
33 #import "DOMCSSRuleInternal.h"
34 #import "DOMCSSValueInternal.h"
35 #import "DOMDictionaryInternal.h"
36 #import "DOMDocumentInternal.h"
37 #import "DOMEventInternal.h"
38 #import "DOMIDBKeyInternal.h"
39 #import "DOMNodeInternal.h"
40 #import "DOMSVGDocumentInternal.h"
41 #import "DOMSVGPointInternal.h"
42 #import "DOMStyleSheetInternal.h"
43 #import "DOMTestObjInternal.h"
44 #import "DOMTestObjectAConstructorInternal.h"
45 #import "DOMTestObjectBConstructorInternal.h"
46 #import "DOMTestObjectCConstructorInternal.h"
47 #import "DOMaInternal.h"
48 #import "DOMbInternal.h"
49 #import "DOMboolInternal.h"
50 #import "DOMcInternal.h"
51 #import "DOMdInternal.h"
52 #import "DOMeInternal.h"
53 #import "Dictionary.h"
54 #import "Document.h"
55 #import "EventListener.h"
56 #import "ExceptionHandlers.h"
57 #import "HTMLNames.h"
58 #import "IDBKey.h"
59 #import "JSMainThreadExecState.h"
60 #import "KURL.h"
61 #import "ObjCEventListener.h"
62 #import "SVGDocument.h"
63 #import "SVGStaticPropertyTearOff.h"
64 #import "SerializedScriptValue.h"
65 #import "TestObj.h"
66 #import "TestObjectAConstructor.h"
67 #import "TestObjectBConstructor.h"
68 #import "TestObjectCConstructor.h"
69 #import "ThreadCheck.h"
70 #import "WebCoreObjCExtras.h"
71 #import "WebScriptObjectPrivate.h"
72 #import "a.h"
73 #import "b.h"
74 #import "bool.h"
75 #import "c.h"
76 #import "d.h"
77 #import "e.h"
78 #import <wtf/GetPtr.h>
79
80 #define IMPL reinterpret_cast<WebCore::TestObj*>(_internal)
81
82 @implementation DOMTestObj
83
84 - (void)dealloc
85 {
86     if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestObj class], self))
87         return;
88
89     if (_internal)
90         IMPL->deref();
91     [super dealloc];
92 }
93
94 - (void)finalize
95 {
96     if (_internal)
97         IMPL->deref();
98     [super finalize];
99 }
100
101 - (int)readOnlyIntAttr
102 {
103     WebCore::JSMainThreadNullState state;
104     return IMPL->readOnlyIntAttr();
105 }
106
107 - (NSString *)readOnlyStringAttr
108 {
109     WebCore::JSMainThreadNullState state;
110     return IMPL->readOnlyStringAttr();
111 }
112
113 - (DOMTestObj *)readOnlyTestObjAttr
114 {
115     WebCore::JSMainThreadNullState state;
116     return kit(WTF::getPtr(IMPL->readOnlyTestObjAttr()));
117 }
118
119 - (short)shortAttr
120 {
121     WebCore::JSMainThreadNullState state;
122     return IMPL->shortAttr();
123 }
124
125 - (void)setShortAttr:(short)newShortAttr
126 {
127     WebCore::JSMainThreadNullState state;
128     IMPL->setShortAttr(newShortAttr);
129 }
130
131 - (unsigned short)unsignedShortAttr
132 {
133     WebCore::JSMainThreadNullState state;
134     return IMPL->unsignedShortAttr();
135 }
136
137 - (void)setUnsignedShortAttr:(unsigned short)newUnsignedShortAttr
138 {
139     WebCore::JSMainThreadNullState state;
140     IMPL->setUnsignedShortAttr(newUnsignedShortAttr);
141 }
142
143 - (int)intAttr
144 {
145     WebCore::JSMainThreadNullState state;
146     return IMPL->intAttr();
147 }
148
149 - (void)setIntAttr:(int)newIntAttr
150 {
151     WebCore::JSMainThreadNullState state;
152     IMPL->setIntAttr(newIntAttr);
153 }
154
155 - (long long)longLongAttr
156 {
157     WebCore::JSMainThreadNullState state;
158     return IMPL->longLongAttr();
159 }
160
161 - (void)setLongLongAttr:(long long)newLongLongAttr
162 {
163     WebCore::JSMainThreadNullState state;
164     IMPL->setLongLongAttr(newLongLongAttr);
165 }
166
167 - (unsigned long long)unsignedLongLongAttr
168 {
169     WebCore::JSMainThreadNullState state;
170     return IMPL->unsignedLongLongAttr();
171 }
172
173 - (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr
174 {
175     WebCore::JSMainThreadNullState state;
176     IMPL->setUnsignedLongLongAttr(newUnsignedLongLongAttr);
177 }
178
179 - (NSString *)stringAttr
180 {
181     WebCore::JSMainThreadNullState state;
182     return IMPL->stringAttr();
183 }
184
185 - (void)setStringAttr:(NSString *)newStringAttr
186 {
187     WebCore::JSMainThreadNullState state;
188     IMPL->setStringAttr(newStringAttr);
189 }
190
191 - (DOMTestObj *)testObjAttr
192 {
193     WebCore::JSMainThreadNullState state;
194     return kit(WTF::getPtr(IMPL->testObjAttr()));
195 }
196
197 - (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr
198 {
199     WebCore::JSMainThreadNullState state;
200     ASSERT(newTestObjAttr);
201
202     IMPL->setTestObjAttr(core(newTestObjAttr));
203 }
204
205 - (DOMTestObj *)XMLObjAttr
206 {
207     WebCore::JSMainThreadNullState state;
208     return kit(WTF::getPtr(IMPL->xmlObjAttr()));
209 }
210
211 - (void)setXMLObjAttr:(DOMTestObj *)newXMLObjAttr
212 {
213     WebCore::JSMainThreadNullState state;
214     ASSERT(newXMLObjAttr);
215
216     IMPL->setXMLObjAttr(core(newXMLObjAttr));
217 }
218
219 - (BOOL)create
220 {
221     WebCore::JSMainThreadNullState state;
222     return IMPL->isCreate();
223 }
224
225 - (void)setCreate:(BOOL)newCreate
226 {
227     WebCore::JSMainThreadNullState state;
228     IMPL->setCreate(newCreate);
229 }
230
231 - (NSString *)reflectedStringAttr
232 {
233     WebCore::JSMainThreadNullState state;
234     return IMPL->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr);
235 }
236
237 - (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
238 {
239     WebCore::JSMainThreadNullState state;
240     IMPL->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, newReflectedStringAttr);
241 }
242
243 - (int)reflectedIntegralAttr
244 {
245     WebCore::JSMainThreadNullState state;
246     return IMPL->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
247 }
248
249 - (void)setReflectedIntegralAttr:(int)newReflectedIntegralAttr
250 {
251     WebCore::JSMainThreadNullState state;
252     IMPL->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, newReflectedIntegralAttr);
253 }
254
255 - (unsigned)reflectedUnsignedIntegralAttr
256 {
257     WebCore::JSMainThreadNullState state;
258     return IMPL->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
259 }
260
261 - (void)setReflectedUnsignedIntegralAttr:(unsigned)newReflectedUnsignedIntegralAttr
262 {
263     WebCore::JSMainThreadNullState state;
264     IMPL->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, newReflectedUnsignedIntegralAttr);
265 }
266
267 - (BOOL)reflectedBooleanAttr
268 {
269     WebCore::JSMainThreadNullState state;
270     return IMPL->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
271 }
272
273 - (void)setReflectedBooleanAttr:(BOOL)newReflectedBooleanAttr
274 {
275     WebCore::JSMainThreadNullState state;
276     IMPL->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, newReflectedBooleanAttr);
277 }
278
279 - (NSString *)reflectedURLAttr
280 {
281     WebCore::JSMainThreadNullState state;
282     return IMPL->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr);
283 }
284
285 - (void)setReflectedURLAttr:(NSString *)newReflectedURLAttr
286 {
287     WebCore::JSMainThreadNullState state;
288     IMPL->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, newReflectedURLAttr);
289 }
290
291 - (NSString *)reflectedStringAttr
292 {
293     WebCore::JSMainThreadNullState state;
294     return IMPL->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr);
295 }
296
297 - (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
298 {
299     WebCore::JSMainThreadNullState state;
300     IMPL->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, newReflectedStringAttr);
301 }
302
303 - (int)reflectedCustomIntegralAttr
304 {
305     WebCore::JSMainThreadNullState state;
306     return IMPL->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
307 }
308
309 - (void)setReflectedCustomIntegralAttr:(int)newReflectedCustomIntegralAttr
310 {
311     WebCore::JSMainThreadNullState state;
312     IMPL->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, newReflectedCustomIntegralAttr);
313 }
314
315 - (BOOL)reflectedCustomBooleanAttr
316 {
317     WebCore::JSMainThreadNullState state;
318     return IMPL->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
319 }
320
321 - (void)setReflectedCustomBooleanAttr:(BOOL)newReflectedCustomBooleanAttr
322 {
323     WebCore::JSMainThreadNullState state;
324     IMPL->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, newReflectedCustomBooleanAttr);
325 }
326
327 - (NSString *)reflectedCustomURLAttr
328 {
329     WebCore::JSMainThreadNullState state;
330     return IMPL->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr);
331 }
332
333 - (void)setReflectedCustomURLAttr:(NSString *)newReflectedCustomURLAttr
334 {
335     WebCore::JSMainThreadNullState state;
336     IMPL->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, newReflectedCustomURLAttr);
337 }
338
339 - (int)attrWithGetterException
340 {
341     WebCore::JSMainThreadNullState state;
342     WebCore::ExceptionCode ec = 0;
343     int result = IMPL->attrWithGetterException(ec);
344     WebCore::raiseOnDOMError(ec);
345     return result;
346 }
347
348 - (void)setAttrWithGetterException:(int)newAttrWithGetterException
349 {
350     WebCore::JSMainThreadNullState state;
351     WebCore::ExceptionCode ec = 0;
352     IMPL->setAttrWithGetterException(newAttrWithGetterException, ec);
353     WebCore::raiseOnDOMError(ec);
354 }
355
356 - (int)attrWithSetterException
357 {
358     WebCore::JSMainThreadNullState state;
359     return IMPL->attrWithSetterException();
360 }
361
362 - (void)setAttrWithSetterException:(int)newAttrWithSetterException
363 {
364     WebCore::JSMainThreadNullState state;
365     WebCore::ExceptionCode ec = 0;
366     IMPL->setAttrWithSetterException(newAttrWithSetterException, ec);
367     WebCore::raiseOnDOMError(ec);
368 }
369
370 - (NSString *)stringAttrWithGetterException
371 {
372     WebCore::JSMainThreadNullState state;
373     WebCore::ExceptionCode ec = 0;
374     NSString *result = IMPL->stringAttrWithGetterException(ec);
375     WebCore::raiseOnDOMError(ec);
376     return result;
377 }
378
379 - (void)setStringAttrWithGetterException:(NSString *)newStringAttrWithGetterException
380 {
381     WebCore::JSMainThreadNullState state;
382     WebCore::ExceptionCode ec = 0;
383     IMPL->setStringAttrWithGetterException(newStringAttrWithGetterException, ec);
384     WebCore::raiseOnDOMError(ec);
385 }
386
387 - (NSString *)stringAttrWithSetterException
388 {
389     WebCore::JSMainThreadNullState state;
390     return IMPL->stringAttrWithSetterException();
391 }
392
393 - (void)setStringAttrWithSetterException:(NSString *)newStringAttrWithSetterException
394 {
395     WebCore::JSMainThreadNullState state;
396     WebCore::ExceptionCode ec = 0;
397     IMPL->setStringAttrWithSetterException(newStringAttrWithSetterException, ec);
398     WebCore::raiseOnDOMError(ec);
399 }
400
401 - (int)customAttr
402 {
403     WebCore::JSMainThreadNullState state;
404     return IMPL->customAttr();
405 }
406
407 - (void)setCustomAttr:(int)newCustomAttr
408 {
409     WebCore::JSMainThreadNullState state;
410     IMPL->setCustomAttr(newCustomAttr);
411 }
412
413 - (int)withScriptStateAttribute
414 {
415     WebCore::JSMainThreadNullState state;
416     return IMPL->withScriptStateAttribute();
417 }
418
419 - (void)setWithScriptStateAttribute:(int)newWithScriptStateAttribute
420 {
421     WebCore::JSMainThreadNullState state;
422     IMPL->setWithScriptStateAttribute(newWithScriptStateAttribute);
423 }
424
425 - (DOMTestObj *)withScriptExecutionContextAttribute
426 {
427     WebCore::JSMainThreadNullState state;
428     return kit(WTF::getPtr(IMPL->withScriptExecutionContextAttribute()));
429 }
430
431 - (void)setWithScriptExecutionContextAttribute:(DOMTestObj *)newWithScriptExecutionContextAttribute
432 {
433     WebCore::JSMainThreadNullState state;
434     ASSERT(newWithScriptExecutionContextAttribute);
435
436     IMPL->setWithScriptExecutionContextAttribute(core(newWithScriptExecutionContextAttribute));
437 }
438
439 - (DOMTestObj *)withScriptStateAttributeRaises
440 {
441     WebCore::JSMainThreadNullState state;
442     WebCore::ExceptionCode ec = 0;
443     DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateAttributeRaises(ec)));
444     WebCore::raiseOnDOMError(ec);
445     return result;
446 }
447
448 - (void)setWithScriptStateAttributeRaises:(DOMTestObj *)newWithScriptStateAttributeRaises
449 {
450     WebCore::JSMainThreadNullState state;
451     ASSERT(newWithScriptStateAttributeRaises);
452
453     WebCore::ExceptionCode ec = 0;
454     IMPL->setWithScriptStateAttributeRaises(core(newWithScriptStateAttributeRaises), ec);
455     WebCore::raiseOnDOMError(ec);
456 }
457
458 - (DOMTestObj *)withScriptExecutionContextAttributeRaises
459 {
460     WebCore::JSMainThreadNullState state;
461     WebCore::ExceptionCode ec = 0;
462     DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAttributeRaises(ec)));
463     WebCore::raiseOnDOMError(ec);
464     return result;
465 }
466
467 - (void)setWithScriptExecutionContextAttributeRaises:(DOMTestObj *)newWithScriptExecutionContextAttributeRaises
468 {
469     WebCore::JSMainThreadNullState state;
470     ASSERT(newWithScriptExecutionContextAttributeRaises);
471
472     WebCore::ExceptionCode ec = 0;
473     IMPL->setWithScriptExecutionContextAttributeRaises(core(newWithScriptExecutionContextAttributeRaises), ec);
474     WebCore::raiseOnDOMError(ec);
475 }
476
477 - (DOMTestObj *)withScriptExecutionContextAndScriptStateAttribute
478 {
479     WebCore::JSMainThreadNullState state;
480     return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateAttribute()));
481 }
482
483 - (void)setWithScriptExecutionContextAndScriptStateAttribute:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateAttribute
484 {
485     WebCore::JSMainThreadNullState state;
486     ASSERT(newWithScriptExecutionContextAndScriptStateAttribute);
487
488     IMPL->setWithScriptExecutionContextAndScriptStateAttribute(core(newWithScriptExecutionContextAndScriptStateAttribute));
489 }
490
491 - (DOMTestObj *)withScriptExecutionContextAndScriptStateAttributeRaises
492 {
493     WebCore::JSMainThreadNullState state;
494     WebCore::ExceptionCode ec = 0;
495     DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateAttributeRaises(ec)));
496     WebCore::raiseOnDOMError(ec);
497     return result;
498 }
499
500 - (void)setWithScriptExecutionContextAndScriptStateAttributeRaises:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateAttributeRaises
501 {
502     WebCore::JSMainThreadNullState state;
503     ASSERT(newWithScriptExecutionContextAndScriptStateAttributeRaises);
504
505     WebCore::ExceptionCode ec = 0;
506     IMPL->setWithScriptExecutionContextAndScriptStateAttributeRaises(core(newWithScriptExecutionContextAndScriptStateAttributeRaises), ec);
507     WebCore::raiseOnDOMError(ec);
508 }
509
510 - (DOMTestObj *)withScriptExecutionContextAndScriptStateWithSpacesAttribute
511 {
512     WebCore::JSMainThreadNullState state;
513     return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateWithSpacesAttribute()));
514 }
515
516 - (void)setWithScriptExecutionContextAndScriptStateWithSpacesAttribute:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateWithSpacesAttribute
517 {
518     WebCore::JSMainThreadNullState state;
519     ASSERT(newWithScriptExecutionContextAndScriptStateWithSpacesAttribute);
520
521     IMPL->setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(core(newWithScriptExecutionContextAndScriptStateWithSpacesAttribute));
522 }
523
524 - (DOMTestObj *)withScriptArgumentsAndCallStackAttribute
525 {
526     WebCore::JSMainThreadNullState state;
527     return kit(WTF::getPtr(IMPL->withScriptArgumentsAndCallStackAttribute()));
528 }
529
530 - (void)setWithScriptArgumentsAndCallStackAttribute:(DOMTestObj *)newWithScriptArgumentsAndCallStackAttribute
531 {
532     WebCore::JSMainThreadNullState state;
533     ASSERT(newWithScriptArgumentsAndCallStackAttribute);
534
535     IMPL->setWithScriptArgumentsAndCallStackAttribute(core(newWithScriptArgumentsAndCallStackAttribute));
536 }
537
538 #if ENABLE(Condition1)
539 - (int)conditionalAttr1
540 {
541     WebCore::JSMainThreadNullState state;
542     return IMPL->conditionalAttr1();
543 }
544
545 - (void)setConditionalAttr1:(int)newConditionalAttr1
546 {
547     WebCore::JSMainThreadNullState state;
548     IMPL->setConditionalAttr1(newConditionalAttr1);
549 }
550 #endif
551
552 #if ENABLE(Condition1) && ENABLE(Condition2)
553 - (int)conditionalAttr2
554 {
555     WebCore::JSMainThreadNullState state;
556     return IMPL->conditionalAttr2();
557 }
558
559 - (void)setConditionalAttr2:(int)newConditionalAttr2
560 {
561     WebCore::JSMainThreadNullState state;
562     IMPL->setConditionalAttr2(newConditionalAttr2);
563 }
564 #endif
565
566 #if ENABLE(Condition1) || ENABLE(Condition2)
567 - (int)conditionalAttr3
568 {
569     WebCore::JSMainThreadNullState state;
570     return IMPL->conditionalAttr3();
571 }
572
573 - (void)setConditionalAttr3:(int)newConditionalAttr3
574 {
575     WebCore::JSMainThreadNullState state;
576     IMPL->setConditionalAttr3(newConditionalAttr3);
577 }
578 #endif
579
580 #if ENABLE(Condition1)
581 - (DOMTestObjectAConstructor *)conditionalAttr4
582 {
583     WebCore::JSMainThreadNullState state;
584     return kit(WTF::getPtr(IMPL->conditionalAttr4()));
585 }
586
587 - (void)setConditionalAttr4:(DOMTestObjectAConstructor *)newConditionalAttr4
588 {
589     WebCore::JSMainThreadNullState state;
590     ASSERT(newConditionalAttr4);
591
592     IMPL->setConditionalAttr4(core(newConditionalAttr4));
593 }
594 #endif
595
596 #if ENABLE(Condition1) && ENABLE(Condition2)
597 - (DOMTestObjectBConstructor *)conditionalAttr5
598 {
599     WebCore::JSMainThreadNullState state;
600     return kit(WTF::getPtr(IMPL->conditionalAttr5()));
601 }
602
603 - (void)setConditionalAttr5:(DOMTestObjectBConstructor *)newConditionalAttr5
604 {
605     WebCore::JSMainThreadNullState state;
606     ASSERT(newConditionalAttr5);
607
608     IMPL->setConditionalAttr5(core(newConditionalAttr5));
609 }
610 #endif
611
612 #if ENABLE(Condition1) || ENABLE(Condition2)
613 - (DOMTestObjectCConstructor *)conditionalAttr6
614 {
615     WebCore::JSMainThreadNullState state;
616     return kit(WTF::getPtr(IMPL->conditionalAttr6()));
617 }
618
619 - (void)setConditionalAttr6:(DOMTestObjectCConstructor *)newConditionalAttr6
620 {
621     WebCore::JSMainThreadNullState state;
622     ASSERT(newConditionalAttr6);
623
624     IMPL->setConditionalAttr6(core(newConditionalAttr6));
625 }
626 #endif
627
628 - (DOMDocument *)contentDocument
629 {
630     WebCore::JSMainThreadNullState state;
631     return kit(WTF::getPtr(IMPL->contentDocument()));
632 }
633
634 - (DOMSVGPoint *)mutablePoint
635 {
636     WebCore::JSMainThreadNullState state;
637     return kit(WTF::getPtr(WebCore::SVGStaticPropertyTearOff<WebCore::TestObj, WebCore::FloatPoint>::create(IMPL, IMPL->mutablePoint(), &WebCore::TestObj::updateMutablePoint)));
638 }
639
640 - (void)setMutablePoint:(DOMSVGPoint *)newMutablePoint
641 {
642     WebCore::JSMainThreadNullState state;
643     ASSERT(newMutablePoint);
644
645     IMPL->setMutablePoint(core(newMutablePoint));
646 }
647
648 - (DOMSVGPoint *)immutablePoint
649 {
650     WebCore::JSMainThreadNullState state;
651     return kit(WTF::getPtr(WebCore::SVGPropertyTearOff<WebCore::FloatPoint>::create(IMPL->immutablePoint())));
652 }
653
654 - (void)setImmutablePoint:(DOMSVGPoint *)newImmutablePoint
655 {
656     WebCore::JSMainThreadNullState state;
657     ASSERT(newImmutablePoint);
658
659     IMPL->setImmutablePoint(core(newImmutablePoint));
660 }
661
662 - (float)strictFloat
663 {
664     WebCore::JSMainThreadNullState state;
665     return IMPL->strictFloat();
666 }
667
668 - (void)setStrictFloat:(float)newStrictFloat
669 {
670     WebCore::JSMainThreadNullState state;
671     IMPL->setStrictFloat(newStrictFloat);
672 }
673
674 - (int)descriptionName
675 {
676     WebCore::JSMainThreadNullState state;
677     return IMPL->description();
678 }
679
680 - (int)idName
681 {
682     WebCore::JSMainThreadNullState state;
683     return IMPL->id();
684 }
685
686 - (void)setIdName:(int)newIdName
687 {
688     WebCore::JSMainThreadNullState state;
689     IMPL->setId(newIdName);
690 }
691
692 - (NSString *)hashName
693 {
694     WebCore::JSMainThreadNullState state;
695     return IMPL->hash();
696 }
697
698 - (void)voidMethod
699 {
700     WebCore::JSMainThreadNullState state;
701     IMPL->voidMethod();
702 }
703
704 - (void)voidMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
705 {
706     WebCore::JSMainThreadNullState state;
707     IMPL->voidMethodWithArgs(intArg, strArg, core(objArg));
708 }
709
710 - (int)intMethod
711 {
712     WebCore::JSMainThreadNullState state;
713     return IMPL->intMethod();
714 }
715
716 - (int)intMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
717 {
718     WebCore::JSMainThreadNullState state;
719     return IMPL->intMethodWithArgs(intArg, strArg, core(objArg));
720 }
721
722 - (DOMTestObj *)objMethod
723 {
724     WebCore::JSMainThreadNullState state;
725     return kit(WTF::getPtr(IMPL->objMethod()));
726 }
727
728 - (DOMTestObj *)objMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
729 {
730     WebCore::JSMainThreadNullState state;
731     return kit(WTF::getPtr(IMPL->objMethodWithArgs(intArg, strArg, core(objArg))));
732 }
733
734 - (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg
735 {
736     WebCore::JSMainThreadNullState state;
737     WebCore::ExceptionCode ec = 0;
738     DOMTestObj *result = kit(WTF::getPtr(IMPL->methodThatRequiresAllArgsAndThrows(strArg, core(objArg), ec)));
739     WebCore::raiseOnDOMError(ec);
740     return result;
741 }
742
743 - (void)serializedValue:(NSString *)serializedArg
744 {
745     WebCore::JSMainThreadNullState state;
746     IMPL->serializedValue(WebCore::SerializedScriptValue::create(WTF::String(serializedArg)));
747 }
748
749 - (void)idbKey:(DOMIDBKey *)key
750 {
751     WebCore::JSMainThreadNullState state;
752     IMPL->idbKey(core(key));
753 }
754
755 - (void)optionsObject:(DOMDictionary *)oo ooo:(DOMDictionary *)ooo
756 {
757     WebCore::JSMainThreadNullState state;
758     IMPL->optionsObject(core(oo), core(ooo));
759 }
760
761 - (void)methodWithException
762 {
763     WebCore::JSMainThreadNullState state;
764     WebCore::ExceptionCode ec = 0;
765     IMPL->methodWithException(ec);
766     WebCore::raiseOnDOMError(ec);
767 }
768
769 - (void)customMethod
770 {
771     WebCore::JSMainThreadNullState state;
772     IMPL->customMethod();
773 }
774
775 - (void)customMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
776 {
777     WebCore::JSMainThreadNullState state;
778     IMPL->customMethodWithArgs(intArg, strArg, core(objArg));
779 }
780
781 - (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
782 {
783     WebCore::JSMainThreadNullState state;
784     RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
785     IMPL->addEventListener(type, WTF::getPtr(nativeEventListener), useCapture);
786 }
787
788 - (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
789 {
790     WebCore::JSMainThreadNullState state;
791     RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
792     IMPL->removeEventListener(type, WTF::getPtr(nativeEventListener), useCapture);
793 }
794
795 - (void)withScriptStateVoid
796 {
797     WebCore::JSMainThreadNullState state;
798     IMPL->withScriptStateVoid();
799 }
800
801 - (DOMTestObj *)withScriptStateObj
802 {
803     WebCore::JSMainThreadNullState state;
804     return kit(WTF::getPtr(IMPL->withScriptStateObj()));
805 }
806
807 - (void)withScriptStateVoidException
808 {
809     WebCore::JSMainThreadNullState state;
810     WebCore::ExceptionCode ec = 0;
811     IMPL->withScriptStateVoidException(ec);
812     WebCore::raiseOnDOMError(ec);
813 }
814
815 - (DOMTestObj *)withScriptStateObjException
816 {
817     WebCore::JSMainThreadNullState state;
818     WebCore::ExceptionCode ec = 0;
819     DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateObjException(ec)));
820     WebCore::raiseOnDOMError(ec);
821     return result;
822 }
823
824 - (void)withScriptExecutionContext
825 {
826     WebCore::JSMainThreadNullState state;
827     IMPL->withScriptExecutionContext();
828 }
829
830 - (void)withScriptExecutionContextAndScriptState
831 {
832     WebCore::JSMainThreadNullState state;
833     IMPL->withScriptExecutionContextAndScriptState();
834 }
835
836 - (DOMTestObj *)withScriptExecutionContextAndScriptStateObjException
837 {
838     WebCore::JSMainThreadNullState state;
839     WebCore::ExceptionCode ec = 0;
840     DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateObjException(ec)));
841     WebCore::raiseOnDOMError(ec);
842     return result;
843 }
844
845 - (DOMTestObj *)withScriptExecutionContextAndScriptStateWithSpaces
846 {
847     WebCore::JSMainThreadNullState state;
848     return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateWithSpaces()));
849 }
850
851 - (void)withScriptArgumentsAndCallStack
852 {
853     WebCore::JSMainThreadNullState state;
854     IMPL->withScriptArgumentsAndCallStack();
855 }
856
857 - (void)methodWithOptionalArg:(int)opt
858 {
859     WebCore::JSMainThreadNullState state;
860     IMPL->methodWithOptionalArg(opt);
861 }
862
863 - (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt
864 {
865     WebCore::JSMainThreadNullState state;
866     IMPL->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
867 }
868
869 - (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2
870 {
871     WebCore::JSMainThreadNullState state;
872     IMPL->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
873 }
874
875 - (void)methodWithOptionalString:(NSString *)str
876 {
877     WebCore::JSMainThreadNullState state;
878     IMPL->methodWithOptionalString(str);
879 }
880
881 - (void)methodWithOptionalStringIsUndefined:(NSString *)str
882 {
883     WebCore::JSMainThreadNullState state;
884     IMPL->methodWithOptionalStringIsUndefined(str);
885 }
886
887 - (void)methodWithOptionalStringIsNullString:(NSString *)str
888 {
889     WebCore::JSMainThreadNullState state;
890     IMPL->methodWithOptionalStringIsNullString(str);
891 }
892
893
894 #if ENABLE(Condition1)
895 - (NSString *)conditionalMethod1
896 {
897     WebCore::JSMainThreadNullState state;
898     return IMPL->conditionalMethod1();
899 }
900
901 #endif
902
903
904 #if ENABLE(Condition1) && ENABLE(Condition2)
905 - (void)conditionalMethod2
906 {
907     WebCore::JSMainThreadNullState state;
908     IMPL->conditionalMethod2();
909 }
910
911 #endif
912
913
914 #if ENABLE(Condition1) || ENABLE(Condition2)
915 - (void)conditionalMethod3
916 {
917     WebCore::JSMainThreadNullState state;
918     IMPL->conditionalMethod3();
919 }
920
921 #endif
922
923 - (void)classMethod
924 {
925     WebCore::JSMainThreadNullState state;
926     IMPL->classMethod();
927 }
928
929 - (int)classMethodWithOptional:(int)arg
930 {
931     WebCore::JSMainThreadNullState state;
932     return IMPL->classMethodWithOptional(arg);
933 }
934
935 - (void)classMethod2:(int)arg
936 {
937     WebCore::JSMainThreadNullState state;
938     IMPL->classMethod2(arg);
939 }
940
941
942 #if ENABLE(Condition1)
943 - (void)overloadedMethod1:(int)arg
944 {
945     WebCore::JSMainThreadNullState state;
946     IMPL->overloadedMethod1(arg);
947 }
948
949 #endif
950
951
952 #if ENABLE(Condition1)
953 - (void)overloadedMethod1:(NSString *)type
954 {
955     WebCore::JSMainThreadNullState state;
956     IMPL->overloadedMethod1(type);
957 }
958
959 #endif
960
961 - (DOMSVGDocument *)getSVGDocument
962 {
963     WebCore::JSMainThreadNullState state;
964     WebCore::ExceptionCode ec = 0;
965     DOMSVGDocument *result = kit(WTF::getPtr(IMPL->getSVGDocument(ec)));
966     WebCore::raiseOnDOMError(ec);
967     return result;
968 }
969
970 - (void)convert1:(DOMa *)
971 {
972     WebCore::JSMainThreadNullState state;
973     IMPL->convert1(core());
974 }
975
976 - (void)convert2:(DOMb *)
977 {
978     WebCore::JSMainThreadNullState state;
979     IMPL->convert2(core());
980 }
981
982 - (void)convert3:(DOMc *)
983 {
984     WebCore::JSMainThreadNullState state;
985     IMPL->convert3(core());
986 }
987
988 - (void)convert4:(DOMd *)
989 {
990     WebCore::JSMainThreadNullState state;
991     IMPL->convert4(core());
992 }
993
994 - (void)convert5:(DOMe *)
995 {
996     WebCore::JSMainThreadNullState state;
997     IMPL->convert5(core());
998 }
999
1000 - (DOMSVGPoint *)mutablePointFunction
1001 {
1002     WebCore::JSMainThreadNullState state;
1003     return kit(WTF::getPtr(WebCore::SVGPropertyTearOff<WebCore::FloatPoint>::create(IMPL->mutablePointFunction())));
1004 }
1005
1006 - (DOMSVGPoint *)immutablePointFunction
1007 {
1008     WebCore::JSMainThreadNullState state;
1009     return kit(WTF::getPtr(WebCore::SVGPropertyTearOff<WebCore::FloatPoint>::create(IMPL->immutablePointFunction())));
1010 }
1011
1012 - (void)orange
1013 {
1014     WebCore::JSMainThreadNullState state;
1015     IMPL->orange();
1016 }
1017
1018 - (DOMbool *)strictFunction:(NSString *)str a:(float)a b:(int)b
1019 {
1020     WebCore::JSMainThreadNullState state;
1021     WebCore::ExceptionCode ec = 0;
1022     DOMbool *result = kit(WTF::getPtr(IMPL->strictFunction(str, a, b, ec)));
1023     WebCore::raiseOnDOMError(ec);
1024     return result;
1025 }
1026
1027 @end
1028
1029 WebCore::TestObj* core(DOMTestObj *wrapper)
1030 {
1031     return wrapper ? reinterpret_cast<WebCore::TestObj*>(wrapper->_internal) : 0;
1032 }
1033
1034 DOMTestObj *kit(WebCore::TestObj* value)
1035 {
1036     { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); };
1037     if (!value)
1038         return nil;
1039     if (DOMTestObj *wrapper = getDOMWrapper(value))
1040         return [[wrapper retain] autorelease];
1041     DOMTestObj *wrapper = [[DOMTestObj alloc] _init];
1042     wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);
1043     value->ref();
1044     addDOMWrapper(wrapper, value);
1045     return [wrapper autorelease];
1046 }