OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Test for interface extended attributes and special operations. | 31 // Test for interface extended attributes and special operations. |
32 // Also used as a target by TestObject | 32 // Also used as a target by TestObject |
33 | 33 |
34 [ | 34 [ |
35 ActiveScriptWrappable, | 35 ActiveScriptWrappable, |
36 DependentLifetime, | 36 DependentLifetime, |
37 Custom=LegacyCallAsFunction, | 37 Custom=LegacyCallAsFunction, |
38 DoNotCheckConstants, | 38 DoNotCheckConstants, |
39 ImplementedAs=TestInterfaceImplementation, | 39 ImplementedAs=TestInterfaceImplementation, |
40 Iterable, | |
41 RuntimeEnabled=FeatureName, | 40 RuntimeEnabled=FeatureName, |
42 Exposed=(Worker,Window), | 41 Exposed=(Worker,Window), |
43 ] interface TestInterface : TestInterfaceEmpty { | 42 ] interface TestInterface : TestInterfaceEmpty { |
44 // members needed to test [ImplementedAs], as this affect attribute | 43 // members needed to test [ImplementedAs], as this affect attribute |
45 // configuration and method configuration | 44 // configuration and method configuration |
46 const unsigned long UNSIGNED_LONG = 0; | 45 const unsigned long UNSIGNED_LONG = 0; |
47 [Reflect=CONST_CPP] const short CONST_JAVASCRIPT = 1; | 46 [Reflect=CONST_CPP] const short CONST_JAVASCRIPT = 1; |
48 | 47 |
49 [Measure] attribute TestInterface testInterfaceAttribute; // Self-referentia
l interface type with [ImplementedAs] | 48 [Measure] attribute TestInterface testInterfaceAttribute; // Self-referentia
l interface type with [ImplementedAs] |
50 attribute TestInterfaceConstructor testInterfaceConstructorAttribute; | 49 attribute TestInterfaceConstructor testInterfaceConstructorAttribute; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 [Exposed=(Window,ServiceWorker)] void windowAndServiceWorkerExposedMethod(); | 104 [Exposed=(Window,ServiceWorker)] void windowAndServiceWorkerExposedMethod(); |
106 | 105 |
107 void voidMethodPartialOverload(); | 106 void voidMethodPartialOverload(); |
108 void voidMethodPartialOverload(double doubleArg); | 107 void voidMethodPartialOverload(double doubleArg); |
109 static void staticVoidMethodPartialOverload(); | 108 static void staticVoidMethodPartialOverload(); |
110 | 109 |
111 Promise promiseMethodPartialOverload(); | 110 Promise promiseMethodPartialOverload(); |
112 Promise promiseMethodPartialOverload(Window window); | 111 Promise promiseMethodPartialOverload(Window window); |
113 static Promise staticPromiseMethodPartialOverload(); | 112 static Promise staticPromiseMethodPartialOverload(); |
114 | 113 |
| 114 iterable<ByteString, long>; |
| 115 |
115 [LenientThis] attribute any lenientThisAttribute; | 116 [LenientThis] attribute any lenientThisAttribute; |
116 | 117 |
117 [LegacyInterfaceTypeChecking] void legacyInterfaceTypeCheckingMethod(TestInt
erfaceEmpty testInterfaceEmptyArg); | 118 [LegacyInterfaceTypeChecking] void legacyInterfaceTypeCheckingMethod(TestInt
erfaceEmpty testInterfaceEmptyArg); |
118 | 119 |
119 [SecureContext] void secureContextMethod(); | 120 [SecureContext] void secureContextMethod(); |
120 [SecureContext] attribute bool secureContextAttribute; | 121 [SecureContext] attribute bool secureContextAttribute; |
121 [SecureContext,RuntimeEnabled=SecureFeature] void secureContextRuntimeEnable
dMethod(); | 122 [SecureContext,RuntimeEnabled=SecureFeature] void secureContextRuntimeEnable
dMethod(); |
122 [SecureContext,RuntimeEnabled=SecureFeature] attribute bool secureContextRun
timeEnabledAttribute; | 123 [SecureContext,RuntimeEnabled=SecureFeature] attribute bool secureContextRun
timeEnabledAttribute; |
123 [SecureContext,Exposed=Window] void secureContextWindowExposedMethod(); | 124 [SecureContext,Exposed=Window] void secureContextWindowExposedMethod(); |
124 [SecureContext,Exposed=Window] attribute bool secureContextWindowExposedAttr
ibute; | 125 [SecureContext,Exposed=Window] attribute bool secureContextWindowExposedAttr
ibute; |
125 [SecureContext,Exposed=Worker] void secureContextWorkerExposedMethod(); | 126 [SecureContext,Exposed=Worker] void secureContextWorkerExposedMethod(); |
126 [SecureContext,Exposed=Worker] attribute bool secureContextWorkerExposedAttr
ibute; | 127 [SecureContext,Exposed=Worker] attribute bool secureContextWorkerExposedAttr
ibute; |
127 [SecureContext,Exposed=Window,RuntimeEnabled=SecureFeature] void secureConte
xtWindowExposedRuntimeEnabledMethod(); | 128 [SecureContext,Exposed=Window,RuntimeEnabled=SecureFeature] void secureConte
xtWindowExposedRuntimeEnabledMethod(); |
128 [SecureContext,Exposed=Window,RuntimeEnabled=SecureFeature] attribute bool s
ecureContextWindowExposedRuntimeEnabledAttribute; | 129 [SecureContext,Exposed=Window,RuntimeEnabled=SecureFeature] attribute bool s
ecureContextWindowExposedRuntimeEnabledAttribute; |
129 [SecureContext,Exposed=Worker,RuntimeEnabled=SecureFeature] void secureConte
xtWorkerExposedRuntimeEnabledMethod(); | 130 [SecureContext,Exposed=Worker,RuntimeEnabled=SecureFeature] void secureConte
xtWorkerExposedRuntimeEnabledMethod(); |
130 [SecureContext,Exposed=Worker,RuntimeEnabled=SecureFeature] attribute bool s
ecureContextWorkerExposedRuntimeEnabledAttribute; | 131 [SecureContext,Exposed=Worker,RuntimeEnabled=SecureFeature] attribute bool s
ecureContextWorkerExposedRuntimeEnabledAttribute; |
131 }; | 132 }; |
132 | 133 |
133 TestInterface implements TestImplements; | 134 TestInterface implements TestImplements; |
134 // TestInterface implements TestImplements2; // at implement*ed* interface | 135 // TestInterface implements TestImplements2; // at implement*ed* interface |
135 TestInterface implements TestImplements3; | 136 TestInterface implements TestImplements3; |
OLD | NEW |