OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions |
6 * met: | 6 * are met: |
7 * | 7 * |
8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * 2. Redistributions in binary form must reproduce the above copyright |
11 * copyright notice, this list of conditions and the following disclaimer | 11 * notice, this list of conditions and the following disclaimer in the |
12 * in the documentation and/or other materials provided with the | 12 * documentation and/or other materials provided with the distribution. |
13 * distribution. | 13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of |
14 * * Neither the name of Google Inc. nor the names of its | 14 * its contributors may be used to endorse or promote products derived |
15 * contributors may be used to endorse or promote products derived from | 15 * from this software without specific prior written permission. |
16 * this software without specific prior written permission. | |
17 * | 16 * |
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
29 */ | 27 */ |
30 | 28 |
31 enum PartialEnumType { | 29 // This IDL file is for testing the bindings code generator and for tracking |
32 "foo", | 30 // changes in its ouput. |
33 "bar" | 31 [ |
| 32 Conditional=CONDITION_PARTIAL, |
| 33 ] partial interface TestInterface { |
| 34 static readonly attribute long supplementalStaticReadOnlyAttr; |
| 35 static attribute DOMString supplementalStaticAttr; |
| 36 readonly attribute DOMString supplementalStr1; |
| 37 attribute DOMString supplementalStr2; |
| 38 attribute Node supplementalNode; |
| 39 |
| 40 void supplementalMethod1(); |
| 41 [CallWith=ExecutionContext, RaisesException] TestObject supplementalMethod2(
DOMString strArg, TestObject objArg); |
| 42 [Custom] void supplementalMethod3(); |
| 43 static void supplementalMethod4(); |
| 44 |
| 45 const unsigned short SUPPLEMENTALCONSTANT1 = 1; |
| 46 [Reflect=CONST_IMPL] const unsigned short SUPPLEMENTALCONSTANT2 = 2; |
| 47 |
| 48 [RuntimeEnabled=Condition13] attribute Node Node13; |
34 }; | 49 }; |
35 | |
36 typedef DOMString PartialString; | |
37 | |
38 callback PartialCallbackType = void (PartialString value); | |
39 [ | |
40 Conditional=PARTIAL_CONDITION, | |
41 RuntimeEnabled=PartialFeatureName, | |
42 ] partial interface TestInterface { | |
43 const unsigned short PARTIAL_UNSIGNED_SHORT = 0; | |
44 | |
45 attribute long partialLongAttribute; | |
46 static attribute long partialStaticLongAttribute; | |
47 [CallWith=ExecutionContext] attribute long partialCallWithExecutionContextLo
ngAttribute; | |
48 | |
49 void partialVoidMethod(); | |
50 static void partialStaticVoidMethod(); | |
51 void partialVoidMethodLongArg(long longArg); | |
52 [CallWith=ExecutionContext, RaisesException] void partialCallWithExecutionCo
ntextRaisesExceptionVoidMethod(); | |
53 | |
54 attribute PartialEnumType partialPartialEnumTypeAttribute; | |
55 void partialVoidMethodPartialCallbackTypeArg(PartialCallbackType partialCall
backTypeArg); | |
56 }; | |
OLD | NEW |