Changes between Version 137 and Version 138 of WebKitIDL


Ignore:
Timestamp:
Sep 19, 2015 3:36:23 PM (6 years ago)
Author:
Chris Dumez
Comment:

Add [SetterCallWith]

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v137 v138  
    1414 - [#Custom Custom(m,a), CustomGetter(a), CustomSetter(a)][[br]]
    1515 - [#CustomBinding CustomBinding][[br]]
    16  - [#CallWith CallWith(m,a)][[br]]
     16 - [#CallWith CallWith(m,a), SetterCallWith(a)][[br]]
    1717 - [#StrictTypeChecking StrictTypeChecking(m,a,p)][[br]]
    1818 - [#NewObject NewObject(m,a)][[br]]
     
    446446Note: ObjC, GObject and CPP bindings do not support `[CustomBinding]` bindings.
    447447
    448 == `[CallWith]`(m,a) == #CallWith
     448== `[CallWith]`(m,a), `[SetterCallWith]`(a) == #CallWith
    449449
    450450Summary: `[CallWith]` indicates that the bindings code calls a WebCore method with additional information.
    451451
    452 Usage: The possible usage is `[CallWith=X1|X2|X3|...]`, where X1, X2, X3, ... is "ScriptExecutionContext", "ScriptState", "ScriptArguments" or "CallStack".
     452Usage: The possible usage is `[CallWith=X1|X2|X3|...]`, where X1, X2, X3, ... is "ScriptExecutionContext", "ScriptState", "ScriptArguments", "CallStack", "ActiveWindow" or "FirstWindow".
    453453"ScriptExecutionContext", "ScriptState" and "CallStack" can be specified on methods or attributes,
    454454but "ScriptArguments" can be specified on methods only:
     
    456456    interface HTMLFoo {
    457457        [CallWith=ScriptExecutionContext] attribute DOMString str;
     458        [SetterCallWith=ScriptExecutionContext] attribute DOMString str2;
    458459        [CallWith=ScriptExecutionContext] void func1(int a, int b);
    459460        [CallWith=ScriptState] void func2(int a, int b);