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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); |
126 [CallWith= ScriptExecutionContext | ScriptState ] TestObject withScriptE
xecutionContextAndScriptStateWithSpaces(); | 126 [CallWith= ScriptExecutionContext & ScriptState ] TestObject withScriptE
xecutionContextAndScriptStateWithSpaces(); |
127 [CallWith=ActiveWindow|FirstWindow] void withActiveWindowAndFirstWindow(); | 127 [CallWith=ActiveWindow&FirstWindow] void withActiveWindowAndFirstWindow(); |
128 | 128 |
129 [CallWith=ScriptState] attribute long withScriptStateAttribute; | 129 [CallWith=ScriptState] attribute long withScriptStateAttribute; |
130 [CallWith=ScriptExecutionContext] attribute TestObject withScriptExecutionCo
ntextAttribute; | 130 [CallWith=ScriptExecutionContext] attribute TestObject withScriptExecutionCo
ntextAttribute; |
131 [SetterCallWith=ActiveWindow|FirstWindow] attribute TestObject withActiveWin
dowAndFirstWindowAttribute; | 131 [SetterCallWith=ActiveWindow&FirstWindow] attribute TestObject withActiveWin
dowAndFirstWindowAttribute; |
132 [CallWith=ScriptState, GetterRaisesException] attribute TestObject withScrip
tStateAttributeRaises; | 132 [CallWith=ScriptState, GetterRaisesException] attribute TestObject withScrip
tStateAttributeRaises; |
133 [CallWith=ScriptExecutionContext, GetterRaisesException] attribute TestObjec
t withScriptExecutionContextAttributeRaises; | 133 [CallWith=ScriptExecutionContext, GetterRaisesException] attribute TestObjec
t withScriptExecutionContextAttributeRaises; |
134 [CallWith=ScriptExecutionContext|ScriptState] attribute TestObject withScrip
tExecutionContextAndScriptStateAttribute; | 134 [CallWith=ScriptExecutionContext&ScriptState] attribute TestObject withScrip
tExecutionContextAndScriptStateAttribute; |
135 [CallWith=ScriptExecutionContext|ScriptState, GetterRaisesException] attribu
te TestObject withScriptExecutionContextAndScriptStateAttributeRaises; | 135 [CallWith=ScriptExecutionContext&ScriptState, GetterRaisesException] attribu
te TestObject withScriptExecutionContextAndScriptStateAttributeRaises; |
136 [CallWith= ScriptExecutionContext | ScriptState ] attribute TestObject w
ithScriptExecutionContextAndScriptStateWithSpacesAttribute; | 136 [CallWith= ScriptExecutionContext & ScriptState ] attribute TestObject w
ithScriptExecutionContextAndScriptStateWithSpacesAttribute; |
137 | 137 |
138 // optional parameters | 138 // optional parameters |
139 void methodWithOptionalArg(optional long opt); | 139 void methodWithOptionalArg(optional long opt); |
140 void methodWithNonOptionalArgAndOptionalArg(long nonOpt, optional long op
t); | 140 void methodWithNonOptionalArgAndOptionalArg(long nonOpt, optional long op
t); |
141 void methodWithNonOptionalArgAndTwoOptionalArgs(long nonOpt, optional lon
g opt1, optional long opt2); | 141 void methodWithNonOptionalArgAndTwoOptionalArgs(long nonOpt, optional lon
g opt1, optional long opt2); |
142 void methodWithOptionalString(optional DOMString str); | 142 void methodWithOptionalString(optional DOMString str); |
143 void methodWithOptionalStringIsUndefined([Default=Undefined] optional DOM
String str); | 143 void methodWithOptionalStringIsUndefined([Default=Undefined] optional DOM
String str); |
144 void methodWithOptionalStringIsNullString([Default=NullString] optional D
OMString str); | 144 void methodWithOptionalStringIsNullString([Default=NullString] optional D
OMString str); |
145 | 145 |
146 // Callback parameters | 146 // Callback parameters |
(...skipping 170 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 |