| OLD | NEW |
| 1 # | 1 # |
| 2 # This file describes all Blink IDL extended attributes and allowed values. | 2 # This file describes all Blink IDL extended attributes and allowed values. |
| 3 # If any IDL file uses an extended attribute or values not listed below, the | 3 # If any IDL file uses an extended attribute or values not listed below, the |
| 4 # build will fail. | 4 # build will fail. |
| 5 # If you would like to add a new extended attribute or value, please: | 5 # If you would like to add a new extended attribute or value, please: |
| 6 # (1) add the extended attribute or value to this file | 6 # (1) add the extended attribute or value to this file |
| 7 # (2) add an explanation to the Blink IDL extended attributes document: | 7 # (2) add an explanation to the Blink IDL extended attributes document: |
| 8 # http://www.chromium.org/blink/webidl/blink-idl-extended-attributes | 8 # idl-extended-attributes.md (in this directory) |
| 9 # (3) add appropriate test cases to run-bindings-tests | 9 # (3) add appropriate test cases to run-bindings-tests |
| 10 # | 10 # |
| 11 # The syntax of this file is as follows: | 11 # The syntax of this file is as follows: |
| 12 # - One extended attribute per one line: Name and (optionally) Values. | 12 # - One extended attribute per one line: Name and (optionally) Values. |
| 13 # - "Attr" means that the Attr does not take a value, i.e. [Attr]. | 13 # - "Attr" means that the Attr does not take a value, i.e. [Attr]. |
| 14 # - "Attr=X" means that Attr takes a required value, which must be X; | 14 # - "Attr=X" means that Attr takes a required value, which must be X; |
| 15 # i.e. [Attr=X]. | 15 # i.e. [Attr=X]. |
| 16 # - "Attr=X|Y|Z" means that Attr takes a required value, and the valid | 16 # - "Attr=X|Y|Z" means that Attr takes a required value, and the valid |
| 17 # values are X, Y, and Z, and combinations thereof; | 17 # values are X, Y, and Z, and combinations thereof; |
| 18 # e.g. [Attr=X], [Attr=Y], [Attr=X|Z]. | 18 # e.g. [Attr=X], [Attr=Y], [Attr=X|Z]. |
| 19 # The separator must be | or &, so [Attr=X&Z] is also valid; the | 19 # The separator must be | or &, so [Attr=X&Z] is also valid. |
| 20 # separator makes a difference for Conditional, but otherwise is simply | |
| 21 # a style convention. | |
| 22 # - "Attr=|X|Y|Z" means that Attr takes an optional value, whose valid | 20 # - "Attr=|X|Y|Z" means that Attr takes an optional value, whose valid |
| 23 # values (if present) are X, Y, and Z, and combinations thereof; e.g. | 21 # values (if present) are X, Y, and Z, and combinations thereof; e.g. |
| 24 # [Attr], [Attr=X], [Attr=Y], [Attr=X|Z], [Attr=X|Y|Z], [Attr=X&Z]. | 22 # [Attr], [Attr=X], [Attr=Y], [Attr=X|Z], [Attr=X|Y|Z], [Attr=X&Z]. |
| 25 # Note that including an empty value in the list, as in [Attr=X||Y], | 23 # Note that including an empty value in the list, as in [Attr=X||Y], |
| 26 # is NOT valid: the value is optional, but empty values are not allowed. | 24 # is NOT valid: the value is optional, but empty values are not allowed. |
| 27 # - "Attr=*" means that Attr takes a required value, which can be | 25 # - "Attr=*" means that Attr takes a required value, which can be |
| 28 # arbitrary, and combinations thereof, e.g. [Attr=IndexedDB], | 26 # arbitrary, and combinations thereof, e.g. [Attr=IndexedDB], |
| 29 # [Attr=DeleteFunction], [Attr=X|Y]. | 27 # [Attr=DeleteFunction], [Attr=X|Y]. |
| 30 # - "Attr=|*" means that Attr takes an optional value, which can be | 28 # - "Attr=|*" means that Attr takes an optional value, which can be |
| 31 # arbitrary, e.g. [Attr], [Attr=X]. | 29 # arbitrary, e.g. [Attr], [Attr=X]. |
| 32 # - "Attr=X|*" means that Attr takes an required value, which can be | 30 # - "Attr=X|*" means that Attr takes an required value, which can be |
| 33 # arbitrary, but that "X" is standard, e.g. [Attr=X], [Attr=Foo]. | 31 # arbitrary, but that "X" is standard, e.g. [Attr=X], [Attr=Foo]. |
| 34 # | 32 # |
| 35 | 33 |
| 36 ActiveDOMObject | |
| 37 CachedAttribute=* | 34 CachedAttribute=* |
| 38 CallWith=ExecutionContext|ScriptState|ScriptArguments|ActiveWindow|FirstWindow|T
hisValue | 35 CallWith=ExecutionContext|ScriptState|ScriptArguments|ActiveWindow|FirstWindow|T
hisValue |
| 39 CheckSecurity=Frame|Node|Window | 36 CheckSecurity=Receiver|ReturnValue |
| 40 Clamp | 37 Clamp |
| 41 Conditional=* | |
| 42 Constructor | 38 Constructor |
| 43 # FIXME: remove [ConstructorCallWith=Document], as can instead use | 39 # FIXME: remove [ConstructorCallWith=Document], as can instead use |
| 44 # [ConstructorCallWith=ExecutionContext] + toDocument(executionContext) | 40 # [ConstructorCallWith=ExecutionContext] + toDocument(executionContext) |
| 45 ConstructorCallWith=ExecutionContext|ScriptState|Document | 41 ConstructorCallWith=ExecutionContext|ScriptState|Document |
| 46 Custom=|Getter|Setter|LegacyCallAsFunction|VisitDOMWrapper|PropertyGetter|Proper
tyEnumerator|PropertyQuery|CallPrologue|CallEpilogue | 42 Custom=|Getter|Setter|LegacyCallAsFunction|VisitDOMWrapper|PropertyGetter|Proper
tyEnumerator|PropertyQuery|CallPrologue|CallEpilogue |
| 47 CustomConstructor | 43 CustomConstructor |
| 48 CustomElementCallbacks | 44 CustomElementCallbacks |
| 49 # Dartium specific attributes. | 45 # Dartium specific attributes. |
| 50 # DartCustom can have no value or New if New an additional method is added (V8 w
ill not see this method) | 46 # DartCustom can have no value or New if New an additional method is added (V8 w
ill not see this method) |
| 51 DartCustom=|New|Setter|Getter | 47 DartCustom=|New|Setter|Getter |
| (...skipping 12 matching lines...) Expand all Loading... |
| 64 Callback | 60 Callback |
| 65 # TODO(terry): Used in dart.idl (look at eliminating). | 61 # TODO(terry): Used in dart.idl (look at eliminating). |
| 66 DartStrictTypeChecking | 62 DartStrictTypeChecking |
| 67 # End of Dartium attributes. | 63 # End of Dartium attributes. |
| 68 Default=Undefined | 64 Default=Undefined |
| 69 DependentLifetime | 65 DependentLifetime |
| 70 DeprecateAs=* | 66 DeprecateAs=* |
| 71 DoNotCheckConstants | 67 DoNotCheckConstants |
| 72 DoNotCheckSecurity=|Setter | 68 DoNotCheckSecurity=|Setter |
| 73 DoNotCheckSignature | 69 DoNotCheckSignature |
| 74 DoNotExposeJSAccessors | |
| 75 EnforceRange | 70 EnforceRange |
| 76 ExposeJSAccessors | |
| 77 Exposed=* | 71 Exposed=* |
| 72 FlexibleArrayBufferView |
| 78 GarbageCollected | 73 GarbageCollected |
| 79 Global=|* | 74 Global=|* |
| 80 Immutable | |
| 81 ImplementedAs=* | 75 ImplementedAs=* |
| 82 ImplementedInPrivateScript | 76 ImplementedInPrivateScript |
| 83 Iterable | 77 Iterable |
| 84 LegacyInterfaceTypeChecking | 78 LegacyInterfaceTypeChecking |
| 85 LegacyTreatAsPartialInterface | 79 LegacyTreatAsPartialInterface |
| 86 LenientThis | 80 LenientThis |
| 87 LogActivity=|GetterOnly|SetterOnly | 81 LogActivity=|GetterOnly|SetterOnly |
| 88 LogAllWorlds | 82 LogAllWorlds |
| 89 NewObject | 83 NewObject |
| 90 Measure | 84 Measure |
| 91 MeasureAs=* | 85 MeasureAs=* |
| 92 NamedConstructor=* | 86 NamedConstructor=* |
| 93 NoImplHeader | 87 NoImplHeader |
| 94 NoInterfaceObject | 88 NoInterfaceObject |
| 95 NotEnumerable | 89 NotEnumerable |
| 96 OnlyExposedToPrivateScript | 90 OnlyExposedToPrivateScript |
| 91 OriginTrialEnabled=* |
| 97 OverrideBuiltins | 92 OverrideBuiltins |
| 98 PartialInterfaceImplementedAs=* | 93 PartialInterfaceImplementedAs=* |
| 99 PermissiveDictionaryConversion | 94 PermissiveDictionaryConversion |
| 100 PerWorldBindings | 95 PerWorldBindings |
| 101 PostMessage | 96 PostMessage |
| 102 PrimaryGlobal=|* | 97 PrimaryGlobal=|* |
| 103 PutForwards=* | 98 PutForwards=* |
| 104 RaisesException=|Getter|Setter|Constructor | 99 RaisesException=|Getter|Setter|Constructor |
| 105 Reflect=|* | 100 Reflect=|* |
| 106 ReflectEmpty=* | 101 ReflectEmpty=* |
| 107 ReflectInvalid=* | 102 ReflectInvalid=* |
| 108 ReflectMissing=* | 103 ReflectMissing=* |
| 109 ReflectOnly=* | 104 ReflectOnly=* |
| 110 Replaceable | 105 Replaceable |
| 111 # Valid values for [RuntimeEnabled] are the Runtime Enabled Features, listed in | 106 # Valid values for [RuntimeEnabled] are the Runtime Enabled Features, listed in |
| 112 # Source/core/page/RuntimeEnabledFeatures.in | 107 # Source/core/page/RuntimeEnabledFeatures.in |
| 113 RuntimeEnabled=* | 108 RuntimeEnabled=* |
| 114 SameObject | 109 SameObject |
| 115 SetWrapperReferenceFrom=* | 110 SetWrapperReferenceFrom=* |
| 116 SetWrapperReferenceTo=* | 111 SetWrapperReferenceTo=* |
| 117 SetterCallWith=ExecutionContext|ScriptArguments|ActiveWindow|FirstWindow | 112 SetterCallWith=ExecutionContext|ScriptArguments|ActiveWindow|FirstWindow |
| 118 TreatNullAs=NullString|EmptyString | 113 TreatNullAs=NullString|EmptyString |
| 119 TreatReturnedNullStringAs=Null|Undefined | |
| 120 TreatUndefinedAs=NullString | 114 TreatUndefinedAs=NullString |
| 121 TypeChecking=Interface | |
| 122 URL | 115 URL |
| 123 Unforgeable | 116 Unforgeable |
| 124 Unscopeable | 117 Unscopeable |
| 125 WillBeGarbageCollected | 118 WillBeGarbageCollected |
| OLD | NEW |