diff options
Diffstat (limited to 'WebCore/bindings/scripts/test/ObjC')
12 files changed, 0 insertions, 1451 deletions
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h b/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h deleted file mode 100644 index 1213c6f..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. - * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <WebCore/DOMObject.h> - -#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST - -@class DOMClass1; -@class DOMClass2; -@class DOMClass3; -@class DOMClass5; -@class DOMClass6; -@class NSString; - -@interface DOMTestCallback : DOMObject -- (BOOL)callbackWithClass1Param:(DOMClass1 *)class1Param; -- (BOOL)callbackWithClass2Param:(DOMClass2 *)class2Param strArg:(NSString *)strArg; -- (int)callbackWithNonBoolReturnType:(DOMClass3 *)class3Param; -- (int)customCallback:(DOMClass5 *)class5Param class6Param:(DOMClass6 *)class6Param; -@end - -#endif diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.mm deleted file mode 100644 index e941eda..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.mm +++ /dev/null @@ -1,127 +0,0 @@ -/* - * This file is part of the WebKit open source project. - * This file has been generated by generate-bindings.pl. DO NOT MODIFY! - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "config.h" - -#if ENABLE(DATABASE) - -#import "DOMInternal.h" - -#import "DOMTestCallback.h" - -#import "Class1.h" -#import "Class2.h" -#import "Class3.h" -#import "Class5.h" -#import "Class6.h" -#import "DOMBlobInternal.h" -#import "DOMCSSRuleInternal.h" -#import "DOMCSSValueInternal.h" -#import "DOMClass1Internal.h" -#import "DOMClass2Internal.h" -#import "DOMClass3Internal.h" -#import "DOMClass5Internal.h" -#import "DOMClass6Internal.h" -#import "DOMEventInternal.h" -#import "DOMNodeInternal.h" -#import "DOMStyleSheetInternal.h" -#import "DOMTestCallbackInternal.h" -#import "ExceptionHandlers.h" -#import "JSMainThreadExecState.h" -#import "KURL.h" -#import "TestCallback.h" -#import "ThreadCheck.h" -#import "WebCoreObjCExtras.h" -#import "WebScriptObjectPrivate.h" -#import <wtf/GetPtr.h> - -#define IMPL reinterpret_cast<WebCore::TestCallback*>(_internal) - -@implementation DOMTestCallback - -- (void)dealloc -{ - if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestCallback class], self)) - return; - - if (_internal) - IMPL->deref(); - [super dealloc]; -} - -- (void)finalize -{ - if (_internal) - IMPL->deref(); - [super finalize]; -} - -- (BOOL)callbackWithClass1Param:(DOMClass1 *)class1Param -{ - WebCore::JSMainThreadNullState state; - return IMPL->callbackWithClass1Param(core(class1Param)); -} - -- (BOOL)callbackWithClass2Param:(DOMClass2 *)class2Param strArg:(NSString *)strArg -{ - WebCore::JSMainThreadNullState state; - return IMPL->callbackWithClass2Param(core(class2Param), strArg); -} - -- (int)callbackWithNonBoolReturnType:(DOMClass3 *)class3Param -{ - WebCore::JSMainThreadNullState state; - return IMPL->callbackWithNonBoolReturnType(core(class3Param)); -} - -- (int)customCallback:(DOMClass5 *)class5Param class6Param:(DOMClass6 *)class6Param -{ - WebCore::JSMainThreadNullState state; - return IMPL->customCallback(core(class5Param), core(class6Param)); -} - -@end - -WebCore::TestCallback* core(DOMTestCallback *wrapper) -{ - return wrapper ? reinterpret_cast<WebCore::TestCallback*>(wrapper->_internal) : 0; -} - -DOMTestCallback *kit(WebCore::TestCallback* value) -{ - { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); }; - if (!value) - return nil; - if (DOMTestCallback *wrapper = getDOMWrapper(value)) - return [[wrapper retain] autorelease]; - DOMTestCallback *wrapper = [[DOMTestCallback alloc] _init]; - wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value); - value->ref(); - addDOMWrapper(wrapper, value); - return [wrapper autorelease]; -} - -#endif // ENABLE(DATABASE) diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestCallbackInternal.h b/WebCore/bindings/scripts/test/ObjC/DOMTestCallbackInternal.h deleted file mode 100644 index d8ea940..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestCallbackInternal.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of the WebKit open source project. - * This file has been generated by generate-bindings.pl. DO NOT MODIFY! - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <WebCore/DOMTestCallback.h> - -#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST - -namespace WebCore { - class TestCallback; -} - -WebCore::TestCallback* core(DOMTestCallback *); -DOMTestCallback *kit(WebCore::TestCallback*); - -#endif diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h b/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h deleted file mode 100644 index db7be28..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. - * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <WebCore/DOMObject.h> - -#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST - -@interface DOMTestInterface : DOMObject -@end - -#endif diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm deleted file mode 100644 index ab59333..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm +++ /dev/null @@ -1,92 +0,0 @@ -/* - * This file is part of the WebKit open source project. - * This file has been generated by generate-bindings.pl. DO NOT MODIFY! - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "config.h" - -#if ENABLE(Condition1) || ENABLE(Condition2) - -#import "DOMInternal.h" - -#import "DOMTestInterface.h" - -#import "DOMBlobInternal.h" -#import "DOMCSSRuleInternal.h" -#import "DOMCSSValueInternal.h" -#import "DOMEventInternal.h" -#import "DOMNodeInternal.h" -#import "DOMStyleSheetInternal.h" -#import "DOMTestInterfaceInternal.h" -#import "ExceptionHandlers.h" -#import "JSMainThreadExecState.h" -#import "TestInterface.h" -#import "ThreadCheck.h" -#import "WebCoreObjCExtras.h" -#import "WebScriptObjectPrivate.h" -#import <wtf/GetPtr.h> - -#define IMPL reinterpret_cast<WebCore::TestInterface*>(_internal) - -@implementation DOMTestInterface - -- (void)dealloc -{ - if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestInterface class], self)) - return; - - if (_internal) - IMPL->deref(); - [super dealloc]; -} - -- (void)finalize -{ - if (_internal) - IMPL->deref(); - [super finalize]; -} - -@end - -WebCore::TestInterface* core(DOMTestInterface *wrapper) -{ - return wrapper ? reinterpret_cast<WebCore::TestInterface*>(wrapper->_internal) : 0; -} - -DOMTestInterface *kit(WebCore::TestInterface* value) -{ - { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); }; - if (!value) - return nil; - if (DOMTestInterface *wrapper = getDOMWrapper(value)) - return [[wrapper retain] autorelease]; - DOMTestInterface *wrapper = [[DOMTestInterface alloc] _init]; - wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value); - value->ref(); - addDOMWrapper(wrapper, value); - return [wrapper autorelease]; -} - -#endif // ENABLE(Condition1) || ENABLE(Condition2) diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h b/WebCore/bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h deleted file mode 100644 index fef60a3..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of the WebKit open source project. - * This file has been generated by generate-bindings.pl. DO NOT MODIFY! - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <WebCore/DOMTestInterface.h> - -#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST - -namespace WebCore { - class TestInterface; -} - -WebCore::TestInterface* core(DOMTestInterface *); -DOMTestInterface *kit(WebCore::TestInterface*); - -#endif diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h deleted file mode 100644 index 20be806..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. - * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <WebCore/DOMObject.h> - -#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST - -@class DOMMediaQueryListListener; - -@interface DOMTestMediaQueryListListener : DOMObject -- (void)method:(DOMMediaQueryListListener *)listener; -@end - -#endif diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm deleted file mode 100644 index 74e3d52..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm +++ /dev/null @@ -1,95 +0,0 @@ -/* - * This file is part of the WebKit open source project. - * This file has been generated by generate-bindings.pl. DO NOT MODIFY! - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "config.h" -#import "DOMInternal.h" - -#import "DOMTestMediaQueryListListener.h" - -#import "DOMBlobInternal.h" -#import "DOMCSSRuleInternal.h" -#import "DOMCSSValueInternal.h" -#import "DOMEventInternal.h" -#import "DOMMediaQueryListListenerInternal.h" -#import "DOMNodeInternal.h" -#import "DOMStyleSheetInternal.h" -#import "DOMTestMediaQueryListListenerInternal.h" -#import "ExceptionHandlers.h" -#import "JSMainThreadExecState.h" -#import "MediaQueryListListener.h" -#import "TestMediaQueryListListener.h" -#import "ThreadCheck.h" -#import "WebCoreObjCExtras.h" -#import "WebScriptObjectPrivate.h" -#import <wtf/GetPtr.h> - -#define IMPL reinterpret_cast<WebCore::TestMediaQueryListListener*>(_internal) - -@implementation DOMTestMediaQueryListListener - -- (void)dealloc -{ - if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestMediaQueryListListener class], self)) - return; - - if (_internal) - IMPL->deref(); - [super dealloc]; -} - -- (void)finalize -{ - if (_internal) - IMPL->deref(); - [super finalize]; -} - -- (void)method:(DOMMediaQueryListListener *)listener -{ - WebCore::JSMainThreadNullState state; - IMPL->method(core(listener)); -} - -@end - -WebCore::TestMediaQueryListListener* core(DOMTestMediaQueryListListener *wrapper) -{ - return wrapper ? reinterpret_cast<WebCore::TestMediaQueryListListener*>(wrapper->_internal) : 0; -} - -DOMTestMediaQueryListListener *kit(WebCore::TestMediaQueryListListener* value) -{ - { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); }; - if (!value) - return nil; - if (DOMTestMediaQueryListListener *wrapper = getDOMWrapper(value)) - return [[wrapper retain] autorelease]; - DOMTestMediaQueryListListener *wrapper = [[DOMTestMediaQueryListListener alloc] _init]; - wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value); - value->ref(); - addDOMWrapper(wrapper, value); - return [wrapper autorelease]; -} diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h deleted file mode 100644 index b1421a3..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of the WebKit open source project. - * This file has been generated by generate-bindings.pl. DO NOT MODIFY! - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <WebCore/DOMTestMediaQueryListListener.h> - -#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST - -namespace WebCore { - class TestMediaQueryListListener; -} - -WebCore::TestMediaQueryListListener* core(DOMTestMediaQueryListListener *); -DOMTestMediaQueryListListener *kit(WebCore::TestMediaQueryListListener*); - -#endif diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h deleted file mode 100644 index c6ab368..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. - * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <WebCore/DOMObject.h> - -#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST - -@class DOMIDBKey; -@class DOMOptionsObject; -@class DOMTestObj; -@class DOMlog; -@class NSString; -@protocol DOMEventListener; - -enum { - DOM_CONST_VALUE_0 = 0, - DOM_CONST_VALUE_1 = 1, - DOM_CONST_VALUE_2 = 2, - DOM_CONST_VALUE_4 = 4, - DOM_CONST_VALUE_8 = 8, - DOM_CONST_VALUE_9 = -1, - DOM_CONST_VALUE_10 = "my constant string", - DOM_CONST_VALUE_11 = 0xffffffff, - DOM_CONST_VALUE_12 = 0x01, - DOM_CONST_VALUE_13 = 0X20, - DOM_CONST_VALUE_14 = 0x1abc -}; - -@interface DOMTestObj : DOMObject -- (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; -- (void)setLongLongAttr:(long long)newLongLongAttr; -- (unsigned long long)unsignedLongLongAttr; -- (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr; -- (NSString *)stringAttr; -- (void)setStringAttr:(NSString *)newStringAttr; -- (DOMTestObj *)testObjAttr; -- (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr; -- (DOMTestObj *)XMLObjAttr; -- (void)setXMLObjAttr:(DOMTestObj *)newXMLObjAttr; -- (BOOL)create; -- (void)setCreate:(BOOL)newCreate; -- (NSString *)reflectedStringAttr; -- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr; -- (int)reflectedIntegralAttr; -- (void)setReflectedIntegralAttr:(int)newReflectedIntegralAttr; -- (unsigned)reflectedUnsignedIntegralAttr; -- (void)setReflectedUnsignedIntegralAttr:(unsigned)newReflectedUnsignedIntegralAttr; -- (BOOL)reflectedBooleanAttr; -- (void)setReflectedBooleanAttr:(BOOL)newReflectedBooleanAttr; -- (NSString *)reflectedURLAttr; -- (void)setReflectedURLAttr:(NSString *)newReflectedURLAttr; -- (NSString *)reflectedNonEmptyURLAttr; -- (void)setReflectedNonEmptyURLAttr:(NSString *)newReflectedNonEmptyURLAttr; -- (NSString *)reflectedStringAttr; -- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr; -- (int)reflectedCustomIntegralAttr; -- (void)setReflectedCustomIntegralAttr:(int)newReflectedCustomIntegralAttr; -- (BOOL)reflectedCustomBooleanAttr; -- (void)setReflectedCustomBooleanAttr:(BOOL)newReflectedCustomBooleanAttr; -- (NSString *)reflectedCustomURLAttr; -- (void)setReflectedCustomURLAttr:(NSString *)newReflectedCustomURLAttr; -- (NSString *)reflectedCustomNonEmptyURLAttr; -- (void)setReflectedCustomNonEmptyURLAttr:(NSString *)newReflectedCustomNonEmptyURLAttr; -- (int)attrWithGetterException; -- (void)setAttrWithGetterException:(int)newAttrWithGetterException; -- (int)attrWithSetterException; -- (void)setAttrWithSetterException:(int)newAttrWithSetterException; -- (NSString *)stringAttrWithGetterException; -- (void)setStringAttrWithGetterException:(NSString *)newStringAttrWithGetterException; -- (NSString *)stringAttrWithSetterException; -- (void)setStringAttrWithSetterException:(NSString *)newStringAttrWithSetterException; -- (int)customAttr; -- (void)setCustomAttr:(int)newCustomAttr; -- (NSString *)scriptStringAttr; -#if ENABLE(Condition1) -- (int)conditionalAttr1; -- (void)setConditionalAttr1:(int)newConditionalAttr1; -#endif -#if ENABLE(Condition1) && ENABLE(Condition2) -- (int)conditionalAttr2; -- (void)setConditionalAttr2:(int)newConditionalAttr2; -#endif -#if ENABLE(Condition1) || ENABLE(Condition2) -- (int)conditionalAttr3; -- (void)setConditionalAttr3:(int)newConditionalAttr3; -#endif -- (int)descriptionName; -- (int)idName; -- (void)setIdName:(int)newIdName; -- (NSString *)hashName; -- (void)voidMethod; -- (void)voidMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg; -- (int)intMethod; -- (int)intMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg; -- (DOMTestObj *)objMethod; -- (DOMTestObj *)objMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg; -- (DOMTestObj *)methodThatRequiresAllArgs:(NSString *)strArg objArg:(DOMTestObj *)objArg; -- (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; -- (void)customArgsAndException:(DOMlog *)intArg; -- (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture; -- (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture; -- (void)withDynamicFrame; -- (void)withDynamicFrameAndArg:(int)intArg; -- (void)withDynamicFrameAndOptionalArg:(int)intArg optionalArg:(int)optionalArg; -- (void)withDynamicFrameAndUserGesture:(int)intArg; -- (void)withDynamicFrameAndUserGestureASAD:(int)intArg optionalArg:(int)optionalArg; -- (void)withScriptStateVoid; -- (DOMTestObj *)withScriptStateObj; -- (void)withScriptStateVoidException; -- (DOMTestObj *)withScriptStateObjException; -- (void)withScriptExecutionContext; -- (void)methodWithOptionalArg:(int)opt; -- (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt; -- (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2; -- (void)classMethod; -- (int)classMethodWithOptional:(int)arg; -@end - -#endif diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm deleted file mode 100644 index f43f58a..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm +++ /dev/null @@ -1,712 +0,0 @@ -/* - * This file is part of the WebKit open source project. - * This file has been generated by generate-bindings.pl. DO NOT MODIFY! - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "config.h" -#import "DOMInternal.h" - -#import "DOMTestObj.h" - -#import "DOMBlobInternal.h" -#import "DOMCSSRuleInternal.h" -#import "DOMCSSValueInternal.h" -#import "DOMEventInternal.h" -#import "DOMIDBKeyInternal.h" -#import "DOMNodeInternal.h" -#import "DOMOptionsObjectInternal.h" -#import "DOMStyleSheetInternal.h" -#import "DOMTestObjInternal.h" -#import "DOMlogInternal.h" -#import "EventListener.h" -#import "ExceptionHandlers.h" -#import "HTMLNames.h" -#import "IDBKey.h" -#import "JSMainThreadExecState.h" -#import "KURL.h" -#import "ObjCEventListener.h" -#import "OptionsObject.h" -#import "SerializedScriptValue.h" -#import "TestObj.h" -#import "ThreadCheck.h" -#import "WebCoreObjCExtras.h" -#import "WebScriptObjectPrivate.h" -#import "log.h" -#import <wtf/GetPtr.h> - -#define IMPL reinterpret_cast<WebCore::TestObj*>(_internal) - -@implementation DOMTestObj - -- (void)dealloc -{ - if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestObj class], self)) - return; - - if (_internal) - IMPL->deref(); - [super dealloc]; -} - -- (void)finalize -{ - if (_internal) - IMPL->deref(); - [super finalize]; -} - -- (int)readOnlyIntAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->readOnlyIntAttr(); -} - -- (NSString *)readOnlyStringAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->readOnlyStringAttr(); -} - -- (DOMTestObj *)readOnlyTestObjAttr -{ - WebCore::JSMainThreadNullState state; - 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; - return IMPL->intAttr(); -} - -- (void)setIntAttr:(int)newIntAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setIntAttr(newIntAttr); -} - -- (long long)longLongAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->longLongAttr(); -} - -- (void)setLongLongAttr:(long long)newLongLongAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setLongLongAttr(newLongLongAttr); -} - -- (unsigned long long)unsignedLongLongAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->unsignedLongLongAttr(); -} - -- (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setUnsignedLongLongAttr(newUnsignedLongLongAttr); -} - -- (NSString *)stringAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->stringAttr(); -} - -- (void)setStringAttr:(NSString *)newStringAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setStringAttr(newStringAttr); -} - -- (DOMTestObj *)testObjAttr -{ - WebCore::JSMainThreadNullState state; - return kit(WTF::getPtr(IMPL->testObjAttr())); -} - -- (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr -{ - WebCore::JSMainThreadNullState state; - ASSERT(newTestObjAttr); - - IMPL->setTestObjAttr(core(newTestObjAttr)); -} - -- (DOMTestObj *)XMLObjAttr -{ - WebCore::JSMainThreadNullState state; - return kit(WTF::getPtr(IMPL->xmlObjAttr())); -} - -- (void)setXMLObjAttr:(DOMTestObj *)newXMLObjAttr -{ - WebCore::JSMainThreadNullState state; - ASSERT(newXMLObjAttr); - - IMPL->setXMLObjAttr(core(newXMLObjAttr)); -} - -- (BOOL)create -{ - WebCore::JSMainThreadNullState state; - return IMPL->isCreate(); -} - -- (void)setCreate:(BOOL)newCreate -{ - WebCore::JSMainThreadNullState state; - IMPL->setCreate(newCreate); -} - -- (NSString *)reflectedStringAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr); -} - -- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, newReflectedStringAttr); -} - -- (int)reflectedIntegralAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr); -} - -- (void)setReflectedIntegralAttr:(int)newReflectedIntegralAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, newReflectedIntegralAttr); -} - -- (unsigned)reflectedUnsignedIntegralAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr); -} - -- (void)setReflectedUnsignedIntegralAttr:(unsigned)newReflectedUnsignedIntegralAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, newReflectedUnsignedIntegralAttr); -} - -- (BOOL)reflectedBooleanAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr); -} - -- (void)setReflectedBooleanAttr:(BOOL)newReflectedBooleanAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, newReflectedBooleanAttr); -} - -- (NSString *)reflectedURLAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr); -} - -- (void)setReflectedURLAttr:(NSString *)newReflectedURLAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, newReflectedURLAttr); -} - -- (NSString *)reflectedNonEmptyURLAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getNonEmptyURLAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr); -} - -- (void)setReflectedNonEmptyURLAttr:(NSString *)newReflectedNonEmptyURLAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr, newReflectedNonEmptyURLAttr); -} - -- (NSString *)reflectedStringAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr); -} - -- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, newReflectedStringAttr); -} - -- (int)reflectedCustomIntegralAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr); -} - -- (void)setReflectedCustomIntegralAttr:(int)newReflectedCustomIntegralAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, newReflectedCustomIntegralAttr); -} - -- (BOOL)reflectedCustomBooleanAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr); -} - -- (void)setReflectedCustomBooleanAttr:(BOOL)newReflectedCustomBooleanAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, newReflectedCustomBooleanAttr); -} - -- (NSString *)reflectedCustomURLAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr); -} - -- (void)setReflectedCustomURLAttr:(NSString *)newReflectedCustomURLAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, newReflectedCustomURLAttr); -} - -- (NSString *)reflectedCustomNonEmptyURLAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->getNonEmptyURLAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr); -} - -- (void)setReflectedCustomNonEmptyURLAttr:(NSString *)newReflectedCustomNonEmptyURLAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr, newReflectedCustomNonEmptyURLAttr); -} - -- (int)attrWithGetterException -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - int result = IMPL->attrWithGetterException(ec); - WebCore::raiseOnDOMError(ec); - return result; -} - -- (void)setAttrWithGetterException:(int)newAttrWithGetterException -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - IMPL->setAttrWithGetterException(newAttrWithGetterException, ec); - WebCore::raiseOnDOMError(ec); -} - -- (int)attrWithSetterException -{ - WebCore::JSMainThreadNullState state; - return IMPL->attrWithSetterException(); -} - -- (void)setAttrWithSetterException:(int)newAttrWithSetterException -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - IMPL->setAttrWithSetterException(newAttrWithSetterException, ec); - WebCore::raiseOnDOMError(ec); -} - -- (NSString *)stringAttrWithGetterException -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - NSString *result = IMPL->stringAttrWithGetterException(ec); - WebCore::raiseOnDOMError(ec); - return result; -} - -- (void)setStringAttrWithGetterException:(NSString *)newStringAttrWithGetterException -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - IMPL->setStringAttrWithGetterException(newStringAttrWithGetterException, ec); - WebCore::raiseOnDOMError(ec); -} - -- (NSString *)stringAttrWithSetterException -{ - WebCore::JSMainThreadNullState state; - return IMPL->stringAttrWithSetterException(); -} - -- (void)setStringAttrWithSetterException:(NSString *)newStringAttrWithSetterException -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - IMPL->setStringAttrWithSetterException(newStringAttrWithSetterException, ec); - WebCore::raiseOnDOMError(ec); -} - -- (int)customAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->customAttr(); -} - -- (void)setCustomAttr:(int)newCustomAttr -{ - WebCore::JSMainThreadNullState state; - IMPL->setCustomAttr(newCustomAttr); -} - -- (NSString *)scriptStringAttr -{ - WebCore::JSMainThreadNullState state; - return IMPL->scriptStringAttr(); -} - -#if ENABLE(Condition1) -- (int)conditionalAttr1 -{ - WebCore::JSMainThreadNullState state; - return IMPL->conditionalAttr1(); -} - -- (void)setConditionalAttr1:(int)newConditionalAttr1 -{ - WebCore::JSMainThreadNullState state; - IMPL->setConditionalAttr1(newConditionalAttr1); -} -#endif - -#if ENABLE(Condition1) && ENABLE(Condition2) -- (int)conditionalAttr2 -{ - WebCore::JSMainThreadNullState state; - return IMPL->conditionalAttr2(); -} - -- (void)setConditionalAttr2:(int)newConditionalAttr2 -{ - WebCore::JSMainThreadNullState state; - IMPL->setConditionalAttr2(newConditionalAttr2); -} -#endif - -#if ENABLE(Condition1) || ENABLE(Condition2) -- (int)conditionalAttr3 -{ - WebCore::JSMainThreadNullState state; - return IMPL->conditionalAttr3(); -} - -- (void)setConditionalAttr3:(int)newConditionalAttr3 -{ - WebCore::JSMainThreadNullState state; - IMPL->setConditionalAttr3(newConditionalAttr3); -} -#endif - -- (int)descriptionName -{ - WebCore::JSMainThreadNullState state; - return IMPL->description(); -} - -- (int)idName -{ - WebCore::JSMainThreadNullState state; - return IMPL->id(); -} - -- (void)setIdName:(int)newIdName -{ - WebCore::JSMainThreadNullState state; - IMPL->setId(newIdName); -} - -- (NSString *)hashName -{ - WebCore::JSMainThreadNullState state; - return IMPL->hash(); -} - -- (void)voidMethod -{ - WebCore::JSMainThreadNullState state; - IMPL->voidMethod(); -} - -- (void)voidMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg -{ - WebCore::JSMainThreadNullState state; - IMPL->voidMethodWithArgs(intArg, strArg, core(objArg)); -} - -- (int)intMethod -{ - WebCore::JSMainThreadNullState state; - return IMPL->intMethod(); -} - -- (int)intMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg -{ - WebCore::JSMainThreadNullState state; - return IMPL->intMethodWithArgs(intArg, strArg, core(objArg)); -} - -- (DOMTestObj *)objMethod -{ - WebCore::JSMainThreadNullState state; - return kit(WTF::getPtr(IMPL->objMethod())); -} - -- (DOMTestObj *)objMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg -{ - WebCore::JSMainThreadNullState state; - return kit(WTF::getPtr(IMPL->objMethodWithArgs(intArg, strArg, core(objArg)))); -} - -- (DOMTestObj *)methodThatRequiresAllArgs:(NSString *)strArg objArg:(DOMTestObj *)objArg -{ - WebCore::JSMainThreadNullState state; - return kit(WTF::getPtr(IMPL->methodThatRequiresAllArgs(strArg, core(objArg)))); -} - -- (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - DOMTestObj *result = kit(WTF::getPtr(IMPL->methodThatRequiresAllArgsAndThrows(strArg, core(objArg), ec))); - WebCore::raiseOnDOMError(ec); - return result; -} - -- (void)serializedValue:(NSString *)serializedArg -{ - WebCore::JSMainThreadNullState state; - IMPL->serializedValue(WebCore::SerializedScriptValue::create(WTF::String(serializedArg))); -} - -- (void)idbKey:(DOMIDBKey *)key -{ - WebCore::JSMainThreadNullState state; - 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; - WebCore::ExceptionCode ec = 0; - IMPL->methodWithException(ec); - WebCore::raiseOnDOMError(ec); -} - -- (void)customMethod -{ - WebCore::JSMainThreadNullState state; - IMPL->customMethod(); -} - -- (void)customMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg -{ - WebCore::JSMainThreadNullState state; - IMPL->customMethodWithArgs(intArg, strArg, core(objArg)); -} - -- (void)customArgsAndException:(DOMlog *)intArg -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - IMPL->customArgsAndException(core(intArg), ec); - WebCore::raiseOnDOMError(ec); -} - -- (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture -{ - WebCore::JSMainThreadNullState state; - RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener); - IMPL->addEventListener(type, WTF::getPtr(nativeEventListener), useCapture); -} - -- (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture -{ - WebCore::JSMainThreadNullState state; - RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener); - IMPL->removeEventListener(type, WTF::getPtr(nativeEventListener), useCapture); -} - -- (void)withDynamicFrame -{ - WebCore::JSMainThreadNullState state; - IMPL->withDynamicFrame(); -} - -- (void)withDynamicFrameAndArg:(int)intArg -{ - WebCore::JSMainThreadNullState state; - IMPL->withDynamicFrameAndArg(intArg); -} - -- (void)withDynamicFrameAndOptionalArg:(int)intArg optionalArg:(int)optionalArg -{ - WebCore::JSMainThreadNullState state; - IMPL->withDynamicFrameAndOptionalArg(intArg, optionalArg); -} - -- (void)withDynamicFrameAndUserGesture:(int)intArg -{ - WebCore::JSMainThreadNullState state; - IMPL->withDynamicFrameAndUserGesture(intArg); -} - -- (void)withDynamicFrameAndUserGestureASAD:(int)intArg optionalArg:(int)optionalArg -{ - WebCore::JSMainThreadNullState state; - IMPL->withDynamicFrameAndUserGestureASAD(intArg, optionalArg); -} - -- (void)withScriptStateVoid -{ - WebCore::JSMainThreadNullState state; - IMPL->withScriptStateVoid(); -} - -- (DOMTestObj *)withScriptStateObj -{ - WebCore::JSMainThreadNullState state; - return kit(WTF::getPtr(IMPL->withScriptStateObj())); -} - -- (void)withScriptStateVoidException -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - IMPL->withScriptStateVoidException(ec); - WebCore::raiseOnDOMError(ec); -} - -- (DOMTestObj *)withScriptStateObjException -{ - WebCore::JSMainThreadNullState state; - WebCore::ExceptionCode ec = 0; - DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateObjException(ec))); - WebCore::raiseOnDOMError(ec); - return result; -} - -- (void)withScriptExecutionContext -{ - WebCore::JSMainThreadNullState state; - IMPL->withScriptExecutionContext(); -} - -- (void)methodWithOptionalArg:(int)opt -{ - WebCore::JSMainThreadNullState state; - IMPL->methodWithOptionalArg(opt); -} - -- (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt -{ - WebCore::JSMainThreadNullState state; - IMPL->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt); -} - -- (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2 -{ - WebCore::JSMainThreadNullState state; - IMPL->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2); -} - -- (void)classMethod -{ - WebCore::JSMainThreadNullState state; - IMPL->classMethod(); -} - -- (int)classMethodWithOptional:(int)arg -{ - WebCore::JSMainThreadNullState state; - return IMPL->classMethodWithOptional(arg); -} - -@end - -WebCore::TestObj* core(DOMTestObj *wrapper) -{ - return wrapper ? reinterpret_cast<WebCore::TestObj*>(wrapper->_internal) : 0; -} - -DOMTestObj *kit(WebCore::TestObj* value) -{ - { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); }; - if (!value) - return nil; - if (DOMTestObj *wrapper = getDOMWrapper(value)) - return [[wrapper retain] autorelease]; - DOMTestObj *wrapper = [[DOMTestObj alloc] _init]; - wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value); - value->ref(); - addDOMWrapper(wrapper, value); - return [wrapper autorelease]; -} diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObjInternal.h b/WebCore/bindings/scripts/test/ObjC/DOMTestObjInternal.h deleted file mode 100644 index c24ea84..0000000 --- a/WebCore/bindings/scripts/test/ObjC/DOMTestObjInternal.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of the WebKit open source project. - * This file has been generated by generate-bindings.pl. DO NOT MODIFY! - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import <WebCore/DOMTestObj.h> - -#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST - -namespace WebCore { - class TestObj; -} - -WebCore::TestObj* core(DOMTestObj *); -DOMTestObj *kit(WebCore::TestObj*); - -#endif |