| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // TODO(guidou): Many types are of the wrong type in this interface: | 60 // TODO(guidou): Many types are of the wrong type in this interface: |
| 61 // * Dictionary -> specific dictionary types like RTCConfiguration | 61 // * Dictionary -> specific dictionary types like RTCConfiguration |
| 62 // * VoidCallback -> VoidFunction | 62 // * VoidCallback -> VoidFunction |
| 63 [ | 63 [ |
| 64 ActiveScriptWrappable, | 64 ActiveScriptWrappable, |
| 65 DependentLifetime, | 65 DependentLifetime, |
| 66 // TODO(guidou): There should only be one constructor argument. | 66 // TODO(guidou): There should only be one constructor argument. |
| 67 Constructor(optional RTCConfiguration configuration, optional Dictionary med
iaConstraints), | 67 Constructor(optional RTCConfiguration configuration, optional Dictionary med
iaConstraints), |
| 68 ConstructorCallWith=ExecutionContext, | 68 ConstructorCallWith=ExecutionContext, |
| 69 NoInterfaceObject, | |
| 70 RaisesException=Constructor, | 69 RaisesException=Constructor, |
| 71 ] interface RTCPeerConnection : EventTarget { | 70 ] interface RTCPeerConnection : EventTarget { |
| 72 [CallWith=ScriptState] Promise<RTCSessionDescription> createOffer(optional R
TCOfferOptions options); | 71 [CallWith=ScriptState] Promise<RTCSessionDescription> createOffer(optional R
TCOfferOptions options); |
| 73 [CallWith=ScriptState] Promise<RTCSessionDescription> createAnswer(optional
RTCAnswerOptions options); | 72 [CallWith=ScriptState] Promise<RTCSessionDescription> createAnswer(optional
RTCAnswerOptions options); |
| 74 [CallWith=ScriptState] Promise<void> setLocalDescription(RTCSessionDescripti
onInit description); | 73 [CallWith=ScriptState] Promise<void> setLocalDescription(RTCSessionDescripti
onInit description); |
| 75 readonly attribute RTCSessionDescription? localDescription; | 74 readonly attribute RTCSessionDescription? localDescription; |
| 76 // readonly attribute RTCSessionDescription? currentLocalDescription; | 75 // readonly attribute RTCSessionDescription? currentLocalDescription; |
| 77 // readonly attribute RTCSessionDescription? pendingLocalDescription; | 76 // readonly attribute RTCSessionDescription? pendingLocalDescription; |
| 78 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript
ionInit description); | 77 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript
ionInit description); |
| 79 readonly attribute RTCSessionDescription? remoteDescription; | 78 readonly attribute RTCSessionDescription? remoteDescription; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 [Measure, CallWith=ExecutionContext, RaisesException] void updateIce(optiona
l RTCConfiguration configuration, optional Dictionary mediaConstraints); | 123 [Measure, CallWith=ExecutionContext, RaisesException] void updateIce(optiona
l RTCConfiguration configuration, optional Dictionary mediaConstraints); |
| 125 [Measure] sequence<MediaStream> getLocalStreams(); | 124 [Measure] sequence<MediaStream> getLocalStreams(); |
| 126 [Measure] sequence<MediaStream> getRemoteStreams(); | 125 [Measure] sequence<MediaStream> getRemoteStreams(); |
| 127 [Measure] MediaStream getStreamById(DOMString streamId); | 126 [Measure] MediaStream getStreamById(DOMString streamId); |
| 128 [Measure, CallWith=ExecutionContext, RaisesException] void addStream(MediaSt
ream? stream, optional Dictionary mediaConstraints); | 127 [Measure, CallWith=ExecutionContext, RaisesException] void addStream(MediaSt
ream? stream, optional Dictionary mediaConstraints); |
| 129 [Measure, RaisesException] void removeStream(MediaStream? stream); | 128 [Measure, RaisesException] void removeStream(MediaStream? stream); |
| 130 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t
rack); | 129 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t
rack); |
| 131 attribute EventHandler onaddstream; | 130 attribute EventHandler onaddstream; |
| 132 attribute EventHandler onremovestream; | 131 attribute EventHandler onremovestream; |
| 133 }; | 132 }; |
| OLD | NEW |