Changes between Version 91 and Version 92 of WebKitIDL
- Timestamp:
- May 8, 2013, 12:24:11 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebKitIDL
v91 v92 86 86 attribute Node parentNode; 87 87 attribute [TreatReturnedNullStringAs=Null] DOMString nodeName; 88 [Custom] Node appendChild( in[CustomReturn] Node newChild);88 [Custom] Node appendChild([CustomReturn] Node newChild); 89 89 void addEventListener(DOMString type, EventListener listener, optional boolean useCapture); 90 90 }; … … 124 124 const unsigned long value = 12345; 125 125 attribute [IDL_ATTRIBUTE_ON_ATTRIBUTE1, IDL_ATTRIBUTE_ON_ATTRIBUTE2, ...] Node node; 126 [IDL_ATTRIBUTE_ON_METHOD1, IDL_ATTRIBUTE_ON_METHOD2, ...] void func( in[IDL_ATTRIBUTE_ON_PARAMETER1, IDL_ATTRIBUTE_ON_PARAMETER2, ...] int param, ...);126 [IDL_ATTRIBUTE_ON_METHOD1, IDL_ATTRIBUTE_ON_METHOD2, ...] void func([IDL_ATTRIBUTE_ON_PARAMETER1, IDL_ATTRIBUTE_ON_PARAMETER2, ...] int param, ...); 127 127 }; 128 128 } … … 135 135 const unsigned long value = 12345; 136 136 attribute [IDL_ATTRIBUTE_ON_ATTRIBUTE1, IDL_ATTRIBUTE_ON_ATTRIBUTE2, ...] Node node; 137 [IDL_ATTRIBUTE_ON_METHOD1, IDL_ATTRIBUTE_ON_METHOD2, ...] void func( in[IDL_ATTRIBUTE_ON_PARAMETER1, IDL_ATTRIBUTE_ON_PARAMETER2, ...] int param, ...);137 [IDL_ATTRIBUTE_ON_METHOD1, IDL_ATTRIBUTE_ON_METHOD2, ...] void func([IDL_ATTRIBUTE_ON_PARAMETER1, IDL_ATTRIBUTE_ON_PARAMETER2, ...] int param, ...); 138 138 }; 139 139 } … … 255 255 {{{ 256 256 attribute [TreatNullAs=NullString] DOMString str; 257 void func( in[TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString str);257 void func([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString str); 258 258 }}} 259 259 … … 386 386 {{{ 387 387 interface XXX { 388 [JSCustom] void func(in int a, inint b);388 [JSCustom] void func(int a, int b); 389 389 }; 390 390 }}} … … 434 434 {{{ 435 435 interface XXX { 436 [V8Custom] void func(in int a, inint b);436 [V8Custom] void func(int a, int b); 437 437 }; 438 438 }}} … … 490 490 interface HTMLFoo { 491 491 attribute [CallWith=ScriptExecutionContext] DOMString str; 492 [CallWith=ScriptExecutionContext] void func1(in int a, inint b);493 [CallWith=ScriptState] void func2(in int a, inint b);494 [CallWith=ScriptArguments|CallStack] void func3(in int a, inint b);495 [CallWith=CallStack|ScriptArguments] void func4(in int a, inint b);492 [CallWith=ScriptExecutionContext] void func1(int a, int b); 493 [CallWith=ScriptState] void func2(int a, int b); 494 [CallWith=ScriptArguments|CallStack] void func3(int a, int b); 495 [CallWith=CallStack|ScriptArguments] void func4(int a, int b); 496 496 }; 497 497 }}} … … 530 530 {{{ 531 531 interface CanvasFoo { 532 void setColor( in[StrictTypeChecking] DOMString color);533 void setColor( infloat grayLevel);532 void setColor([StrictTypeChecking] DOMString color); 533 void setColor(float grayLevel); 534 534 }; 535 535 }}} … … 773 773 {{{ 774 774 interface [ 775 Constructor( in float x, in float y, inDOMString str),775 Constructor(float x, float y, DOMString str), 776 776 ConstructorRaisesException, 777 777 CallWith=ScriptExecutionContext|ScriptState … … 780 780 }}} 781 781 782 [Constructor( in float x, in float y, inDOMString str)] means that the interface has a constructor783 and the constructor signature is ( in float x, in float y, inDOMString str).782 [Constructor(float x, float y, DOMString str)] means that the interface has a constructor 783 and the constructor signature is (float x, float y, DOMString str). 784 784 Specifically, JavaScript can create a DOM object of XXX by the following code: 785 785 {{{ … … 956 956 957 957 X of [ConstructorParameters=X] is the maximum number of arguments, including optional arguments. 958 For example, if a constructor signature is [Constructor(in int a, in int b, in [Default=Undefined] optional int c, in[Default=DefaultIsUndefined] optional int d)], then X is 4.958 For example, if a constructor signature is [Constructor(int a, int b, [Default=Undefined] optional int c, [Default=DefaultIsUndefined] optional int d)], then X is 4. 959 959 960 960 You do not need to specify [ConstructorParameters] if the interface does not have any of [JSCustomConstructor], [V8CustomConstructor] or [CustomConstructor]. … … 1361 1361 {{{ 1362 1362 interface Worker { 1363 void postMessage( in [TransferList=transfer] SerializedScriptValue data, in[Default=Undefined] optional Array transfer);1363 void postMessage([TransferList=transfer] SerializedScriptValue data, [Default=Undefined] optional Array transfer); 1364 1364 } 1365 1365 }}} … … 1709 1709 IndexedGetter 1710 1710 ] NodeList { 1711 Node item( inunsigned long index);1711 Node item(unsigned long index); 1712 1712 readonly attribute unsigned long length; 1713 1713 }