Index: modules/mediastream/RTCSessionDescription.idl |
diff --git a/modules/mediastream/RTCSessionDescription.idl b/modules/mediastream/RTCSessionDescription.idl |
index a083ff34a3c5f645aa692b0abca6f30019d5f7b3..6c9f668933ed144f0c70d2ef7f6c1eba71281078 100644 |
--- a/modules/mediastream/RTCSessionDescription.idl |
+++ b/modules/mediastream/RTCSessionDescription.idl |
@@ -28,12 +28,20 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// http://www.w3.org/TR/webrtc/#idl-def-RTCSessionDescription |
+ |
+enum RTCSdpType { |
+ "offer", |
+ "pranswer", |
+ "answer" |
+}; |
+ |
[ |
GarbageCollected, |
- Constructor(optional Dictionary descriptionInitDict), |
- RaisesException=Constructor |
+ Constructor(optional RTCSessionDescriptionInit descriptionInitDict) |
] interface RTCSessionDescription { |
- [RaisesException=Setter] attribute DOMString? type; |
+ attribute RTCSdpType? type; |
attribute DOMString? sdp; |
+ serializer = {attribute}; |
}; |