| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary formstrArg, with or without | 4 * Redistribution and use in source and binary formstrArg, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 // This IDL file is for testing the bindings code generator with an interface | 29 // This IDL file is for testing the bindings code generator with an interface |
| 30 // that has the "Callback" attribute and for tracking changes in its ouput. | 30 // that has the "Callback" attribute and for tracking changes in its ouput. |
| 31 [ | 31 [ |
| 32 Conditional=SQL_DATABASE, | |
| 33 Callback | 32 Callback |
| 34 ] interface TestCallback { | 33 ] interface TestCallback { |
| 35 boolean callbackWithNoParam(); | 34 boolean callbackWithNoParam(); |
| 36 boolean callbackWithClass1Param(Class1 class1Param); | 35 boolean callbackWithClass1Param(Class1 class1Param); |
| 37 boolean callbackWithClass2Param(Class2 class2Param, DOMString strArg); | 36 boolean callbackWithClass2Param(Class2 class2Param, DOMString strArg); |
| 38 long callbackWithNonBoolReturnType(Class3 class3Param); | 37 long callbackWithNonBoolReturnType(Class3 class3Param); |
| 39 [Custom] long customCallback(Class5 class5Param, Class6 class6Param); | 38 [Custom] long customCallback(Class5 class5Param, Class6 class6Param); |
| 40 boolean callbackWithStringList(DOMStringList listParam); | 39 boolean callbackWithStringList(DOMStringList listParam); |
| 41 boolean callbackWithBoolean(boolean boolParam); | 40 boolean callbackWithBoolean(boolean boolParam); |
| 42 [PassThisToCallback=ThisClass] boolean callbackRequiresThisToPass(Class8 class
8Param, ThisClass thisClassParam); | 41 [PassThisToCallback=ThisClass] boolean callbackRequiresThisToPass(Class8 class
8Param, ThisClass thisClassParam); |
| 43 }; | 42 }; |
| OLD | NEW |