зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1811912: webidl for RTCIceTransport r=jib,webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D193125
This commit is contained in:
Родитель
069ccf6967
Коммит
d8352e720c
|
@ -1068,6 +1068,8 @@ let interfaceNamesInGlobalScope = [
|
|||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{ name: "RTCIceCandidate", insecureContext: true },
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{ name: "RTCIceTransport", insecureContext: true },
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{ name: "RTCPeerConnection", insecureContext: true },
|
||||
// IMPORTANT: Do not change this list without review from a DOM peer!
|
||||
{ name: "RTCPeerConnectionIceEvent", insecureContext: true },
|
||||
|
|
|
@ -18,6 +18,7 @@ enum RTCDtlsTransportState {
|
|||
[Pref="media.peerconnection.enabled",
|
||||
Exposed=Window]
|
||||
interface RTCDtlsTransport : EventTarget {
|
||||
[SameObject] readonly attribute RTCIceTransport iceTransport;
|
||||
readonly attribute RTCDtlsTransportState state;
|
||||
attribute EventHandler onstatechange;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://w3c.github.io/webrtc-pc/#dom-rtcicetransport
|
||||
*/
|
||||
|
||||
enum RTCIceTransportState {
|
||||
"closed",
|
||||
"failed",
|
||||
"disconnected",
|
||||
"new",
|
||||
"checking",
|
||||
"completed",
|
||||
"connected"
|
||||
};
|
||||
|
||||
enum RTCIceGathererState {
|
||||
"new",
|
||||
"gathering",
|
||||
"complete"
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface RTCIceTransport : EventTarget {
|
||||
// TODO(bug 1307994)
|
||||
// readonly attribute RTCIceRole role;
|
||||
// readonly attribute RTCIceComponent component;
|
||||
readonly attribute RTCIceTransportState state;
|
||||
readonly attribute RTCIceGathererState gatheringState;
|
||||
// TODO(bug 1307994)
|
||||
// sequence<RTCIceCandidate> getLocalCandidates();
|
||||
// sequence<RTCIceCandidate> getRemoteCandidates();
|
||||
// RTCIceCandidatePair? getSelectedCandidatePair();
|
||||
// RTCIceParameters? getLocalParameters();
|
||||
// RTCIceParameters? getRemoteParameters();
|
||||
attribute EventHandler onstatechange;
|
||||
attribute EventHandler ongatheringstatechange;
|
||||
// TODO(bug 1307994)
|
||||
// attribute EventHandler onselectedcandidatepairchange;
|
||||
};
|
|
@ -27,13 +27,13 @@ enum RTCIceGatheringState {
|
|||
};
|
||||
|
||||
enum RTCIceConnectionState {
|
||||
"new",
|
||||
"checking",
|
||||
"connected",
|
||||
"completed",
|
||||
"failed",
|
||||
"disconnected",
|
||||
"closed"
|
||||
"closed",
|
||||
"failed",
|
||||
"disconnected",
|
||||
"new",
|
||||
"checking",
|
||||
"completed",
|
||||
"connected"
|
||||
};
|
||||
|
||||
enum RTCPeerConnectionState {
|
||||
|
|
|
@ -1047,6 +1047,7 @@ if CONFIG["MOZ_WEBRTC"]:
|
|||
"RTCEncodedAudioFrame.webidl",
|
||||
"RTCEncodedVideoFrame.webidl",
|
||||
"RTCIceCandidate.webidl",
|
||||
"RTCIceTransport.webidl",
|
||||
"RTCIdentityAssertion.webidl",
|
||||
"RTCIdentityProvider.webidl",
|
||||
"RTCPeerConnection.webidl",
|
||||
|
|
|
@ -833,6 +833,7 @@ STATIC_ATOMS = [
|
|||
Atom("onfocusout", "onfocusout"),
|
||||
Atom("onfullscreenchange", "onfullscreenchange"),
|
||||
Atom("onfullscreenerror", "onfullscreenerror"),
|
||||
Atom("ongatheringstatechange", "ongatheringstatechange"),
|
||||
Atom("onget", "onget"),
|
||||
Atom("onhashchange", "onhashchange"),
|
||||
Atom("oninput", "oninput"),
|
||||
|
|
Загрузка…
Ссылка в новой задаче