Changeset 202109 in webkit


Ignore:
Timestamp:
Jun 15, 2016 2:27:36 PM (8 years ago)
Author:
adam.bergkvist@ericsson.com
Message:

WebRTC: (Refactor) Align the structure of RTCPeerConnection.idl with the header file
https://bugs.webkit.org/show_bug.cgi?id=158779

Reviewed by Eric Carlson.

Restructure RTCPeerConnection.idl to make it easer to read and extend in the future.

No change in behavior.

  • Modules/mediastream/RTCPeerConnection.idl:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202105 r202109  
     12016-06-15  Adam Bergkvist  <adam.bergkvist@ericsson.com>
     2
     3        WebRTC: (Refactor) Align the structure of RTCPeerConnection.idl with the header file
     4        https://bugs.webkit.org/show_bug.cgi?id=158779
     5
     6        Reviewed by Eric Carlson.
     7
     8        Restructure RTCPeerConnection.idl to make it easer to read and extend in the future.
     9
     10        No change in behavior.
     11
     12        * Modules/mediastream/RTCPeerConnection.idl:
     13
    1142016-06-15  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.idl

    r201549 r202109  
    3939    InterfaceName=webkitRTCPeerConnection,
    4040] interface RTCPeerConnection : EventTarget {
     41    // RTP Media API extensions
     42    sequence<RTCRtpSender> getSenders();
     43    sequence<RTCRtpReceiver> getReceivers();
     44    sequence<RTCRtpTransceiver> getTransceivers();
    4145
    42     // Private functions called by runQueuedOperation() (RTCPeerConnectionInternals.js)
    43     [Private] Promise queuedCreateOffer(optional Dictionary offerOptions);
    44     [Private] Promise queuedCreateAnswer(optional Dictionary answerOptions);
    45     [Private] Promise queuedSetLocalDescription(RTCSessionDescription description);
    46     [Private] Promise queuedSetRemoteDescription(RTCSessionDescription description);
    47     [Private] Promise queuedAddIceCandidate(RTCIceCandidate candidate);
     46    [StrictTypeChecking, RaisesException] RTCRtpSender addTrack(MediaStreamTrack track, MediaStream... streams);
     47    [StrictTypeChecking, RaisesException] void removeTrack(RTCRtpSender sender);
    4848
    49     [Private] Promise privateGetStats(MediaStreamTrack? selector);
     49    [StrictTypeChecking, RaisesException] RTCRtpTransceiver addTransceiver(MediaStreamTrack track, optional RTCRtpTransceiverInit init);
     50    [StrictTypeChecking, RaisesException] RTCRtpTransceiver addTransceiver(DOMString kind, optional RTCRtpTransceiverInit init);
    5051
    5152    [JSBuiltin] Promise createOffer(optional Dictionary offerOptions);
     
    5859    //                                        RTCPeerConnectionErrorCallback errorCallback,
    5960    //                                        optional Dictionary answerOptions);
    60 
    61     sequence<RTCRtpSender> getSenders();
    62     sequence<RTCRtpReceiver> getReceivers();
    63     sequence<RTCRtpTransceiver> getTransceivers();
    64 
    65     [StrictTypeChecking, RaisesException] RTCRtpSender addTrack(MediaStreamTrack track, MediaStream... streams);
    66     [StrictTypeChecking, RaisesException] void removeTrack(RTCRtpSender sender);
    67 
    68     [StrictTypeChecking, RaisesException] RTCRtpTransceiver addTransceiver(MediaStreamTrack track, optional RTCRtpTransceiverInit init);
    69     [StrictTypeChecking, RaisesException] RTCRtpTransceiver addTransceiver(DOMString kind, optional RTCRtpTransceiverInit init);
    7061
    7162    [JSBuiltin] Promise setLocalDescription(RTCSessionDescription description);
     
    10596    //                                    RTCPeerConnectionErrorCallback errorCallback);
    10697
     98    // Private API used to implement the overloaded operations above. Queued functions are called by
     99    // runQueuedOperation() (defined in RTCPeerConnectionInternals.js).
     100    [Private] Promise queuedCreateOffer(optional Dictionary offerOptions);
     101    [Private] Promise queuedCreateAnswer(optional Dictionary answerOptions);
     102    [Private] Promise queuedSetLocalDescription(RTCSessionDescription description);
     103    [Private] Promise queuedSetRemoteDescription(RTCSessionDescription description);
     104    [Private] Promise queuedAddIceCandidate(RTCIceCandidate candidate);
     105    [Private] Promise privateGetStats(MediaStreamTrack? selector);
     106
    107107    [RaisesException] RTCDataChannel createDataChannel([TreatNullAs=EmptyString] DOMString label, optional Dictionary options);
    108108
Note: See TracChangeset for help on using the changeset viewer.