2 * This file is part of the WebKit open source project.
3 * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
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.
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.
28 #import "DOMInternal.h"
30 #import "DOMTestObj.h"
32 #import "DOMBlobInternal.h"
33 #import "DOMCSSRuleInternal.h"
34 #import "DOMCSSValueInternal.h"
35 #import "DOMEventInternal.h"
36 #import "DOMIDBKeyInternal.h"
37 #import "DOMNodeInternal.h"
38 #import "DOMOptionsObjectInternal.h"
39 #import "DOMStyleSheetInternal.h"
40 #import "DOMTestObjInternal.h"
41 #import "DOMTestObjectAConstructorInternal.h"
42 #import "DOMTestObjectBConstructorInternal.h"
43 #import "DOMTestObjectCConstructorInternal.h"
44 #import "DOMlogInternal.h"
45 #import "EventListener.h"
46 #import "ExceptionHandlers.h"
49 #import "JSMainThreadExecState.h"
51 #import "ObjCEventListener.h"
52 #import "OptionsObject.h"
53 #import "SerializedScriptValue.h"
55 #import "TestObjectAConstructor.h"
56 #import "TestObjectBConstructor.h"
57 #import "TestObjectCConstructor.h"
58 #import "ThreadCheck.h"
59 #import "WebCoreObjCExtras.h"
60 #import "WebScriptObjectPrivate.h"
62 #import <wtf/GetPtr.h>
64 #define IMPL reinterpret_cast<WebCore::TestObj*>(_internal)
66 @implementation DOMTestObj
70 if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestObj class], self))
85 - (int)readOnlyIntAttr
87 WebCore::JSMainThreadNullState state;
88 return IMPL->readOnlyIntAttr();
91 - (NSString *)readOnlyStringAttr
93 WebCore::JSMainThreadNullState state;
94 return IMPL->readOnlyStringAttr();
97 - (DOMTestObj *)readOnlyTestObjAttr
99 WebCore::JSMainThreadNullState state;
100 return kit(WTF::getPtr(IMPL->readOnlyTestObjAttr()));
105 WebCore::JSMainThreadNullState state;
106 return IMPL->shortAttr();
109 - (void)setShortAttr:(short)newShortAttr
111 WebCore::JSMainThreadNullState state;
112 IMPL->setShortAttr(newShortAttr);
115 - (unsigned short)unsignedShortAttr
117 WebCore::JSMainThreadNullState state;
118 return IMPL->unsignedShortAttr();
121 - (void)setUnsignedShortAttr:(unsigned short)newUnsignedShortAttr
123 WebCore::JSMainThreadNullState state;
124 IMPL->setUnsignedShortAttr(newUnsignedShortAttr);
129 WebCore::JSMainThreadNullState state;
130 return IMPL->intAttr();
133 - (void)setIntAttr:(int)newIntAttr
135 WebCore::JSMainThreadNullState state;
136 IMPL->setIntAttr(newIntAttr);
139 - (long long)longLongAttr
141 WebCore::JSMainThreadNullState state;
142 return IMPL->longLongAttr();
145 - (void)setLongLongAttr:(long long)newLongLongAttr
147 WebCore::JSMainThreadNullState state;
148 IMPL->setLongLongAttr(newLongLongAttr);
151 - (unsigned long long)unsignedLongLongAttr
153 WebCore::JSMainThreadNullState state;
154 return IMPL->unsignedLongLongAttr();
157 - (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr
159 WebCore::JSMainThreadNullState state;
160 IMPL->setUnsignedLongLongAttr(newUnsignedLongLongAttr);
163 - (NSString *)stringAttr
165 WebCore::JSMainThreadNullState state;
166 return IMPL->stringAttr();
169 - (void)setStringAttr:(NSString *)newStringAttr
171 WebCore::JSMainThreadNullState state;
172 IMPL->setStringAttr(newStringAttr);
175 - (DOMTestObj *)testObjAttr
177 WebCore::JSMainThreadNullState state;
178 return kit(WTF::getPtr(IMPL->testObjAttr()));
181 - (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr
183 WebCore::JSMainThreadNullState state;
184 ASSERT(newTestObjAttr);
186 IMPL->setTestObjAttr(core(newTestObjAttr));
189 - (DOMTestObj *)XMLObjAttr
191 WebCore::JSMainThreadNullState state;
192 return kit(WTF::getPtr(IMPL->xmlObjAttr()));
195 - (void)setXMLObjAttr:(DOMTestObj *)newXMLObjAttr
197 WebCore::JSMainThreadNullState state;
198 ASSERT(newXMLObjAttr);
200 IMPL->setXMLObjAttr(core(newXMLObjAttr));
205 WebCore::JSMainThreadNullState state;
206 return IMPL->isCreate();
209 - (void)setCreate:(BOOL)newCreate
211 WebCore::JSMainThreadNullState state;
212 IMPL->setCreate(newCreate);
215 - (NSString *)reflectedStringAttr
217 WebCore::JSMainThreadNullState state;
218 return IMPL->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr);
221 - (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
223 WebCore::JSMainThreadNullState state;
224 IMPL->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, newReflectedStringAttr);
227 - (int)reflectedIntegralAttr
229 WebCore::JSMainThreadNullState state;
230 return IMPL->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
233 - (void)setReflectedIntegralAttr:(int)newReflectedIntegralAttr
235 WebCore::JSMainThreadNullState state;
236 IMPL->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, newReflectedIntegralAttr);
239 - (unsigned)reflectedUnsignedIntegralAttr
241 WebCore::JSMainThreadNullState state;
242 return IMPL->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
245 - (void)setReflectedUnsignedIntegralAttr:(unsigned)newReflectedUnsignedIntegralAttr
247 WebCore::JSMainThreadNullState state;
248 IMPL->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, newReflectedUnsignedIntegralAttr);
251 - (BOOL)reflectedBooleanAttr
253 WebCore::JSMainThreadNullState state;
254 return IMPL->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
257 - (void)setReflectedBooleanAttr:(BOOL)newReflectedBooleanAttr
259 WebCore::JSMainThreadNullState state;
260 IMPL->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, newReflectedBooleanAttr);
263 - (NSString *)reflectedURLAttr
265 WebCore::JSMainThreadNullState state;
266 return IMPL->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr);
269 - (void)setReflectedURLAttr:(NSString *)newReflectedURLAttr
271 WebCore::JSMainThreadNullState state;
272 IMPL->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, newReflectedURLAttr);
275 - (NSString *)reflectedNonEmptyURLAttr
277 WebCore::JSMainThreadNullState state;
278 return IMPL->getNonEmptyURLAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr);
281 - (void)setReflectedNonEmptyURLAttr:(NSString *)newReflectedNonEmptyURLAttr
283 WebCore::JSMainThreadNullState state;
284 IMPL->setAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr, newReflectedNonEmptyURLAttr);
287 - (NSString *)reflectedStringAttr
289 WebCore::JSMainThreadNullState state;
290 return IMPL->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr);
293 - (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
295 WebCore::JSMainThreadNullState state;
296 IMPL->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, newReflectedStringAttr);
299 - (int)reflectedCustomIntegralAttr
301 WebCore::JSMainThreadNullState state;
302 return IMPL->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
305 - (void)setReflectedCustomIntegralAttr:(int)newReflectedCustomIntegralAttr
307 WebCore::JSMainThreadNullState state;
308 IMPL->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, newReflectedCustomIntegralAttr);
311 - (BOOL)reflectedCustomBooleanAttr
313 WebCore::JSMainThreadNullState state;
314 return IMPL->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
317 - (void)setReflectedCustomBooleanAttr:(BOOL)newReflectedCustomBooleanAttr
319 WebCore::JSMainThreadNullState state;
320 IMPL->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, newReflectedCustomBooleanAttr);
323 - (NSString *)reflectedCustomURLAttr
325 WebCore::JSMainThreadNullState state;
326 return IMPL->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr);
329 - (void)setReflectedCustomURLAttr:(NSString *)newReflectedCustomURLAttr
331 WebCore::JSMainThreadNullState state;
332 IMPL->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, newReflectedCustomURLAttr);
335 - (NSString *)reflectedCustomNonEmptyURLAttr
337 WebCore::JSMainThreadNullState state;
338 return IMPL->getNonEmptyURLAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr);
341 - (void)setReflectedCustomNonEmptyURLAttr:(NSString *)newReflectedCustomNonEmptyURLAttr
343 WebCore::JSMainThreadNullState state;
344 IMPL->setAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr, newReflectedCustomNonEmptyURLAttr);
347 - (int)attrWithGetterException
349 WebCore::JSMainThreadNullState state;
350 WebCore::ExceptionCode ec = 0;
351 int result = IMPL->attrWithGetterException(ec);
352 WebCore::raiseOnDOMError(ec);
356 - (void)setAttrWithGetterException:(int)newAttrWithGetterException
358 WebCore::JSMainThreadNullState state;
359 WebCore::ExceptionCode ec = 0;
360 IMPL->setAttrWithGetterException(newAttrWithGetterException, ec);
361 WebCore::raiseOnDOMError(ec);
364 - (int)attrWithSetterException
366 WebCore::JSMainThreadNullState state;
367 return IMPL->attrWithSetterException();
370 - (void)setAttrWithSetterException:(int)newAttrWithSetterException
372 WebCore::JSMainThreadNullState state;
373 WebCore::ExceptionCode ec = 0;
374 IMPL->setAttrWithSetterException(newAttrWithSetterException, ec);
375 WebCore::raiseOnDOMError(ec);
378 - (NSString *)stringAttrWithGetterException
380 WebCore::JSMainThreadNullState state;
381 WebCore::ExceptionCode ec = 0;
382 NSString *result = IMPL->stringAttrWithGetterException(ec);
383 WebCore::raiseOnDOMError(ec);
387 - (void)setStringAttrWithGetterException:(NSString *)newStringAttrWithGetterException
389 WebCore::JSMainThreadNullState state;
390 WebCore::ExceptionCode ec = 0;
391 IMPL->setStringAttrWithGetterException(newStringAttrWithGetterException, ec);
392 WebCore::raiseOnDOMError(ec);
395 - (NSString *)stringAttrWithSetterException
397 WebCore::JSMainThreadNullState state;
398 return IMPL->stringAttrWithSetterException();
401 - (void)setStringAttrWithSetterException:(NSString *)newStringAttrWithSetterException
403 WebCore::JSMainThreadNullState state;
404 WebCore::ExceptionCode ec = 0;
405 IMPL->setStringAttrWithSetterException(newStringAttrWithSetterException, ec);
406 WebCore::raiseOnDOMError(ec);
411 WebCore::JSMainThreadNullState state;
412 return IMPL->customAttr();
415 - (void)setCustomAttr:(int)newCustomAttr
417 WebCore::JSMainThreadNullState state;
418 IMPL->setCustomAttr(newCustomAttr);
421 - (NSString *)scriptStringAttr
423 WebCore::JSMainThreadNullState state;
424 return IMPL->scriptStringAttr();
427 #if ENABLE(Condition1)
428 - (int)conditionalAttr1
430 WebCore::JSMainThreadNullState state;
431 return IMPL->conditionalAttr1();
434 - (void)setConditionalAttr1:(int)newConditionalAttr1
436 WebCore::JSMainThreadNullState state;
437 IMPL->setConditionalAttr1(newConditionalAttr1);
441 #if ENABLE(Condition1) && ENABLE(Condition2)
442 - (int)conditionalAttr2
444 WebCore::JSMainThreadNullState state;
445 return IMPL->conditionalAttr2();
448 - (void)setConditionalAttr2:(int)newConditionalAttr2
450 WebCore::JSMainThreadNullState state;
451 IMPL->setConditionalAttr2(newConditionalAttr2);
455 #if ENABLE(Condition1) || ENABLE(Condition2)
456 - (int)conditionalAttr3
458 WebCore::JSMainThreadNullState state;
459 return IMPL->conditionalAttr3();
462 - (void)setConditionalAttr3:(int)newConditionalAttr3
464 WebCore::JSMainThreadNullState state;
465 IMPL->setConditionalAttr3(newConditionalAttr3);
469 #if ENABLE(Condition1)
470 - (DOMTestObjectAConstructor *)conditionalAttr4
472 WebCore::JSMainThreadNullState state;
473 return kit(WTF::getPtr(IMPL->conditionalAttr4()));
476 - (void)setConditionalAttr4:(DOMTestObjectAConstructor *)newConditionalAttr4
478 WebCore::JSMainThreadNullState state;
479 ASSERT(newConditionalAttr4);
481 IMPL->setConditionalAttr4(core(newConditionalAttr4));
485 #if ENABLE(Condition1) && ENABLE(Condition2)
486 - (DOMTestObjectBConstructor *)conditionalAttr5
488 WebCore::JSMainThreadNullState state;
489 return kit(WTF::getPtr(IMPL->conditionalAttr5()));
492 - (void)setConditionalAttr5:(DOMTestObjectBConstructor *)newConditionalAttr5
494 WebCore::JSMainThreadNullState state;
495 ASSERT(newConditionalAttr5);
497 IMPL->setConditionalAttr5(core(newConditionalAttr5));
501 #if ENABLE(Condition1) || ENABLE(Condition2)
502 - (DOMTestObjectCConstructor *)conditionalAttr6
504 WebCore::JSMainThreadNullState state;
505 return kit(WTF::getPtr(IMPL->conditionalAttr6()));
508 - (void)setConditionalAttr6:(DOMTestObjectCConstructor *)newConditionalAttr6
510 WebCore::JSMainThreadNullState state;
511 ASSERT(newConditionalAttr6);
513 IMPL->setConditionalAttr6(core(newConditionalAttr6));
517 - (int)descriptionName
519 WebCore::JSMainThreadNullState state;
520 return IMPL->description();
525 WebCore::JSMainThreadNullState state;
529 - (void)setIdName:(int)newIdName
531 WebCore::JSMainThreadNullState state;
532 IMPL->setId(newIdName);
535 - (NSString *)hashName
537 WebCore::JSMainThreadNullState state;
543 WebCore::JSMainThreadNullState state;
547 - (void)voidMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
549 WebCore::JSMainThreadNullState state;
550 IMPL->voidMethodWithArgs(intArg, strArg, core(objArg));
555 WebCore::JSMainThreadNullState state;
556 return IMPL->intMethod();
559 - (int)intMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
561 WebCore::JSMainThreadNullState state;
562 return IMPL->intMethodWithArgs(intArg, strArg, core(objArg));
565 - (DOMTestObj *)objMethod
567 WebCore::JSMainThreadNullState state;
568 return kit(WTF::getPtr(IMPL->objMethod()));
571 - (DOMTestObj *)objMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
573 WebCore::JSMainThreadNullState state;
574 return kit(WTF::getPtr(IMPL->objMethodWithArgs(intArg, strArg, core(objArg))));
577 - (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg
579 WebCore::JSMainThreadNullState state;
580 WebCore::ExceptionCode ec = 0;
581 DOMTestObj *result = kit(WTF::getPtr(IMPL->methodThatRequiresAllArgsAndThrows(strArg, core(objArg), ec)));
582 WebCore::raiseOnDOMError(ec);
586 - (void)serializedValue:(NSString *)serializedArg
588 WebCore::JSMainThreadNullState state;
589 IMPL->serializedValue(WebCore::SerializedScriptValue::create(WTF::String(serializedArg)));
592 - (void)idbKey:(DOMIDBKey *)key
594 WebCore::JSMainThreadNullState state;
595 IMPL->idbKey(core(key));
598 - (void)optionsObject:(DOMOptionsObject *)oo ooo:(DOMOptionsObject *)ooo
600 WebCore::JSMainThreadNullState state;
601 IMPL->optionsObject(core(oo), core(ooo));
604 - (void)methodWithException
606 WebCore::JSMainThreadNullState state;
607 WebCore::ExceptionCode ec = 0;
608 IMPL->methodWithException(ec);
609 WebCore::raiseOnDOMError(ec);
614 WebCore::JSMainThreadNullState state;
615 IMPL->customMethod();
618 - (void)customMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
620 WebCore::JSMainThreadNullState state;
621 IMPL->customMethodWithArgs(intArg, strArg, core(objArg));
624 - (void)customArgsAndException:(DOMlog *)intArg
626 WebCore::JSMainThreadNullState state;
627 WebCore::ExceptionCode ec = 0;
628 IMPL->customArgsAndException(core(intArg), ec);
629 WebCore::raiseOnDOMError(ec);
632 - (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
634 WebCore::JSMainThreadNullState state;
635 RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
636 IMPL->addEventListener(type, WTF::getPtr(nativeEventListener), useCapture);
639 - (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
641 WebCore::JSMainThreadNullState state;
642 RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
643 IMPL->removeEventListener(type, WTF::getPtr(nativeEventListener), useCapture);
646 - (void)withDynamicFrame
648 WebCore::JSMainThreadNullState state;
649 IMPL->withDynamicFrame();
652 - (void)withDynamicFrameAndArg:(int)intArg
654 WebCore::JSMainThreadNullState state;
655 IMPL->withDynamicFrameAndArg(intArg);
658 - (void)withDynamicFrameAndOptionalArg:(int)intArg optionalArg:(int)optionalArg
660 WebCore::JSMainThreadNullState state;
661 IMPL->withDynamicFrameAndOptionalArg(intArg, optionalArg);
664 - (void)withDynamicFrameAndUserGesture:(int)intArg
666 WebCore::JSMainThreadNullState state;
667 IMPL->withDynamicFrameAndUserGesture(intArg);
670 - (void)withDynamicFrameAndUserGestureASAD:(int)intArg optionalArg:(int)optionalArg
672 WebCore::JSMainThreadNullState state;
673 IMPL->withDynamicFrameAndUserGestureASAD(intArg, optionalArg);
676 - (void)withScriptStateVoid
678 WebCore::JSMainThreadNullState state;
679 IMPL->withScriptStateVoid();
682 - (DOMTestObj *)withScriptStateObj
684 WebCore::JSMainThreadNullState state;
685 return kit(WTF::getPtr(IMPL->withScriptStateObj()));
688 - (void)withScriptStateVoidException
690 WebCore::JSMainThreadNullState state;
691 WebCore::ExceptionCode ec = 0;
692 IMPL->withScriptStateVoidException(ec);
693 WebCore::raiseOnDOMError(ec);
696 - (DOMTestObj *)withScriptStateObjException
698 WebCore::JSMainThreadNullState state;
699 WebCore::ExceptionCode ec = 0;
700 DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateObjException(ec)));
701 WebCore::raiseOnDOMError(ec);
705 - (void)withScriptExecutionContext
707 WebCore::JSMainThreadNullState state;
708 IMPL->withScriptExecutionContext();
711 - (void)methodWithOptionalArg:(int)opt
713 WebCore::JSMainThreadNullState state;
714 IMPL->methodWithOptionalArg(opt);
717 - (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt
719 WebCore::JSMainThreadNullState state;
720 IMPL->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
723 - (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2
725 WebCore::JSMainThreadNullState state;
726 IMPL->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
730 #if ENABLE(Condition1)
731 - (NSString *)conditionalMethod1
733 WebCore::JSMainThreadNullState state;
734 return IMPL->conditionalMethod1();
740 #if ENABLE(Condition1) && ENABLE(Condition2)
741 - (void)conditionalMethod2
743 WebCore::JSMainThreadNullState state;
744 IMPL->conditionalMethod2();
750 #if ENABLE(Condition1) || ENABLE(Condition2)
751 - (void)conditionalMethod3
753 WebCore::JSMainThreadNullState state;
754 IMPL->conditionalMethod3();
761 WebCore::JSMainThreadNullState state;
765 - (int)classMethodWithOptional:(int)arg
767 WebCore::JSMainThreadNullState state;
768 return IMPL->classMethodWithOptional(arg);
773 WebCore::TestObj* core(DOMTestObj *wrapper)
775 return wrapper ? reinterpret_cast<WebCore::TestObj*>(wrapper->_internal) : 0;
778 DOMTestObj *kit(WebCore::TestObj* value)
780 { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); };
783 if (DOMTestObj *wrapper = getDOMWrapper(value))
784 return [[wrapper retain] autorelease];
785 DOMTestObj *wrapper = [[DOMTestObj alloc] _init];
786 wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);
788 addDOMWrapper(wrapper, value);
789 return [wrapper autorelease];