Cleanups and tidy fixes

This commit is contained in:
Fernando Jiménez Moreno 2020-06-02 10:52:34 +02:00
parent ace0d7795e
commit 960b010d30
8 changed files with 23 additions and 24 deletions

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://www.w3.org/TR/webrtc/#dom-rtcdatachannel
// https://w3c.github.io/webrtc-pc/#dom-rtcdatachannel
[Exposed=Window]
interface RTCDataChannel : EventTarget {
@ -25,9 +25,9 @@ interface RTCDataChannel : EventTarget {
attribute EventHandler onmessage;
//attribute DOMString binaryType;
void send(USVString data);
void send(Blob data);
void send(ArrayBuffer data);
void send(ArrayBufferView data);
//void send(Blob data);
//void send(ArrayBuffer data);
//void send(ArrayBufferView data);
};
// https://www.w3.org/TR/webrtc/#dom-rtcdatachannelinit
@ -46,4 +46,4 @@ enum RTCDataChannelState {
"open",
"closing",
"closed"
};
};

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://www.w3.org/TR/webrtc/#rtcdatachannelevent
// https://w3c.github.io/webrtc-pc/#dom-rtcdatachannelevent
[Exposed=Window]
interface RTCDataChannelEvent : Event {
@ -12,4 +12,4 @@ interface RTCDataChannelEvent : Event {
dictionary RTCDataChannelEventInit : EventInit {
required RTCDataChannel channel;
};
};

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://www.w3.org/TR/webrtc/#dom-rtcerror
// https://w3c.github.io/webrtc-pc/#dom-rtcerror
[Exposed=Window]
interface RTCError : DOMException {
@ -32,4 +32,4 @@ enum RTCErrorDetailType {
"sdp-syntax-error",
"hardware-encoder-not-available",
"hardware-encoder-error"
};
};

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://www.w3.org/TR/webrtc/#rtcerrorevent-interface
// https://w3c.github.io/webrtc-pc/#dom-rtcerrorevent
[Exposed=Window]
interface RTCErrorEvent : Event {
@ -12,4 +12,4 @@ interface RTCErrorEvent : Event {
dictionary RTCErrorEventInit : EventInit {
required RTCError error;
};
};