2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
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.
27 #import <WebCore/DOMObject.h>
29 #if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
34 @protocol DOMEventListener;
36 @interface DOMTestObj : DOMObject
37 - (int)readOnlyIntAttr;
38 - (NSString *)readOnlyStringAttr;
39 - (DOMTestObj *)readOnlyTestObjAttr;
41 - (void)setIntAttr:(int)newIntAttr;
42 - (long long)longLongAttr;
43 - (void)setLongLongAttr:(long long)newLongLongAttr;
44 - (unsigned long long)unsignedLongLongAttr;
45 - (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr;
46 - (NSString *)stringAttr;
47 - (void)setStringAttr:(NSString *)newStringAttr;
48 - (DOMTestObj *)testObjAttr;
49 - (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr;
50 - (int)attrWithException;
51 - (void)setAttrWithException:(int)newAttrWithException;
52 - (int)attrWithSetterException;
53 - (void)setAttrWithSetterException:(int)newAttrWithSetterException;
54 - (int)attrWithGetterException;
55 - (void)setAttrWithGetterException:(int)newAttrWithGetterException;
57 - (void)setCustomAttr:(int)newCustomAttr;
58 - (NSString *)scriptStringAttr;
60 - (void)voidMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg;
62 - (int)intMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg;
63 - (DOMTestObj *)objMethod;
64 - (DOMTestObj *)objMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg;
65 - (void)serializedValue:(NSString *)serializedArg;
66 - (void)methodWithException;
68 - (void)customMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg;
69 - (void)customArgsAndException:(DOMlog *)intArg;
70 - (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture;
71 - (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture;
72 - (void)withDynamicFrame;
73 - (void)withDynamicFrameAndArg:(int)intArg;
74 - (void)withDynamicFrameAndOptionalArg:(int)intArg optionalArg:(int)optionalArg;
75 - (void)withDynamicFrameAndUserGesture:(int)intArg;
76 - (void)withDynamicFrameAndUserGestureASAD:(int)intArg optionalArg:(int)optionalArg;
77 - (void)withScriptStateVoid;
78 - (DOMTestObj *)withScriptStateObj;
79 - (void)withScriptStateVoidException;
80 - (DOMTestObj *)withScriptStateObjException;
81 - (void)methodWithOptionalArg:(int)opt;
82 - (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt;
83 - (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2;