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 "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 "DOManyInternal.h"
49
#import "DOMbInternal.h"
50
#import "DOMboolInternal.h"
51
#import "DOMdInternal.h"
52
#import "DOMeInternal.h"
53
#import "Dictionary.h"
55
#import "EventListener.h"
56
#import "ExceptionHandlers.h"
59
#import "JSMainThreadExecState.h"
62
#import "ObjCEventListener.h"
63
#import "SVGDocument.h"
64
#import "SVGStaticPropertyTearOff.h"
65
#import "SerializedScriptValue.h"
67
#import "TestObjectAConstructor.h"
68
#import "TestObjectBConstructor.h"
69
#import "TestObjectCConstructor.h"
70
#import "ThreadCheck.h"
71
#import "WebCoreObjCExtras.h"
72
#import "WebScriptObjectPrivate.h"
79
#import <wtf/GetPtr.h>
81
#define IMPL reinterpret_cast<WebCore::TestObj*>(_internal)
83
@implementation DOMTestObj
87
if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestObj class], self))
102
- (int)readOnlyLongAttr
104
WebCore::JSMainThreadNullState state;
105
return IMPL->readOnlyLongAttr();
108
- (NSString *)readOnlyStringAttr
110
WebCore::JSMainThreadNullState state;
111
return IMPL->readOnlyStringAttr();
114
- (DOMTestObj *)readOnlyTestObjAttr
116
WebCore::JSMainThreadNullState state;
117
return kit(WTF::getPtr(IMPL->readOnlyTestObjAttr()));
122
WebCore::JSMainThreadNullState state;
123
return IMPL->shortAttr();
126
- (void)setShortAttr:(short)newShortAttr
128
WebCore::JSMainThreadNullState state;
129
IMPL->setShortAttr(newShortAttr);
132
- (unsigned short)unsignedShortAttr
134
WebCore::JSMainThreadNullState state;
135
return IMPL->unsignedShortAttr();
138
- (void)setUnsignedShortAttr:(unsigned short)newUnsignedShortAttr
140
WebCore::JSMainThreadNullState state;
141
IMPL->setUnsignedShortAttr(newUnsignedShortAttr);
146
WebCore::JSMainThreadNullState state;
147
return IMPL->longAttr();
150
- (void)setLongAttr:(int)newLongAttr
152
WebCore::JSMainThreadNullState state;
153
IMPL->setLongAttr(newLongAttr);
156
- (long long)longLongAttr
158
WebCore::JSMainThreadNullState state;
159
return IMPL->longLongAttr();
162
- (void)setLongLongAttr:(long long)newLongLongAttr
164
WebCore::JSMainThreadNullState state;
165
IMPL->setLongLongAttr(newLongLongAttr);
168
- (unsigned long long)unsignedLongLongAttr
170
WebCore::JSMainThreadNullState state;
171
return IMPL->unsignedLongLongAttr();
174
- (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr
176
WebCore::JSMainThreadNullState state;
177
IMPL->setUnsignedLongLongAttr(newUnsignedLongLongAttr);
180
- (NSString *)stringAttr
182
WebCore::JSMainThreadNullState state;
183
return IMPL->stringAttr();
186
- (void)setStringAttr:(NSString *)newStringAttr
188
WebCore::JSMainThreadNullState state;
189
IMPL->setStringAttr(newStringAttr);
192
- (DOMTestObj *)testObjAttr
194
WebCore::JSMainThreadNullState state;
195
return kit(WTF::getPtr(IMPL->testObjAttr()));
198
- (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr
200
WebCore::JSMainThreadNullState state;
201
ASSERT(newTestObjAttr);
203
IMPL->setTestObjAttr(core(newTestObjAttr));
206
- (DOMTestObj *)XMLObjAttr
208
WebCore::JSMainThreadNullState state;
209
return kit(WTF::getPtr(IMPL->xmlObjAttr()));
212
- (void)setXMLObjAttr:(DOMTestObj *)newXMLObjAttr
214
WebCore::JSMainThreadNullState state;
215
ASSERT(newXMLObjAttr);
217
IMPL->setXMLObjAttr(core(newXMLObjAttr));
222
WebCore::JSMainThreadNullState state;
223
return IMPL->isCreate();
226
- (void)setCreate:(BOOL)newCreate
228
WebCore::JSMainThreadNullState state;
229
IMPL->setCreate(newCreate);
232
- (NSString *)reflectedStringAttr
234
WebCore::JSMainThreadNullState state;
235
return IMPL->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr);
238
- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
240
WebCore::JSMainThreadNullState state;
241
IMPL->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, newReflectedStringAttr);
244
- (int)reflectedIntegralAttr
246
WebCore::JSMainThreadNullState state;
247
return IMPL->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
250
- (void)setReflectedIntegralAttr:(int)newReflectedIntegralAttr
252
WebCore::JSMainThreadNullState state;
253
IMPL->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, newReflectedIntegralAttr);
256
- (unsigned)reflectedUnsignedIntegralAttr
258
WebCore::JSMainThreadNullState state;
259
return IMPL->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
262
- (void)setReflectedUnsignedIntegralAttr:(unsigned)newReflectedUnsignedIntegralAttr
264
WebCore::JSMainThreadNullState state;
265
IMPL->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, newReflectedUnsignedIntegralAttr);
268
- (BOOL)reflectedBooleanAttr
270
WebCore::JSMainThreadNullState state;
271
return IMPL->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
274
- (void)setReflectedBooleanAttr:(BOOL)newReflectedBooleanAttr
276
WebCore::JSMainThreadNullState state;
277
IMPL->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, newReflectedBooleanAttr);
280
- (NSString *)reflectedURLAttr
282
WebCore::JSMainThreadNullState state;
283
return IMPL->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr);
286
- (void)setReflectedURLAttr:(NSString *)newReflectedURLAttr
288
WebCore::JSMainThreadNullState state;
289
IMPL->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, newReflectedURLAttr);
292
- (NSString *)reflectedStringAttr
294
WebCore::JSMainThreadNullState state;
295
return IMPL->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr);
298
- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
300
WebCore::JSMainThreadNullState state;
301
IMPL->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, newReflectedStringAttr);
304
- (int)reflectedCustomIntegralAttr
306
WebCore::JSMainThreadNullState state;
307
return IMPL->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
310
- (void)setReflectedCustomIntegralAttr:(int)newReflectedCustomIntegralAttr
312
WebCore::JSMainThreadNullState state;
313
IMPL->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, newReflectedCustomIntegralAttr);
316
- (BOOL)reflectedCustomBooleanAttr
318
WebCore::JSMainThreadNullState state;
319
return IMPL->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
322
- (void)setReflectedCustomBooleanAttr:(BOOL)newReflectedCustomBooleanAttr
324
WebCore::JSMainThreadNullState state;
325
IMPL->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, newReflectedCustomBooleanAttr);
328
- (NSString *)reflectedCustomURLAttr
330
WebCore::JSMainThreadNullState state;
331
return IMPL->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr);
334
- (void)setReflectedCustomURLAttr:(NSString *)newReflectedCustomURLAttr
336
WebCore::JSMainThreadNullState state;
337
IMPL->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, newReflectedCustomURLAttr);
340
- (int)attrWithGetterException
342
WebCore::JSMainThreadNullState state;
343
WebCore::ExceptionCode ec = 0;
344
int result = IMPL->attrWithGetterException(ec);
345
WebCore::raiseOnDOMError(ec);
349
- (void)setAttrWithGetterException:(int)newAttrWithGetterException
351
WebCore::JSMainThreadNullState state;
352
IMPL->setAttrWithGetterException(newAttrWithGetterException);
355
- (int)attrWithSetterException
357
WebCore::JSMainThreadNullState state;
358
return IMPL->attrWithSetterException();
361
- (void)setAttrWithSetterException:(int)newAttrWithSetterException
363
WebCore::JSMainThreadNullState state;
364
WebCore::ExceptionCode ec = 0;
365
IMPL->setAttrWithSetterException(newAttrWithSetterException, ec);
366
WebCore::raiseOnDOMError(ec);
369
- (NSString *)stringAttrWithGetterException
371
WebCore::JSMainThreadNullState state;
372
WebCore::ExceptionCode ec = 0;
373
NSString *result = IMPL->stringAttrWithGetterException(ec);
374
WebCore::raiseOnDOMError(ec);
378
- (void)setStringAttrWithGetterException:(NSString *)newStringAttrWithGetterException
380
WebCore::JSMainThreadNullState state;
381
IMPL->setStringAttrWithGetterException(newStringAttrWithGetterException);
384
- (NSString *)stringAttrWithSetterException
386
WebCore::JSMainThreadNullState state;
387
return IMPL->stringAttrWithSetterException();
390
- (void)setStringAttrWithSetterException:(NSString *)newStringAttrWithSetterException
392
WebCore::JSMainThreadNullState state;
393
WebCore::ExceptionCode ec = 0;
394
IMPL->setStringAttrWithSetterException(newStringAttrWithSetterException, ec);
395
WebCore::raiseOnDOMError(ec);
400
WebCore::JSMainThreadNullState state;
401
return IMPL->customAttr();
404
- (void)setCustomAttr:(int)newCustomAttr
406
WebCore::JSMainThreadNullState state;
407
IMPL->setCustomAttr(newCustomAttr);
410
- (int)withScriptStateAttribute
412
WebCore::JSMainThreadNullState state;
413
return IMPL->withScriptStateAttribute();
416
- (void)setWithScriptStateAttribute:(int)newWithScriptStateAttribute
418
WebCore::JSMainThreadNullState state;
419
IMPL->setWithScriptStateAttribute(newWithScriptStateAttribute);
422
- (DOMTestObj *)withScriptExecutionContextAttribute
424
WebCore::JSMainThreadNullState state;
425
return kit(WTF::getPtr(IMPL->withScriptExecutionContextAttribute()));
428
- (void)setWithScriptExecutionContextAttribute:(DOMTestObj *)newWithScriptExecutionContextAttribute
430
WebCore::JSMainThreadNullState state;
431
ASSERT(newWithScriptExecutionContextAttribute);
433
IMPL->setWithScriptExecutionContextAttribute(core(newWithScriptExecutionContextAttribute));
436
- (DOMTestObj *)withScriptStateAttributeRaises
438
WebCore::JSMainThreadNullState state;
439
WebCore::ExceptionCode ec = 0;
440
DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateAttributeRaises(ec)));
441
WebCore::raiseOnDOMError(ec);
445
- (void)setWithScriptStateAttributeRaises:(DOMTestObj *)newWithScriptStateAttributeRaises
447
WebCore::JSMainThreadNullState state;
448
ASSERT(newWithScriptStateAttributeRaises);
450
IMPL->setWithScriptStateAttributeRaises(core(newWithScriptStateAttributeRaises));
453
- (DOMTestObj *)withScriptExecutionContextAttributeRaises
455
WebCore::JSMainThreadNullState state;
456
WebCore::ExceptionCode ec = 0;
457
DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAttributeRaises(ec)));
458
WebCore::raiseOnDOMError(ec);
462
- (void)setWithScriptExecutionContextAttributeRaises:(DOMTestObj *)newWithScriptExecutionContextAttributeRaises
464
WebCore::JSMainThreadNullState state;
465
ASSERT(newWithScriptExecutionContextAttributeRaises);
467
IMPL->setWithScriptExecutionContextAttributeRaises(core(newWithScriptExecutionContextAttributeRaises));
470
- (DOMTestObj *)withScriptExecutionContextAndScriptStateAttribute
472
WebCore::JSMainThreadNullState state;
473
return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateAttribute()));
476
- (void)setWithScriptExecutionContextAndScriptStateAttribute:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateAttribute
478
WebCore::JSMainThreadNullState state;
479
ASSERT(newWithScriptExecutionContextAndScriptStateAttribute);
481
IMPL->setWithScriptExecutionContextAndScriptStateAttribute(core(newWithScriptExecutionContextAndScriptStateAttribute));
484
- (DOMTestObj *)withScriptExecutionContextAndScriptStateAttributeRaises
486
WebCore::JSMainThreadNullState state;
487
WebCore::ExceptionCode ec = 0;
488
DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateAttributeRaises(ec)));
489
WebCore::raiseOnDOMError(ec);
493
- (void)setWithScriptExecutionContextAndScriptStateAttributeRaises:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateAttributeRaises
495
WebCore::JSMainThreadNullState state;
496
ASSERT(newWithScriptExecutionContextAndScriptStateAttributeRaises);
498
IMPL->setWithScriptExecutionContextAndScriptStateAttributeRaises(core(newWithScriptExecutionContextAndScriptStateAttributeRaises));
501
- (DOMTestObj *)withScriptExecutionContextAndScriptStateWithSpacesAttribute
503
WebCore::JSMainThreadNullState state;
504
return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateWithSpacesAttribute()));
507
- (void)setWithScriptExecutionContextAndScriptStateWithSpacesAttribute:(DOMTestObj *)newWithScriptExecutionContextAndScriptStateWithSpacesAttribute
509
WebCore::JSMainThreadNullState state;
510
ASSERT(newWithScriptExecutionContextAndScriptStateWithSpacesAttribute);
512
IMPL->setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(core(newWithScriptExecutionContextAndScriptStateWithSpacesAttribute));
515
- (DOMTestObj *)withScriptArgumentsAndCallStackAttribute
517
WebCore::JSMainThreadNullState state;
518
return kit(WTF::getPtr(IMPL->withScriptArgumentsAndCallStackAttribute()));
521
- (void)setWithScriptArgumentsAndCallStackAttribute:(DOMTestObj *)newWithScriptArgumentsAndCallStackAttribute
523
WebCore::JSMainThreadNullState state;
524
ASSERT(newWithScriptArgumentsAndCallStackAttribute);
526
IMPL->setWithScriptArgumentsAndCallStackAttribute(core(newWithScriptArgumentsAndCallStackAttribute));
529
#if ENABLE(Condition1)
530
- (int)conditionalAttr1
532
WebCore::JSMainThreadNullState state;
533
return IMPL->conditionalAttr1();
536
- (void)setConditionalAttr1:(int)newConditionalAttr1
538
WebCore::JSMainThreadNullState state;
539
IMPL->setConditionalAttr1(newConditionalAttr1);
543
#if ENABLE(Condition1) && ENABLE(Condition2)
544
- (int)conditionalAttr2
546
WebCore::JSMainThreadNullState state;
547
return IMPL->conditionalAttr2();
550
- (void)setConditionalAttr2:(int)newConditionalAttr2
552
WebCore::JSMainThreadNullState state;
553
IMPL->setConditionalAttr2(newConditionalAttr2);
557
#if ENABLE(Condition1) || ENABLE(Condition2)
558
- (int)conditionalAttr3
560
WebCore::JSMainThreadNullState state;
561
return IMPL->conditionalAttr3();
564
- (void)setConditionalAttr3:(int)newConditionalAttr3
566
WebCore::JSMainThreadNullState state;
567
IMPL->setConditionalAttr3(newConditionalAttr3);
571
#if ENABLE(Condition1)
572
- (DOMTestObjectAConstructor *)conditionalAttr4
574
WebCore::JSMainThreadNullState state;
575
return kit(WTF::getPtr(IMPL->conditionalAttr4()));
578
- (void)setConditionalAttr4:(DOMTestObjectAConstructor *)newConditionalAttr4
580
WebCore::JSMainThreadNullState state;
581
ASSERT(newConditionalAttr4);
583
IMPL->setConditionalAttr4(core(newConditionalAttr4));
587
#if ENABLE(Condition1) && ENABLE(Condition2)
588
- (DOMTestObjectBConstructor *)conditionalAttr5
590
WebCore::JSMainThreadNullState state;
591
return kit(WTF::getPtr(IMPL->conditionalAttr5()));
594
- (void)setConditionalAttr5:(DOMTestObjectBConstructor *)newConditionalAttr5
596
WebCore::JSMainThreadNullState state;
597
ASSERT(newConditionalAttr5);
599
IMPL->setConditionalAttr5(core(newConditionalAttr5));
603
#if ENABLE(Condition1) || ENABLE(Condition2)
604
- (DOMTestObjectCConstructor *)conditionalAttr6
606
WebCore::JSMainThreadNullState state;
607
return kit(WTF::getPtr(IMPL->conditionalAttr6()));
610
- (void)setConditionalAttr6:(DOMTestObjectCConstructor *)newConditionalAttr6
612
WebCore::JSMainThreadNullState state;
613
ASSERT(newConditionalAttr6);
615
IMPL->setConditionalAttr6(core(newConditionalAttr6));
619
- (DOMany *)anyAttribute
621
WebCore::JSMainThreadNullState state;
622
return kit(WTF::getPtr(IMPL->anyAttribute()));
625
- (void)setAnyAttribute:(DOMany *)newAnyAttribute
627
WebCore::JSMainThreadNullState state;
628
ASSERT(newAnyAttribute);
630
IMPL->setAnyAttribute(core(newAnyAttribute));
633
- (DOMDocument *)contentDocument
635
WebCore::JSMainThreadNullState state;
636
return kit(WTF::getPtr(IMPL->contentDocument()));
639
- (DOMSVGPoint *)mutablePoint
641
WebCore::JSMainThreadNullState state;
642
return kit(WTF::getPtr(WebCore::SVGStaticPropertyTearOff<WebCore::TestObj, WebCore::FloatPoint>::create(IMPL, IMPL->mutablePoint(), &WebCore::TestObj::updateMutablePoint)));
645
- (void)setMutablePoint:(DOMSVGPoint *)newMutablePoint
647
WebCore::JSMainThreadNullState state;
648
ASSERT(newMutablePoint);
650
IMPL->setMutablePoint(core(newMutablePoint));
653
- (DOMSVGPoint *)immutablePoint
655
WebCore::JSMainThreadNullState state;
656
return kit(WTF::getPtr(WebCore::SVGPropertyTearOff<WebCore::FloatPoint>::create(IMPL->immutablePoint())));
659
- (void)setImmutablePoint:(DOMSVGPoint *)newImmutablePoint
661
WebCore::JSMainThreadNullState state;
662
ASSERT(newImmutablePoint);
664
IMPL->setImmutablePoint(core(newImmutablePoint));
669
WebCore::JSMainThreadNullState state;
670
return IMPL->blueberry();
673
- (void)setStrawberry:(int)newStrawberry
675
WebCore::JSMainThreadNullState state;
676
IMPL->setBlueberry(newStrawberry);
681
WebCore::JSMainThreadNullState state;
682
return IMPL->strictFloat();
685
- (void)setStrictFloat:(float)newStrictFloat
687
WebCore::JSMainThreadNullState state;
688
IMPL->setStrictFloat(newStrictFloat);
691
- (int)descriptionName
693
WebCore::JSMainThreadNullState state;
694
return IMPL->description();
699
WebCore::JSMainThreadNullState state;
703
- (void)setIdName:(int)newIdName
705
WebCore::JSMainThreadNullState state;
706
IMPL->setId(newIdName);
709
- (NSString *)hashName
711
WebCore::JSMainThreadNullState state;
715
- (int)replaceableAttribute
717
WebCore::JSMainThreadNullState state;
718
return IMPL->replaceableAttribute();
723
WebCore::JSMainThreadNullState state;
727
- (void)voidMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
729
WebCore::JSMainThreadNullState state;
730
IMPL->voidMethodWithArgs(longArg, strArg, core(objArg));
735
WebCore::JSMainThreadNullState state;
736
return IMPL->longMethod();
739
- (int)longMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
741
WebCore::JSMainThreadNullState state;
742
return IMPL->longMethodWithArgs(longArg, strArg, core(objArg));
745
- (DOMTestObj *)objMethod
747
WebCore::JSMainThreadNullState state;
748
return kit(WTF::getPtr(IMPL->objMethod()));
751
- (DOMTestObj *)objMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
753
WebCore::JSMainThreadNullState state;
754
return kit(WTF::getPtr(IMPL->objMethodWithArgs(longArg, strArg, core(objArg))));
757
- (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg
759
WebCore::JSMainThreadNullState state;
760
WebCore::ExceptionCode ec = 0;
761
DOMTestObj *result = kit(WTF::getPtr(IMPL->methodThatRequiresAllArgsAndThrows(strArg, core(objArg), ec)));
762
WebCore::raiseOnDOMError(ec);
766
- (void)serializedValue:(NSString *)serializedArg
768
WebCore::JSMainThreadNullState state;
769
IMPL->serializedValue(WebCore::SerializedScriptValue::create(WTF::String(serializedArg)));
772
- (void)idbKey:(DOMIDBKey *)key
774
WebCore::JSMainThreadNullState state;
775
IMPL->idbKey(core(key));
778
- (void)optionsObject:(DOMDictionary *)oo ooo:(DOMDictionary *)ooo
780
WebCore::JSMainThreadNullState state;
781
IMPL->optionsObject(core(oo), core(ooo));
784
- (void)methodWithException
786
WebCore::JSMainThreadNullState state;
787
WebCore::ExceptionCode ec = 0;
788
IMPL->methodWithException(ec);
789
WebCore::raiseOnDOMError(ec);
794
WebCore::JSMainThreadNullState state;
795
IMPL->customMethod();
798
- (void)customMethodWithArgs:(int)longArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
800
WebCore::JSMainThreadNullState state;
801
IMPL->customMethodWithArgs(longArg, strArg, core(objArg));
804
- (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
806
WebCore::JSMainThreadNullState state;
807
RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
808
IMPL->addEventListener(type, WTF::getPtr(nativeEventListener), useCapture);
811
- (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
813
WebCore::JSMainThreadNullState state;
814
RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
815
IMPL->removeEventListener(type, WTF::getPtr(nativeEventListener), useCapture);
818
- (void)withScriptStateVoid
820
WebCore::JSMainThreadNullState state;
821
IMPL->withScriptStateVoid();
824
- (DOMTestObj *)withScriptStateObj
826
WebCore::JSMainThreadNullState state;
827
return kit(WTF::getPtr(IMPL->withScriptStateObj()));
830
- (void)withScriptStateVoidException
832
WebCore::JSMainThreadNullState state;
833
WebCore::ExceptionCode ec = 0;
834
IMPL->withScriptStateVoidException(ec);
835
WebCore::raiseOnDOMError(ec);
838
- (DOMTestObj *)withScriptStateObjException
840
WebCore::JSMainThreadNullState state;
841
WebCore::ExceptionCode ec = 0;
842
DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateObjException(ec)));
843
WebCore::raiseOnDOMError(ec);
847
- (void)withScriptExecutionContext
849
WebCore::JSMainThreadNullState state;
850
IMPL->withScriptExecutionContext();
853
- (void)withScriptExecutionContextAndScriptState
855
WebCore::JSMainThreadNullState state;
856
IMPL->withScriptExecutionContextAndScriptState();
859
- (DOMTestObj *)withScriptExecutionContextAndScriptStateObjException
861
WebCore::JSMainThreadNullState state;
862
WebCore::ExceptionCode ec = 0;
863
DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateObjException(ec)));
864
WebCore::raiseOnDOMError(ec);
868
- (DOMTestObj *)withScriptExecutionContextAndScriptStateWithSpaces
870
WebCore::JSMainThreadNullState state;
871
return kit(WTF::getPtr(IMPL->withScriptExecutionContextAndScriptStateWithSpaces()));
874
- (void)withScriptArgumentsAndCallStack
876
WebCore::JSMainThreadNullState state;
877
IMPL->withScriptArgumentsAndCallStack();
880
- (void)methodWithOptionalArg:(int)opt
882
WebCore::JSMainThreadNullState state;
883
IMPL->methodWithOptionalArg(opt);
886
- (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt
888
WebCore::JSMainThreadNullState state;
889
IMPL->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
892
- (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2
894
WebCore::JSMainThreadNullState state;
895
IMPL->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
898
- (void)methodWithOptionalString:(NSString *)str
900
WebCore::JSMainThreadNullState state;
901
IMPL->methodWithOptionalString(str);
904
- (void)methodWithOptionalStringIsUndefined:(NSString *)str
906
WebCore::JSMainThreadNullState state;
907
IMPL->methodWithOptionalStringIsUndefined(str);
910
- (void)methodWithOptionalStringIsNullString:(NSString *)str
912
WebCore::JSMainThreadNullState state;
913
IMPL->methodWithOptionalStringIsNullString(str);
917
#if ENABLE(Condition1)
918
- (NSString *)conditionalMethod1
920
WebCore::JSMainThreadNullState state;
921
return IMPL->conditionalMethod1();
927
#if ENABLE(Condition1) && ENABLE(Condition2)
928
- (void)conditionalMethod2
930
WebCore::JSMainThreadNullState state;
931
IMPL->conditionalMethod2();
937
#if ENABLE(Condition1) || ENABLE(Condition2)
938
- (void)conditionalMethod3
940
WebCore::JSMainThreadNullState state;
941
IMPL->conditionalMethod3();
948
WebCore::JSMainThreadNullState state;
952
- (int)classMethodWithOptional:(int)arg
954
WebCore::JSMainThreadNullState state;
955
return IMPL->classMethodWithOptional(arg);
958
- (void)classMethod2:(int)arg
960
WebCore::JSMainThreadNullState state;
961
IMPL->classMethod2(arg);
965
#if ENABLE(Condition1)
966
- (void)overloadedMethod1:(int)arg
968
WebCore::JSMainThreadNullState state;
969
IMPL->overloadedMethod1(arg);
975
#if ENABLE(Condition1)
976
- (void)overloadedMethod1:(NSString *)type
978
WebCore::JSMainThreadNullState state;
979
IMPL->overloadedMethod1(type);
984
- (DOMSVGDocument *)getSVGDocument
986
WebCore::JSMainThreadNullState state;
987
WebCore::ExceptionCode ec = 0;
988
DOMSVGDocument *result = kit(WTF::getPtr(IMPL->getSVGDocument(ec)));
989
WebCore::raiseOnDOMError(ec);
993
- (void)convert1:(DOMa *)value
995
WebCore::JSMainThreadNullState state;
996
IMPL->convert1(core(value));
999
- (void)convert2:(DOMb *)value
1001
WebCore::JSMainThreadNullState state;
1002
IMPL->convert2(core(value));
1005
- (void)convert4:(DOMd *)value
1007
WebCore::JSMainThreadNullState state;
1008
IMPL->convert4(core(value));
1011
- (void)convert5:(DOMe *)value
1013
WebCore::JSMainThreadNullState state;
1014
IMPL->convert5(core(value));
1017
- (DOMSVGPoint *)mutablePointFunction
1019
WebCore::JSMainThreadNullState state;
1020
return kit(WTF::getPtr(WebCore::SVGPropertyTearOff<WebCore::FloatPoint>::create(IMPL->mutablePointFunction())));
1023
- (DOMSVGPoint *)immutablePointFunction
1025
WebCore::JSMainThreadNullState state;
1026
return kit(WTF::getPtr(WebCore::SVGPropertyTearOff<WebCore::FloatPoint>::create(IMPL->immutablePointFunction())));
1031
WebCore::JSMainThreadNullState state;
1035
- (DOMbool *)strictFunction:(NSString *)str a:(float)a b:(int)b
1037
WebCore::JSMainThreadNullState state;
1038
WebCore::ExceptionCode ec = 0;
1039
DOMbool *result = kit(WTF::getPtr(IMPL->strictFunction(str, a, b, ec)));
1040
WebCore::raiseOnDOMError(ec);
1044
- (void)variadicStringMethod:(NSString *)head tail:(NSString *)tail
1046
WebCore::JSMainThreadNullState state;
1047
IMPL->variadicStringMethod(head, tail);
1050
- (void)variadicDoubleMethod:(double)head tail:(double)tail
1052
WebCore::JSMainThreadNullState state;
1053
IMPL->variadicDoubleMethod(head, tail);
1056
- (void)variadicNodeMethod:(DOMNode *)head tail:(DOMNode *)tail
1058
WebCore::JSMainThreadNullState state;
1059
IMPL->variadicNodeMethod(core(head), core(tail));
1064
WebCore::TestObj* core(DOMTestObj *wrapper)
1066
return wrapper ? reinterpret_cast<WebCore::TestObj*>(wrapper->_internal) : 0;
1069
DOMTestObj *kit(WebCore::TestObj* value)
1071
{ DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); };
1074
if (DOMTestObj *wrapper = getDOMWrapper(value))
1075
return [[wrapper retain] autorelease];
1076
DOMTestObj *wrapper = [[DOMTestObj alloc] _init];
1077
wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);
1079
addDOMWrapper(wrapper, value);
1080
return [wrapper autorelease];