| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Attributes | 60 // Attributes |
| 61 // TestInterfaceEmpty is used as a stub interface type, for testing behavior | 61 // TestInterfaceEmpty is used as a stub interface type, for testing behavior |
| 62 // that should not depend on particular type (beyond "interface or not"). | 62 // that should not depend on particular type (beyond "interface or not"). |
| 63 // read only | 63 // read only |
| 64 readonly attribute DOMString readonlyStringAttribute; | 64 readonly attribute DOMString readonlyStringAttribute; |
| 65 readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute; | 65 readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute; |
| 66 readonly attribute long readonlyLongAttribute; | 66 readonly attribute long readonlyLongAttribute; |
| 67 // Basic types | 67 // Basic types |
| 68 attribute Date dateAttribute; | 68 attribute Date dateAttribute; |
| 69 attribute DOMString stringAttribute; | 69 attribute DOMString stringAttribute; |
| 70 readonly attribute DOMTimeStamp readonlyDOMTimeStampAttribute; // FIXME: Pe
rl CG doesn't translate typedef DOMTimeStamp -> unsigned long long; remove reado
nly once moved to Python-only | 70 readonly attribute DOMTimeStamp readonlyDOMTimeStampAttribute; // FIXME: Per
l CG doesn't translate typedef DOMTimeStamp -> unsigned long long; remove readon
ly once moved to Python-only |
| 71 attribute boolean booleanAttribute; | 71 attribute boolean booleanAttribute; |
| 72 attribute byte byteAttribute; | 72 attribute byte byteAttribute; |
| 73 attribute double doubleAttribute; | 73 attribute double doubleAttribute; |
| 74 attribute float floatAttribute; | 74 attribute float floatAttribute; |
| 75 attribute long longAttribute; | 75 attribute long longAttribute; |
| 76 attribute long long longLongAttribute; | 76 attribute long long longLongAttribute; |
| 77 attribute octet octetAttribute; | 77 attribute octet octetAttribute; |
| 78 attribute short shortAttribute; | 78 attribute short shortAttribute; |
| 79 attribute unsigned long unsignedLongAttribute; | 79 attribute unsigned long unsignedLongAttribute; |
| 80 attribute unsigned long long unsignedLongLongAttribute; | 80 attribute unsigned long long unsignedLongLongAttribute; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 attribute TestObjectAConstructor testObjectAConstructorAttribute; | 132 attribute TestObjectAConstructor testObjectAConstructorAttribute; |
| 133 // Exceptional type | 133 // Exceptional type |
| 134 attribute EventHandler eventHandlerAttribute; | 134 attribute EventHandler eventHandlerAttribute; |
| 135 | 135 |
| 136 // Extended attributes | 136 // Extended attributes |
| 137 [ActivityLogging=ForAllWorlds] attribute long activityLoggingAccessForAllWor
ldsLongAttribute; | 137 [ActivityLogging=ForAllWorlds] attribute long activityLoggingAccessForAllWor
ldsLongAttribute; |
| 138 [ActivityLogging=GetterForAllWorlds] attribute long activityLoggingGetterFor
AllWorldsLongAttribute; | 138 [ActivityLogging=GetterForAllWorlds] attribute long activityLoggingGetterFor
AllWorldsLongAttribute; |
| 139 [ActivityLogging=SetterForAllWorlds] attribute long activityLoggingSetterFor
AllWorldsLongAttribute; | 139 [ActivityLogging=SetterForAllWorlds] attribute long activityLoggingSetterFor
AllWorldsLongAttribute; |
| 140 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute; | 140 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute; |
| 141 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu
te; | 141 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu
te; |
| 142 [CheckSecurity=Node] readonly attribute Document checkSecurityForNodeReadonl
yDocumentAttribute; // All uses are read only | 142 [CheckSecurity=Node] readonly attribute Document checkSecurityForNodeReadonl
yDocumentAttribute; // All uses are read only |
| 143 [Conditional=CONDITION] attribute long conditionalLongAttribute; | 143 [Conditional=CONDITION] attribute long conditionalLongAttribute; |
| 144 [Conditional=CONDITION_1&CONDITION_2] attribute long conditionalAndLongAttri
bute; | 144 [Conditional=CONDITION_1&CONDITION_2] attribute long conditionalAndLongAttri
bute; |
| 145 [Conditional=CONDITION_1|CONDITION_2] attribute long conditionalOrLongAttrib
ute; | 145 [Conditional=CONDITION_1|CONDITION_2] attribute long conditionalOrLongAttrib
ute; |
| 146 [Custom] attribute object customObjectAttribute; | 146 [Custom] attribute object customObjectAttribute; |
| 147 [Custom=Getter] attribute long customGetterLongAttribute; | 147 [Custom=Getter] attribute long customGetterLongAttribute; |
| 148 [Custom=Getter] readonly attribute object customGetterReadonlyObjectAttribut
e; | 148 [Custom=Getter] readonly attribute object customGetterReadonlyObjectAttribut
e; |
| 149 [Custom=Setter] attribute long customSetterLongAttribute; | 149 [Custom=Setter] attribute long customSetterLongAttribute; |
| 150 [Conditional=CONDITION, Custom] attribute long customLongAttribute; | 150 [Conditional=CONDITION, Custom] attribute long customLongAttribute; |
| 151 [CustomElementCallbacks] readonly attribute long customElementsCallbacksRead
onlyLongAttribute; | 151 [CustomElementCallbacks] readonly attribute long customElementsCallbacksRead
onlyLongAttribute; |
| 152 [DeprecateAs=LongAttribute] attribute long deprecatedLongAttribute; | 152 [DeprecateAs=LongAttribute] attribute long deprecatedLongAttribute; |
| 153 [EnforceRange] attribute long enforceRangeLongAttribute; | 153 [EnforceRange] attribute long enforceRangeLongAttribute; |
| 154 [ExposeJSAccessors] attribute long exposeJSAccessorsLongAttribute; | 154 [ExposeJSAccessors] attribute long exposeJSAccessorsLongAttribute; |
| 155 [ImplementedAs=implementedAsName] attribute long implementedAsLongAttribute; | 155 [ImplementedAs=implementedAsName] attribute long implementedAsLongAttribute; |
| 156 [Custom, ImplementedAs=implementedAsNameWithCustom] attribute long customImp
lementedAsLongAttribute; | 156 [Custom, ImplementedAs=implementedAsNameWithCustom] attribute long customImp
lementedAsLongAttribute; |
| 157 attribute TestInterfacePython testInterfacePythonAttribute; // interface ty
pe that itself has [ImplementedAs] (not self; self-reference test at TestInterfa
cePython) | |
| 158 [Custom=Getter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l
ong customGetterImplementedAsLongAttribute; | 157 [Custom=Getter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l
ong customGetterImplementedAsLongAttribute; |
| 159 [Custom=Setter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l
ong customSetterImplementedAsLongAttribute; | 158 [Custom=Setter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l
ong customSetterImplementedAsLongAttribute; |
| 160 [MeasureAs=TestFeature] attribute long measureAsLongAttribute; | 159 [MeasureAs=TestFeature] attribute long measureAsLongAttribute; |
| 161 [NotEnumerable] attribute long notEnumerableLongAttribute; | 160 [NotEnumerable] attribute long notEnumerableLongAttribute; |
| 162 [PerContextEnabled=FeatureName] attribute long perContextEnabledLongAttribut
e; | 161 [PerContextEnabled=FeatureName] attribute long perContextEnabledLongAttribut
e; |
| 163 [PerWorldBindings] attribute long perWorldBindingsLongAttribute; | 162 [PerWorldBindings] attribute long perWorldBindingsLongAttribute; |
| 164 [PerWorldBindings] readonly attribute long perWorldBindingsReadonlyLongAttri
bute; // Separate read only attribute to check attribute configuration | 163 [PerWorldBindings] readonly attribute long perWorldBindingsReadonlyLongAttri
bute; // Separate read only attribute to check attribute configuration |
| 165 [ActivityLogging=ForAllWorlds, PerWorldBindings] attribute long activityLogg
ingAccessPerWorldBindingsLongAttribute; | 164 [ActivityLogging=ForAllWorlds, PerWorldBindings] attribute long activityLogg
ingAccessPerWorldBindingsLongAttribute; |
| 166 [ActivityLogging=ForIsolatedWorlds, PerWorldBindings] attribute long activit
yLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute; | 165 [ActivityLogging=ForIsolatedWorlds, PerWorldBindings] attribute long activit
yLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute; |
| 167 [ActivityLogging=GetterForAllWorlds, PerWorldBindings] attribute long activi
tyLoggingGetterPerWorldBindingsLongAttribute; | 166 [ActivityLogging=GetterForAllWorlds, PerWorldBindings] attribute long activi
tyLoggingGetterPerWorldBindingsLongAttribute; |
| 168 [ActivityLogging=GetterForIsolatedWorlds, PerWorldBindings] attribute long a
ctivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute; | 167 [ActivityLogging=GetterForIsolatedWorlds, PerWorldBindings] attribute long a
ctivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute; |
| 169 [PutForwards=href] readonly attribute TestNode location; | 168 [PutForwards=href] readonly attribute TestNode location; |
| 170 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; | 169 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; |
| 171 [PutForwards=hrefCallWith] readonly attribute TestNode locationWithCallWith; | 170 [PutForwards=hrefCallWith] readonly attribute TestNode locationWithCallWith; |
| 172 [PerWorldBindings, PutForwards=href] readonly attribute TestNode locationWit
hPerWorldBindings; | 171 [PerWorldBindings, PutForwards=href] readonly attribute TestNode locationWit
hPerWorldBindings; |
| 173 [RaisesException] attribute long raisesExceptionLongAttribute; | 172 [RaisesException] attribute long raisesExceptionLongAttribute; |
| 174 [RaisesException=Getter] attribute long raisesExceptionGetterLongAttribute; | 173 [RaisesException=Getter] attribute long raisesExceptionGetterLongAttribute; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 197 [Reflect, ReflectOnly="rsa"|"dsa", ReflectMissing="rsa"] attribute DOMString
limitedWithMissingDefaultAttribute; | 196 [Reflect, ReflectOnly="rsa"|"dsa", ReflectMissing="rsa"] attribute DOMString
limitedWithMissingDefaultAttribute; |
| 198 [Reflect, ReflectOnly="ltr"|"rtl"|"auto", ReflectMissing="auto", ReflectInva
lid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute; | 197 [Reflect, ReflectOnly="ltr"|"rtl"|"auto", ReflectMissing="auto", ReflectInva
lid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute; |
| 199 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous
", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute
; | 198 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous
", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute
; |
| 200 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty="
empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D
OMString limitedWithEmptyMissingInvalidAttribute; | 199 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty="
empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D
OMString limitedWithEmptyMissingInvalidAttribute; |
| 201 | 200 |
| 202 [Replaceable] readonly attribute long replaceableReadonlyLongAttribute; | 201 [Replaceable] readonly attribute long replaceableReadonlyLongAttribute; |
| 203 [RuntimeEnabled=FeatureName] attribute long runtimeEnabledLongAttribute; | 202 [RuntimeEnabled=FeatureName] attribute long runtimeEnabledLongAttribute; |
| 204 [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition
alRuntimeEnabledLongAttribute; | 203 [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition
alRuntimeEnabledLongAttribute; |
| 205 [SetterCallWith=ActiveWindow&FirstWindow] attribute DOMString setterCallWith
ActiveWindowAndFirstWindowStringAttribute; | 204 [SetterCallWith=ActiveWindow&FirstWindow] attribute DOMString setterCallWith
ActiveWindowAndFirstWindowStringAttribute; |
| 206 [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio
nContextStringAttribute; | 205 [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio
nContextStringAttribute; |
| 207 [StrictTypeChecking] attribute float strictTypeCheckingFloatAttribute; // n
op for non-interface types | 206 [StrictTypeChecking] attribute float strictTypeCheckingFloatAttribute; // no
p for non-interface types |
| 208 [StrictTypeChecking] attribute TestInterface strictTypeCheckingTestInterface
Attribute; | 207 [StrictTypeChecking] attribute TestInterface strictTypeCheckingTestInterface
Attribute; |
| 209 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr
ibute; | 208 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr
ibute; |
| 210 [TreatReturnedNullStringAs=Null] attribute DOMString treatReturnedNullString
AsNullStringAttribute; | 209 [TreatReturnedNullStringAs=Null] attribute DOMString treatReturnedNullString
AsNullStringAttribute; |
| 211 [TreatReturnedNullStringAs=Undefined] attribute DOMString treatReturnedNullS
tringAsUndefinedStringAttribute; | 210 [TreatReturnedNullStringAs=Undefined] attribute DOMString treatReturnedNullS
tringAsUndefinedStringAttribute; |
| 212 [Reflect, URL] attribute DOMString urlStringAttribute; | 211 [Reflect, URL] attribute DOMString urlStringAttribute; |
| 213 [Reflect=ReflectUrlAttribute, URL] attribute DOMString urlStringAttribute; | 212 [Reflect=ReflectUrlAttribute, URL] attribute DOMString urlStringAttribute; |
| 214 [Unforgeable] attribute long unforgeableLongAttribute; | 213 [Unforgeable] attribute long unforgeableLongAttribute; |
| 215 [Reflect="ReflectUrlAttributeAsAString"] attribute DOMString anotherStringAt
tribute; | 214 [Reflect="ReflectUrlAttributeAsAString"] attribute DOMString anotherStringAt
tribute; |
| 216 | 215 |
| 217 | 216 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 231 long longMethod(); | 230 long longMethod(); |
| 232 long long longLongMethod(); | 231 long long longLongMethod(); |
| 233 octet octetMethod(); | 232 octet octetMethod(); |
| 234 short shortMethod(); | 233 short shortMethod(); |
| 235 unsigned long unsignedLongMethod(); | 234 unsigned long unsignedLongMethod(); |
| 236 unsigned long long unsignedLongLongMethod(); | 235 unsigned long long unsignedLongLongMethod(); |
| 237 unsigned short unsignedShortMethod(); | 236 unsigned short unsignedShortMethod(); |
| 238 | 237 |
| 239 void voidMethodDateArg(Date dateArg); | 238 void voidMethodDateArg(Date dateArg); |
| 240 void voidMethodStringArg(DOMString stringArg); | 239 void voidMethodStringArg(DOMString stringArg); |
| 241 // void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg); // FIXME:
Perl CG doesn't translate typedef DOMTimeStamp -> unsigned long long; uncomment
once moved to Python-only | 240 // void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg); // FIXME: P
erl CG doesn't translate typedef DOMTimeStamp -> unsigned long long; uncomment o
nce moved to Python-only |
| 242 void voidMethodBooleanArg(boolean booleanArg); | 241 void voidMethodBooleanArg(boolean booleanArg); |
| 243 void voidMethodByteArg(byte byteArg); | 242 void voidMethodByteArg(byte byteArg); |
| 244 void voidMethodDoubleArg(double doubleArg); | 243 void voidMethodDoubleArg(double doubleArg); |
| 245 void voidMethodFloatArg(float floatArg); | 244 void voidMethodFloatArg(float floatArg); |
| 246 void voidMethodLongArg(long longArg); | 245 void voidMethodLongArg(long longArg); |
| 247 void voidMethodLongLongArg(long long longLongArg); | 246 void voidMethodLongLongArg(long long longLongArg); |
| 248 void voidMethodOctetArg(octet octetArg); | 247 void voidMethodOctetArg(octet octetArg); |
| 249 void voidMethodShortArg(short shortArg); | 248 void voidMethodShortArg(short shortArg); |
| 250 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg); | 249 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg); |
| 251 void voidMethodUnsignedLongLongArg(unsigned long long unsignedLongLongArg); | 250 void voidMethodUnsignedLongLongArg(unsigned long long unsignedLongLongArg); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 [RaisesException] TestInterfaceEmpty raisesExceptionTestInterfaceEmptyVoidMe
thod(); | 423 [RaisesException] TestInterfaceEmpty raisesExceptionTestInterfaceEmptyVoidMe
thod(); |
| 425 [ReadOnly] void readOnlyVoidMethod(); | 424 [ReadOnly] void readOnlyVoidMethod(); |
| 426 [NotEnumerable, ReadOnly] void notEnumerableReadOnlyVoidMethod(); | 425 [NotEnumerable, ReadOnly] void notEnumerableReadOnlyVoidMethod(); |
| 427 [RuntimeEnabled=FeatureName] void runtimeEnabledVoidMethod(); | 426 [RuntimeEnabled=FeatureName] void runtimeEnabledVoidMethod(); |
| 428 [PerWorldBindings, RuntimeEnabled=FeatureName] void perWorldBindingsRuntimeE
nabledVoidMethod(); | 427 [PerWorldBindings, RuntimeEnabled=FeatureName] void perWorldBindingsRuntimeE
nabledVoidMethod(); |
| 429 [StrictTypeChecking] void strictTypeCheckingVoidMethodTestInterfaceEmptyArg(
TestInterfaceEmpty testInterfaceEmptyArg); | 428 [StrictTypeChecking] void strictTypeCheckingVoidMethodTestInterfaceEmptyArg(
TestInterfaceEmpty testInterfaceEmptyArg); |
| 430 [StrictTypeChecking] void strictTypeCheckingVoidMethodNullableTestInterfaceE
mptyArg(TestInterfaceEmpty? testInterfaceEmptyArg); | 429 [StrictTypeChecking] void strictTypeCheckingVoidMethodNullableTestInterfaceE
mptyArg(TestInterfaceEmpty? testInterfaceEmptyArg); |
| 431 [TreatReturnedNullStringAs=Null] DOMString treatReturnedNullStringAsNullStri
ngMethod(); | 430 [TreatReturnedNullStringAs=Null] DOMString treatReturnedNullStringAsNullStri
ngMethod(); |
| 432 [TreatReturnedNullStringAs=Undefined] DOMString treatReturnedNullStringAsUnd
efinedStringMethod(); | 431 [TreatReturnedNullStringAs=Undefined] DOMString treatReturnedNullStringAsUnd
efinedStringMethod(); |
| 433 [Unforgeable] void unforgeableVoidMethod(); | 432 [Unforgeable] void unforgeableVoidMethod(); |
| 433 |
| 434 // Extended attributes on referenced interfaces |
| 435 // (not self; self-reference tests at interface themselves) |
| 436 attribute TestInterfacePython testInterfacePythonAttribute; // [ImplementedA
s] |
| 437 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedAttrib
ute; // [GarbageCollected] |
| 434 }; | 438 }; |
| OLD | NEW |