Changes between Version 113 and Version 114 of WebKitIDL


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

Remove [TransferList]

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v113 v114  
    3939 - [#CustomEnumerateProperty CustomEnumerateProperty(i), CustomDeleteProperty(i)][[br]]
    4040 - [#IsWorkerContext IsWorkerContext(i)][[br]]
    41  - [#TransferList TransferList(p)][[br]]
    4241 - [#TypedArray TypedArray(i), [ConstructorTemplate=TypedArray](i)][[br]]
    4342 - [#CustomCall CustomCall(i)][[br]]
     
    11271126}}}
    11281127
    1129 == `[TransferList]`(p) == #TransferList
    1130 
    1131 Summary: `[TransferList]` allows a SerializedScriptValue parameter used
    1132 with the structured clone algorithm to specify another parameter used
    1133 to pass the transfer list.
    1134 
    1135 Usage: The possible usage is `[TransferList=XXX]` where `XXX` is another
    1136 parameter in the same method signature as the SerializedScriptValue
    1137 parameter on which the modifier is placed. The referenced parameter
    1138 should be of type "Array" to be compatible with the Web Messaging
    1139 standard.
    1140 
    1141 When this modifier is used, the code generation automatically creates
    1142 a MessagePortArray and completes the structured clone algorithm using
    1143 the input data from the JavaScript caller. The resulting
    1144 MessagePortArray is then passed to the implementation's method
    1145 signature in place of the Array parameter referenced.
    1146 
    1147 Example:
    1148 {{{
    1149     interface Worker {
    1150         void postMessage([TransferList=transfer] SerializedScriptValue data, [Default=Undefined] optional Array transfer);
    1151     }
    1152 }}}
    1153 And in the implementation:
    1154 {{{
    1155     class Worker {
    1156         virtual void postMessage(PassRefPtr<SerializedScriptValue> data, const MessagePortArray& ports);
    1157     }
    1158 }}}
    1159 
    11601128== `[TypedArray]`(i), [ConstructorTemplate=TypedArray](i) == #TypedArray
    11611129