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 const float CONST_VALUE_25 = 1; | 60 const float CONST_VALUE_25 = 1; |
61 | 61 |
62 // Extended attributes | 62 // Extended attributes |
63 [DeprecateAs=Constant] const short DEPRECATED_CONSTANT = 1; | 63 [DeprecateAs=Constant] const short DEPRECATED_CONSTANT = 1; |
64 [MeasureAs=Constant] const short MEASURED_CONSTANT = 1; | 64 [MeasureAs=Constant] const short MEASURED_CONSTANT = 1; |
65 [RuntimeEnabled=FeatureName1] const short FEATURE1_ENABLED_CONST1 = 1; | 65 [RuntimeEnabled=FeatureName1] const short FEATURE1_ENABLED_CONST1 = 1; |
66 [RuntimeEnabled=FeatureName1] const short FEATURE1_ENABLED_CONST2 = 2; | 66 [RuntimeEnabled=FeatureName1] const short FEATURE1_ENABLED_CONST2 = 2; |
67 [RuntimeEnabled=FeatureName2] const short FEATURE2_ENABLED_CONST1 = 3; | 67 [RuntimeEnabled=FeatureName2] const short FEATURE2_ENABLED_CONST1 = 3; |
68 [RuntimeEnabled=FeatureName2] const short FEATURE2_ENABLED_CONST2 = 4; | 68 [RuntimeEnabled=FeatureName2] const short FEATURE2_ENABLED_CONST2 = 4; |
69 [RuntimeEnabled=FeatureName3] const short FEATURE3_ENABLED_CONST1 = 5; | 69 [RuntimeEnabled=FeatureName3] const short FEATURE3_ENABLED_CONST1 = 5; |
| 70 [RuntimeEnabled=FeatureName1, APIExperimentEnabled=FeatureName1] const short
FEATURE1_RUNTIME_AND_EXPERIMENT_ENABLED_CONST1 = 1; |
| 71 [RuntimeEnabled=FeatureName1, APIExperimentEnabled=FeatureName1] const short
FEATURE1_RUNTIME_AND_EXPERIMENT_ENABLED_CONST2 = 2; |
| 72 [RuntimeEnabled=FeatureName2, APIExperimentEnabled=FeatureName2] const short
FEATURE2_RUNTIME_AND_EXPERIMENT_ENABLED_CONST1 = 3; |
| 73 [RuntimeEnabled=FeatureName2, APIExperimentEnabled=FeatureName2] const short
FEATURE2_RUNTIME_AND_EXPERIMENT_ENABLED_CONST2 = 4; |
| 74 [RuntimeEnabled=FeatureName3, APIExperimentEnabled=FeatureName3] const short
FEATURE3_RUNTIME_AND_EXPERIMENT_ENABLED_CONST1 = 5; |
70 [Reflect=CONST_IMPL] const short CONST_JAVASCRIPT = 1; | 75 [Reflect=CONST_IMPL] const short CONST_JAVASCRIPT = 1; |
71 | 76 |
72 stringifier attribute DOMString stringifierAttribute; | 77 stringifier attribute DOMString stringifierAttribute; |
73 | 78 |
74 // Attributes | 79 // Attributes |
75 // | 80 // |
76 // Naming convention: | 81 // Naming convention: |
77 // [ExtAttr] attribute Type extAttrTypeNameAttribute; | 82 // [ExtAttr] attribute Type extAttrTypeNameAttribute; |
78 // E.g., | 83 // E.g., |
79 // [Foo] attribute DOMString? fooStringOrNullAttribute | 84 // [Foo] attribute DOMString? fooStringOrNullAttribute |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 [DeprecateAs=deprecatedTestInterfaceEmptyConstructorAttribute] attribute Tes
tInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribute; | 189 [DeprecateAs=deprecatedTestInterfaceEmptyConstructorAttribute] attribute Tes
tInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribute; |
185 [MeasureAs=FeatureName] attribute TestInterfaceEmptyConstructor measureAsFea
tureNameTestInterfaceEmptyConstructorAttribute; | 190 [MeasureAs=FeatureName] attribute TestInterfaceEmptyConstructor measureAsFea
tureNameTestInterfaceEmptyConstructorAttribute; |
186 [Custom] attribute object customObjectAttribute; | 191 [Custom] attribute object customObjectAttribute; |
187 [Custom=Getter] attribute long customGetterLongAttribute; | 192 [Custom=Getter] attribute long customGetterLongAttribute; |
188 [Custom=Getter] readonly attribute object customGetterReadonlyObjectAttribut
e; | 193 [Custom=Getter] readonly attribute object customGetterReadonlyObjectAttribut
e; |
189 [Custom=Setter] attribute long customSetterLongAttribute; | 194 [Custom=Setter] attribute long customSetterLongAttribute; |
190 [Conditional=CONDITION, Custom] attribute long customLongAttribute; | 195 [Conditional=CONDITION, Custom] attribute long customLongAttribute; |
191 [CustomElementCallbacks] readonly attribute long customElementsCallbacksRead
onlyLongAttribute; | 196 [CustomElementCallbacks] readonly attribute long customElementsCallbacksRead
onlyLongAttribute; |
192 [DeprecateAs=LongAttribute] attribute long deprecatedLongAttribute; | 197 [DeprecateAs=LongAttribute] attribute long deprecatedLongAttribute; |
193 [EnforceRange] attribute long enforceRangeLongAttribute; | 198 [EnforceRange] attribute long enforceRangeLongAttribute; |
| 199 [APIExperimentEnabled=FeatureName, RuntimeEnabled=FeatureName] attribute lon
g experimentRuntimeEnabledLongAttribute; |
| 200 [APIExperimentEnabled=FeatureName, Conditional=CONDITION, RuntimeEnabled=Fea
tureName] attribute long experimentConditionalRuntimeEnabledLongAttribute; |
194 [ImplementedAs=implementedAsName] attribute long implementedAsLongAttribute; | 201 [ImplementedAs=implementedAsName] attribute long implementedAsLongAttribute; |
195 [Custom, ImplementedAs=implementedAsNameWithCustom] attribute long customImp
lementedAsLongAttribute; | 202 [Custom, ImplementedAs=implementedAsNameWithCustom] attribute long customImp
lementedAsLongAttribute; |
196 [Custom=Getter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l
ong customGetterImplementedAsLongAttribute; | 203 [Custom=Getter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l
ong customGetterImplementedAsLongAttribute; |
197 [Custom=Setter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l
ong customSetterImplementedAsLongAttribute; | 204 [Custom=Setter, ImplementedAs=implementedAsNameWithCustomGetter] attribute l
ong customSetterImplementedAsLongAttribute; |
198 [MeasureAs=TestFeature] attribute long measureAsLongAttribute; | 205 [MeasureAs=TestFeature] attribute long measureAsLongAttribute; |
199 [NotEnumerable] attribute long notEnumerableLongAttribute; | 206 [NotEnumerable] attribute long notEnumerableLongAttribute; |
200 [PerWorldBindings] readonly attribute TestInterfaceEmpty perWorldBindingsRea
donlyTestInterfaceEmptyAttribute; | 207 [PerWorldBindings] readonly attribute TestInterfaceEmpty perWorldBindingsRea
donlyTestInterfaceEmptyAttribute; |
201 [LogActivity, LogAllWorlds, PerWorldBindings] attribute long activityLogging
AccessPerWorldBindingsLongAttribute; | 208 [LogActivity, LogAllWorlds, PerWorldBindings] attribute long activityLogging
AccessPerWorldBindingsLongAttribute; |
202 [LogActivity, PerWorldBindings] attribute long activityLoggingAccessForIsola
tedWorldsPerWorldBindingsLongAttribute; | 209 [LogActivity, PerWorldBindings] attribute long activityLoggingAccessForIsola
tedWorldsPerWorldBindingsLongAttribute; |
203 [LogActivity=GetterOnly, LogAllWorlds, PerWorldBindings] attribute long acti
vityLoggingGetterPerWorldBindingsLongAttribute; | 210 [LogActivity=GetterOnly, LogAllWorlds, PerWorldBindings] attribute long acti
vityLoggingGetterPerWorldBindingsLongAttribute; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 [TreatReturnedNullStringAs=Undefined] attribute USVString treatReturnedNullS
tringAsUndefinedUSVStringAttribute; | 263 [TreatReturnedNullStringAs=Undefined] attribute USVString treatReturnedNullS
tringAsUndefinedUSVStringAttribute; |
257 [LegacyInterfaceTypeChecking] attribute float legacyInterfaceTypeCheckingFlo
atAttribute; // nop for non-interface types | 264 [LegacyInterfaceTypeChecking] attribute float legacyInterfaceTypeCheckingFlo
atAttribute; // nop for non-interface types |
258 [LegacyInterfaceTypeChecking] attribute TestInterface legacyInterfaceTypeChe
ckingTestInterfaceAttribute; | 265 [LegacyInterfaceTypeChecking] attribute TestInterface legacyInterfaceTypeChe
ckingTestInterfaceAttribute; |
259 [LegacyInterfaceTypeChecking] attribute TestInterface? legacyInterfaceTypeCh
eckingTestInterfaceOrNullAttribute; | 266 [LegacyInterfaceTypeChecking] attribute TestInterface? legacyInterfaceTypeCh
eckingTestInterfaceOrNullAttribute; |
260 [Reflect, URL] attribute DOMString urlStringAttribute; | 267 [Reflect, URL] attribute DOMString urlStringAttribute; |
261 [Reflect=reflectUrlAttribute, URL] attribute DOMString urlStringAttribute; | 268 [Reflect=reflectUrlAttribute, URL] attribute DOMString urlStringAttribute; |
262 [Unforgeable] attribute long unforgeableLongAttribute; | 269 [Unforgeable] attribute long unforgeableLongAttribute; |
263 [Measure] attribute long measuredLongAttribute; | 270 [Measure] attribute long measuredLongAttribute; |
264 [SameObject] attribute TestInterface sameObjectAttribute; | 271 [SameObject] attribute TestInterface sameObjectAttribute; |
265 [Unscopeable] attribute long unscopeableLongAttribute; | 272 [Unscopeable] attribute long unscopeableLongAttribute; |
| 273 [Unscopeable, APIExperimentEnabled=FeatureName, RuntimeEnabled=FeatureName]
attribute long unscopeableExperimentEnabledLongAttribute; |
266 [Unscopeable, RuntimeEnabled=FeatureName] attribute long unscopeableRuntimeE
nabledLongAttribute; | 274 [Unscopeable, RuntimeEnabled=FeatureName] attribute long unscopeableRuntimeE
nabledLongAttribute; |
267 [Unscopeable] void unscopeableVoidMethod(); | 275 [Unscopeable] void unscopeableVoidMethod(); |
268 [Unscopeable, RuntimeEnabled=FeatureName] void unscopeableRuntimeEnabledVoid
Method(); | 276 [Unscopeable, RuntimeEnabled=FeatureName] void unscopeableRuntimeEnabledVoid
Method(); |
269 | 277 |
270 | 278 |
271 // Methods | 279 // Methods |
272 // | 280 // |
273 // Naming convention: | 281 // Naming convention: |
274 // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T
ype2 typeName2Arg); | 282 // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T
ype2 typeName2Arg); |
275 // E.g., | 283 // E.g., |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 [CheckSecurity=ReturnValue] void checkSecurityForNodeVoidMethod(); | 529 [CheckSecurity=ReturnValue] void checkSecurityForNodeVoidMethod(); |
522 [Conditional=CONDITION] void conditionalConditionVoidMethod(); | 530 [Conditional=CONDITION] void conditionalConditionVoidMethod(); |
523 [Conditional=CONDITION] static void conditionalConditionStaticVoidMethod(); | 531 [Conditional=CONDITION] static void conditionalConditionStaticVoidMethod(); |
524 [Custom] void customVoidMethod(); | 532 [Custom] void customVoidMethod(); |
525 [Custom=CallPrologue] void customCallPrologueVoidMethod(); | 533 [Custom=CallPrologue] void customCallPrologueVoidMethod(); |
526 [Custom=CallEpilogue] void customCallEpilogueVoidMethod(); | 534 [Custom=CallEpilogue] void customCallEpilogueVoidMethod(); |
527 [Conditional=CONDITION, Custom] void conditionalConditionCustomVoidMethod(); | 535 [Conditional=CONDITION, Custom] void conditionalConditionCustomVoidMethod(); |
528 [CustomElementCallbacks] void customElementCallbacksVoidMethod(); | 536 [CustomElementCallbacks] void customElementCallbacksVoidMethod(); |
529 [DeprecateAs=voidMethod] void deprecatedVoidMethod(); | 537 [DeprecateAs=voidMethod] void deprecatedVoidMethod(); |
530 [DoNotCheckSignature] void doNotCheckSignatureVoidMethod(); | 538 [DoNotCheckSignature] void doNotCheckSignatureVoidMethod(); |
| 539 [APIExperimentEnabled=FeatureName, RuntimeEnabled=FeatureName1] void experim
entEnabledVoidMethod(); |
| 540 [PerWorldBindings, APIExperimentEnabled=FeatureName, RuntimeEnabled=FeatureN
ame1] void perWorldBindingsExperimentEnabledVoidMethod(); |
| 541 [APIExperimentEnabled=FeatureName, RuntimeEnabled=FeatureName1] void experim
entEnabledOverloadedVoidMethod(DOMString stringArg); |
| 542 [APIExperimentEnabled=FeatureName, RuntimeEnabled=FeatureName1] void experim
entEnabledOverloadedVoidMethod(long longArg); |
| 543 [APIExperimentEnabled=FeatureName1, RuntimeEnabled=FeatureName1] void partia
llyExperimentEnabledOverloadedVoidMethod(DOMString stringArg); |
| 544 [APIExperimentEnabled=FeatureName2, RuntimeEnabled=FeatureName1] void partia
llyExperimentEnabledOverloadedVoidMethod(TestInterface testInterfaceArg); |
| 545 void partiallyExperimentEnabledOverloadedVoidMethod(long longArg, DOMString
stringArg); |
| 546 [APIExperimentEnabled=FeatureName3] void partiallyExperimentEnabledOverloade
dVoidMethod(long longArg, DOMString stringArg, TestInterface testInterfaceArg); |
531 [ImplementedAs=implementedAsMethodName] void implementedAsVoidMethod(); | 547 [ImplementedAs=implementedAsMethodName] void implementedAsVoidMethod(); |
532 [MeasureAs=TestFeature] void measureAsVoidMethod(); | 548 [MeasureAs=TestFeature] void measureAsVoidMethod(); |
533 [Measure] void measureMethod(); | 549 [Measure] void measureMethod(); |
534 [Measure] void measureOverloadedMethod(); | 550 [Measure] void measureOverloadedMethod(); |
535 [Measure] void measureOverloadedMethod(long arg); | 551 [Measure] void measureOverloadedMethod(long arg); |
536 [DeprecateAs=TestFeatureA] void DeprecateAsOverloadedMethod(); | 552 [DeprecateAs=TestFeatureA] void DeprecateAsOverloadedMethod(); |
537 [DeprecateAs=TestFeatureB] void DeprecateAsOverloadedMethod(long arg); | 553 [DeprecateAs=TestFeatureB] void DeprecateAsOverloadedMethod(long arg); |
538 [DeprecateAs=TestFeature] void DeprecateAsSameValueOverloadedMethod(); | 554 [DeprecateAs=TestFeature] void DeprecateAsSameValueOverloadedMethod(); |
539 [DeprecateAs=TestFeature] void DeprecateAsSameValueOverloadedMethod(long arg
); | 555 [DeprecateAs=TestFeature] void DeprecateAsSameValueOverloadedMethod(long arg
); |
540 [MeasureAs=TestFeatureA] void measureAsOverloadedMethod(); | 556 [MeasureAs=TestFeatureA] void measureAsOverloadedMethod(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 [ImplementedInPrivateScript] attribute DOMString stringAttribute; | 626 [ImplementedInPrivateScript] attribute DOMString stringAttribute; |
611 [ImplementedInPrivateScript] attribute Node nodeAttribute; | 627 [ImplementedInPrivateScript] attribute Node nodeAttribute; |
612 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl
y(short value1, short value2); | 628 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl
y(short value1, short value2); |
613 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo
rPrivateScriptOnly; | 629 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo
rPrivateScriptOnly; |
614 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv
ateScriptOnly(short value1, short value2); | 630 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv
ateScriptOnly(short value1, short value2); |
615 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString
attributeForPrivateScriptOnly; | 631 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString
attributeForPrivateScriptOnly; |
616 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; | 632 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; |
617 | 633 |
618 maplike<long, DOMStringOrDouble>; | 634 maplike<long, DOMStringOrDouble>; |
619 }; | 635 }; |
OLD | NEW |