Changes between Version 91 and Version 92 of WebKitIDL


Ignore:
Timestamp:
May 8, 2013 12:24:11 AM (8 years ago)
Author:
Christophe Dumez
Comment:

Remove deprecated "in" keyword from IDL examples

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v91 v92  
    8686        attribute Node parentNode;
    8787        attribute [TreatReturnedNullStringAs=Null] DOMString nodeName;
    88         [Custom] Node appendChild(in [CustomReturn] Node newChild);
     88        [Custom] Node appendChild([CustomReturn] Node newChild);
    8989        void addEventListener(DOMString type, EventListener listener, optional boolean useCapture);
    9090    };
     
    124124        const unsigned long value = 12345;
    125125        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, ...);
    127127    };
    128128}
     
    135135        const unsigned long value = 12345;
    136136        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, ...);
    138138    };
    139139}
     
    255255{{{
    256256    attribute [TreatNullAs=NullString] DOMString str;
    257     void func(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString str);
     257    void func([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString str);
    258258}}}
    259259
     
    386386{{{
    387387    interface XXX {
    388         [JSCustom] void func(in int a, in int b);
     388        [JSCustom] void func(int a, int b);
    389389    };
    390390}}}
     
    434434{{{
    435435    interface XXX {
    436         [V8Custom] void func(in int a, in int b);
     436        [V8Custom] void func(int a, int b);
    437437    };
    438438}}}
     
    490490    interface HTMLFoo {
    491491        attribute [CallWith=ScriptExecutionContext] DOMString str;
    492         [CallWith=ScriptExecutionContext] void func1(in int a, in int b);
    493         [CallWith=ScriptState] void func2(in int a, in int b);
    494         [CallWith=ScriptArguments|CallStack] void func3(in int a, in int b);
    495         [CallWith=CallStack|ScriptArguments] void func4(in int a, in int 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);
    496496    };
    497497}}}
     
    530530{{{
    531531    interface CanvasFoo {
    532         void setColor(in [StrictTypeChecking] DOMString color);
    533         void setColor(in float grayLevel);
     532        void setColor([StrictTypeChecking] DOMString color);
     533        void setColor(float grayLevel);
    534534    };
    535535}}}
     
    773773{{{
    774774    interface [
    775         Constructor(in float x, in float y, in DOMString str),
     775        Constructor(float x, float y, DOMString str),
    776776        ConstructorRaisesException,
    777777        CallWith=ScriptExecutionContext|ScriptState
     
    780780}}}
    781781
    782 [Constructor(in float x, in float y, in DOMString str)] means that the interface has a constructor
    783 and the constructor signature is (in float x, in float y, in DOMString str).
     782[Constructor(float x, float y, DOMString str)] means that the interface has a constructor
     783and the constructor signature is (float x, float y, DOMString str).
    784784Specifically, JavaScript can create a DOM object of XXX by the following code:
    785785{{{
     
    956956
    957957X 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.
     958For 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.
    959959
    960960You do not need to specify [ConstructorParameters] if the interface does not have any of [JSCustomConstructor], [V8CustomConstructor] or [CustomConstructor].
     
    13611361{{{
    13621362    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);
    13641364    }
    13651365}}}
     
    17091709    IndexedGetter
    17101710] NodeList {
    1711     Node item(in unsigned long index);
     1711    Node item(unsigned long index);
    17121712    readonly attribute unsigned long length;
    17131713}