diff options
Diffstat (limited to 'WebCore/bindings/scripts/test/ObjC')
-rw-r--r-- | WebCore/bindings/scripts/test/ObjC/DOMTestObj.h | 6 | ||||
-rw-r--r-- | WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm | 32 |
2 files changed, 38 insertions, 0 deletions
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h index 1ad29cb..766d31f 100644 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h +++ b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h @@ -29,6 +29,7 @@ #if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST @class DOMIDBKey; +@class DOMOptionsObject; @class DOMTestObj; @class DOMlog; @class NSString; @@ -52,6 +53,10 @@ enum { - (int)readOnlyIntAttr; - (NSString *)readOnlyStringAttr; - (DOMTestObj *)readOnlyTestObjAttr; +- (short)shortAttr; +- (void)setShortAttr:(short)newShortAttr; +- (unsigned short)unsignedShortAttr; +- (void)setUnsignedShortAttr:(unsigned short)newUnsignedShortAttr; - (int)intAttr; - (void)setIntAttr:(int)newIntAttr; - (long long)longLongAttr; @@ -123,6 +128,7 @@ enum { - (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg; - (void)serializedValue:(NSString *)serializedArg; - (void)idbKey:(DOMIDBKey *)key; +- (void)optionsObject:(DOMOptionsObject *)oo ooo:(DOMOptionsObject *)ooo; - (void)methodWithException; - (void)customMethod; - (void)customMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg; diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm index 6788075..ac04235 100644 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm +++ b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm @@ -35,6 +35,7 @@ #import "DOMEventInternal.h" #import "DOMIDBKeyInternal.h" #import "DOMNodeInternal.h" +#import "DOMOptionsObjectInternal.h" #import "DOMStyleSheetInternal.h" #import "DOMTestObjInternal.h" #import "DOMlogInternal.h" @@ -45,6 +46,7 @@ #import "JSMainThreadExecState.h" #import "KURL.h" #import "ObjCEventListener.h" +#import "OptionsObject.h" #import "SerializedScriptValue.h" #import "TestObj.h" #import "ThreadCheck.h" @@ -92,6 +94,30 @@ return kit(WTF::getPtr(IMPL->readOnlyTestObjAttr())); } +- (short)shortAttr +{ + WebCore::JSMainThreadNullState state; + return IMPL->shortAttr(); +} + +- (void)setShortAttr:(short)newShortAttr +{ + WebCore::JSMainThreadNullState state; + IMPL->setShortAttr(newShortAttr); +} + +- (unsigned short)unsignedShortAttr +{ + WebCore::JSMainThreadNullState state; + return IMPL->unsignedShortAttr(); +} + +- (void)setUnsignedShortAttr:(unsigned short)newUnsignedShortAttr +{ + WebCore::JSMainThreadNullState state; + IMPL->setUnsignedShortAttr(newUnsignedShortAttr); +} + - (int)intAttr { WebCore::JSMainThreadNullState state; @@ -509,6 +535,12 @@ IMPL->idbKey(core(key)); } +- (void)optionsObject:(DOMOptionsObject *)oo ooo:(DOMOptionsObject *)ooo +{ + WebCore::JSMainThreadNullState state; + IMPL->optionsObject(core(oo), core(ooo)); +} + - (void)methodWithException { WebCore::JSMainThreadNullState state; |