| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // * VoidCallback -> VoidFunction | 62 // * VoidCallback -> VoidFunction |
| 63 [ | 63 [ |
| 64 GarbageCollected, | 64 GarbageCollected, |
| 65 DependentLifetime, | 65 DependentLifetime, |
| 66 // TODO(guidou): There should only be one constructor argument, and it | 66 // TODO(guidou): There should only be one constructor argument, and it |
| 67 // should be optional. | 67 // should be optional. |
| 68 Constructor(Dictionary rtcConfiguration, optional Dictionary mediaConstraint
s), | 68 Constructor(Dictionary rtcConfiguration, optional Dictionary mediaConstraint
s), |
| 69 ConstructorCallWith=ExecutionContext, | 69 ConstructorCallWith=ExecutionContext, |
| 70 NoInterfaceObject, | 70 NoInterfaceObject, |
| 71 RaisesException=Constructor, | 71 RaisesException=Constructor, |
| 72 RequiresFinalizer, |
| 72 ] interface RTCPeerConnection : EventTarget { | 73 ] interface RTCPeerConnection : EventTarget { |
| 73 [CallWith=ScriptState] Promise<RTCSessionDescription> createOffer(optional R
TCOfferOptions options); | 74 [CallWith=ScriptState] Promise<RTCSessionDescription> createOffer(optional R
TCOfferOptions options); |
| 74 [CallWith=ScriptState] Promise<RTCSessionDescription> createAnswer(optional
RTCAnswerOptions options); | 75 [CallWith=ScriptState] Promise<RTCSessionDescription> createAnswer(optional
RTCAnswerOptions options); |
| 75 [CallWith=ScriptState] Promise<void> setLocalDescription(RTCSessionDescripti
onInit description); | 76 [CallWith=ScriptState] Promise<void> setLocalDescription(RTCSessionDescripti
onInit description); |
| 76 readonly attribute RTCSessionDescription? localDescription; | 77 readonly attribute RTCSessionDescription? localDescription; |
| 77 // readonly attribute RTCSessionDescription? currentLocalDescription; | 78 // readonly attribute RTCSessionDescription? currentLocalDescription; |
| 78 // readonly attribute RTCSessionDescription? pendingLocalDescription; | 79 // readonly attribute RTCSessionDescription? pendingLocalDescription; |
| 79 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript
ionInit description); | 80 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript
ionInit description); |
| 80 readonly attribute RTCSessionDescription? remoteDescription; | 81 readonly attribute RTCSessionDescription? remoteDescription; |
| 81 // readonly attribute RTCSessionDescription? currentRemoteDescription; | 82 // readonly attribute RTCSessionDescription? currentRemoteDescription; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 [CallWith=ExecutionContext, RaisesException] void addStream(MediaStream? str
eam, optional Dictionary mediaConstraints); | 124 [CallWith=ExecutionContext, RaisesException] void addStream(MediaStream? str
eam, optional Dictionary mediaConstraints); |
| 124 [RaisesException] void removeStream(MediaStream? stream); | 125 [RaisesException] void removeStream(MediaStream? stream); |
| 125 [RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack track); | 126 [RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack track); |
| 126 attribute EventHandler onaddstream; | 127 attribute EventHandler onaddstream; |
| 127 attribute EventHandler onremovestream; | 128 attribute EventHandler onremovestream; |
| 128 | 129 |
| 129 // Certificate management | 130 // Certificate management |
| 130 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt | 131 // http://w3c.github.io/webrtc-pc/#sec.cert-mgmt |
| 131 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener
ateCertificate(AlgorithmIdentifier keygenAlgorithm); | 132 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener
ateCertificate(AlgorithmIdentifier keygenAlgorithm); |
| 132 }; | 133 }; |
| OLD | NEW |