diff options
Diffstat (limited to 'Source/WebCore/Modules/mediastream/RTCSessionDescription.idl')
-rw-r--r-- | Source/WebCore/Modules/mediastream/RTCSessionDescription.idl | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/Source/WebCore/Modules/mediastream/RTCSessionDescription.idl b/Source/WebCore/Modules/mediastream/RTCSessionDescription.idl index e62998b16..27c6571ea 100644 --- a/Source/WebCore/Modules/mediastream/RTCSessionDescription.idl +++ b/Source/WebCore/Modules/mediastream/RTCSessionDescription.idl @@ -30,11 +30,22 @@ */ [ - Conditional=MEDIA_STREAM, - CustomConstructor(optional Dictionary dictionary), - ConstructorRaisesException + Conditional=WEB_RTC, + Constructor(RTCSessionDescriptionInit descriptionInitDict), + EnabledAtRuntime=PeerConnection, + ImplementationLacksVTable, + PrivateIdentifier, + PublicIdentifier, ] interface RTCSessionDescription { - [SetterRaisesException] attribute DOMString type; - attribute DOMString sdp; + [SetterMayThrowException] readonly attribute RTCSdpType type; + readonly attribute DOMString sdp; + + serializer = {type, sdp}; }; +enum RTCSdpType { "offer", "pranswer", "answer", "rollback" }; + +dictionary RTCSessionDescriptionInit { + required RTCSdpType type; + DOMString sdp = ""; +}; |