DescriptionIDL: Add support for serializer definitions
The code generation for it is very simple. The
serializer ReturnType name();
form adds the method "ReturnType name()" as a normal method, and in
addition a toJSON() method with identical behavior.
All other forms of serializer definitions, are equivalent to defining
a method
[CallWith=ScriptState] any toJSON();
unless the serializer definition has additional extended attributes, in
which case those are also applied to the toJSON() method.
BUG=469650
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192594
Patch Set 1 #
Total comments: 6
Messages
Total messages: 13 (3 generated)
|