| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary formstrArg, with or without | 5 * Redistribution and use in source and binary formstrArg, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 [GetterRaisesException] attribute long attrWithGetterException; | 101 [GetterRaisesException] attribute long attrWithGetterException; |
| 102 [SetterRaisesException] attribute long attrWithSetterException; | 102 [SetterRaisesException] attribute long attrWithSetterException; |
| 103 [GetterRaisesException] attribute DOMString stringAttrWithGetterException; | 103 [GetterRaisesException] attribute DOMString stringAttrWithGetterException; |
| 104 [SetterRaisesException] attribute DOMString stringAttrWithSetterException; | 104 [SetterRaisesException] attribute DOMString stringAttrWithSetterException; |
| 105 | 105 |
| 106 // 'Custom' extended attribute | 106 // 'Custom' extended attribute |
| 107 [Custom] attribute long customAttr; | 107 [Custom] attribute long customAttr; |
| 108 [Custom, MeasureAs=CustomTestFeature] void customMethod(); | 108 [Custom, MeasureAs=CustomTestFeature] void customMethod(); |
| 109 [Custom] void customMethodWithArgs(long longArg, DOMString strArg, TestObjec
t objArg); | 109 [Custom] void customMethodWithArgs(long longArg, DOMString strArg, TestObjec
t objArg); |
| 110 | 110 |
| 111 void addEventListener(DOMString type, | 111 void addEventListener(DOMString type, |
| 112 EventListener listener, | 112 EventListener listener, |
| 113 optional boolean useCapture); | 113 optional boolean useCapture); |
| 114 void removeEventListener(DOMString type, | 114 void removeEventListener(DOMString type, |
| 115 EventListener listener, | 115 EventListener listener, |
| 116 optional boolean useCapture); | 116 optional boolean useCapture); |
| 117 | 117 |
| 118 // 'CallWith' extended attribute | 118 // 'CallWith' extended attribute |
| 119 [CallWith=ScriptState] void withScriptStateVoid(); | 119 [CallWith=ScriptState] void withScriptStateVoid(); |
| 120 [CallWith=ScriptState] TestObject withScriptStateObj(); | 120 [CallWith=ScriptState] TestObject withScriptStateObj(); |
| 121 [CallWith=ScriptState, RaisesException] void withScriptStateVoidException(); | 121 [CallWith=ScriptState, RaisesException] void withScriptStateVoidException(); |
| 122 [CallWith=ScriptState, RaisesException] TestObject withScriptStateObjExcepti
on(); | 122 [CallWith=ScriptState, RaisesException] TestObject withScriptStateObjExcepti
on(); |
| 123 [CallWith=ScriptExecutionContext] void withScriptExecutionContext(); | 123 [CallWith=ScriptExecutionContext] void withScriptExecutionContext(); |
| 124 [CallWith=ScriptExecutionContext&ScriptState] void withScriptExecutionContex
tAndScriptState(); | 124 [CallWith=ScriptExecutionContext&ScriptState] void withScriptExecutionContex
tAndScriptState(); |
| 125 [CallWith=ScriptExecutionContext&ScriptState, RaisesException] TestObject wi
thScriptExecutionContextAndScriptStateObjException(); | 125 [CallWith=ScriptExecutionContext&ScriptState, RaisesException] TestObject wi
thScriptExecutionContextAndScriptStateObjException(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 [Conditional=Condition1|Condition2] void conditionalMethod3(); | 177 [Conditional=Condition1|Condition2] void conditionalMethod3(); |
| 178 | 178 |
| 179 [Conditional=Condition1] attribute TestObjectectAConstructor conditionalAttr
4; | 179 [Conditional=Condition1] attribute TestObjectectAConstructor conditionalAttr
4; |
| 180 [Conditional=Condition1&Condition2] attribute TestObjectectBConstructor cond
itionalAttr5; | 180 [Conditional=Condition1&Condition2] attribute TestObjectectBConstructor cond
itionalAttr5; |
| 181 [Conditional=Condition1|Condition2] attribute TestObjectectCConstructor cond
itionalAttr6; | 181 [Conditional=Condition1|Condition2] attribute TestObjectectCConstructor cond
itionalAttr6; |
| 182 | 182 |
| 183 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; | 183 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; |
| 184 | 184 |
| 185 readonly attribute any cachedAttribute1; | 185 readonly attribute any cachedAttribute1; |
| 186 readonly attribute any cachedAttribute2; | 186 readonly attribute any cachedAttribute2; |
| 187 | 187 |
| 188 attribute any anyAttribute; | 188 attribute any anyAttribute; |
| 189 | 189 |
| 190 attribute TestCallbackFunction callbackFunctionAttribute; | 190 attribute TestCallbackFunction callbackFunctionAttribute; |
| 191 TestCallbackFunction callbackFunctionReturnValue(); | 191 TestCallbackFunction callbackFunctionReturnValue(); |
| 192 void callbackFunctionArgument(TestCallbackFunction function); | 192 void callbackFunctionArgument(TestCallbackFunction function); |
| 193 | 193 |
| 194 // Overloads | 194 // Overloads |
| 195 void overloadedMethod(TestObject? objArg, [StrictTypeChecking] DOMString
strArg); | 195 void overloadedMethod(TestObject? objArg, [StrictTypeChecking] DOMString
strArg); |
| 196 void overloadedMethod(TestObject? objArg, optional long longArg); | 196 void overloadedMethod(TestObject? objArg, optional long longArg); |
| 197 void overloadedMethod([StrictTypeChecking] DOMString strArg); | 197 void overloadedMethod([StrictTypeChecking] DOMString strArg); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 [DeprecateAs=Method] void deprecatedMethod(); | 318 [DeprecateAs=Method] void deprecatedMethod(); |
| 319 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); | 319 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); |
| 320 | 320 |
| 321 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 321 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 // The following comment should not generate any code | 324 // The following comment should not generate any code |
| 325 // TestObject implements TestImplements; | 325 // TestObject implements TestImplements; |
| 326 | 326 |
| OLD | NEW |