1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/PeerConnectionImplEnums.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * This is in a separate file so it can be shared with unittests. 1.10 + */ 1.11 + 1.12 +enum PCImplReadyState { 1.13 + "New", 1.14 + "Negotiating", 1.15 + "Active", 1.16 + "Closing", 1.17 + "Closed" 1.18 +}; 1.19 + 1.20 +/* Must be in the same order as comparable fsmdef_states_t in fsmdef_states.h */ 1.21 +enum PCImplSignalingState { 1.22 + "SignalingInvalid", 1.23 + "SignalingStable", 1.24 + "SignalingHaveLocalOffer", 1.25 + "SignalingHaveRemoteOffer", 1.26 + "SignalingHaveLocalPranswer", 1.27 + "SignalingHaveRemotePranswer", 1.28 + "SignalingClosed", 1.29 +}; 1.30 + 1.31 +enum PCImplSipccState { 1.32 + "Idle", 1.33 + "Starting", 1.34 + "Started" 1.35 +}; 1.36 + 1.37 +enum PCImplIceConnectionState { 1.38 + "new", 1.39 + "checking", 1.40 + "connected", 1.41 + "completed", 1.42 + "failed", 1.43 + "disconnected", 1.44 + "closed" 1.45 +}; 1.46 + 1.47 +// Deliberately identical to the values specified in webrtc 1.48 +enum PCImplIceGatheringState { 1.49 + "new", 1.50 + "gathering", 1.51 + "complete" 1.52 +}; 1.53 +