Bug 1043165 - Part 1: Add TelephonyCall.disconnectedReason (webidl). r=hsinyi
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Thu, 26 Mar 2015 16:39:39 +0800
changeset 264509 a391057b98933956ff8b6f54949dbf294e751a1d
parent 264508 570374bc4621ef4c7d954676e7ff77f8207a8843
child 264510 7fe43cd64f4dff94259ff8149735a49b1561ee3e
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs1043165
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1043165 - Part 1: Add TelephonyCall.disconnectedReason (webidl). r=hsinyi
dom/webidl/TelephonyCall.webidl
--- a/dom/webidl/TelephonyCall.webidl
+++ b/dom/webidl/TelephonyCall.webidl
@@ -26,16 +26,18 @@ interface TelephonyCall : EventTarget {
   // "held".
   readonly attribute boolean switchable;
 
   // Indicate whether the call can be added into TelephonyCallGroup.
   readonly attribute boolean mergeable;
 
   readonly attribute DOMError? error;
 
+  readonly attribute TelephonyCallDisconnectedReason? disconnectedReason;
+
   readonly attribute TelephonyCallGroup? group;
 
   [NewObject]
   Promise<void> answer();
   [NewObject]
   Promise<void> hangUp();
   [NewObject]
   Promise<void> hold();
@@ -48,8 +50,75 @@ interface TelephonyCall : EventTarget {
   attribute EventHandler onconnected;
   attribute EventHandler ondisconnected;
   attribute EventHandler onheld;
   attribute EventHandler onerror;
 
   // Fired whenever the group attribute changes.
   attribute EventHandler ongroupchange;
 };
+
+enum TelephonyCallDisconnectedReason {
+  "BadNumber",
+  "NoRouteToDestination",
+  "ChannelUnacceptable",
+  "OperatorDeterminedBarring",
+  "NormalCallClearing",
+  "Busy",
+  "NoUserResponding",
+  "UserAlertingNoAnswer",
+  "CallRejected",
+  "NumberChanged",
+  "CallRejectedDestinationFeature",
+  "PreEmption",
+  "DestinationOutOfOrder",
+  "InvalidNumberFormat",
+  "FacilityRejected",
+  "ResponseToStatusEnquiry",
+  "Congestion",
+  "NetworkOutOfOrder",
+  "NetworkTempFailure",
+  "SwitchingEquipCongestion",
+  "AccessInfoDiscarded",
+  "RequestedChannelNotAvailable",
+  "ResourceUnavailable",
+  "QosUnavailable",
+  "RequestedFacilityNotSubscribed",
+  "IncomingCallsBarredWithinCug",
+  "BearerCapabilityNotAuthorized",
+  "BearerCapabilityNotAvailable",
+  "BearerNotImplemented",
+  "ServiceNotAvailable",
+  "IncomingCallExceeded",
+  "RequestedFacilityNotImplemented",
+  "UnrestrictedBearerNotAvailable",
+  "ServiceNotImplemented",
+  "InvalidTransactionId",
+  "NotCugMember",
+  "IncompatibleDestination",
+  "InvalidTransitNetworkSelection",
+  "SemanticallyIncorrectMessage",
+  "InvalidMandatoryInfo",
+  "MessageTypeNotImplemented",
+  "MessageTypeIncompatibleProtocolState",
+  "InfoElementNotImplemented",
+  "ConditionalIe",
+  "MessageIncompatibleProtocolState",
+  "RecoveryOnTimerExpiry",
+  "Protocol",
+  "Interworking",
+  "Barred",
+  "FDNBlocked",
+  "SubscriberUnknown",
+  "DeviceNotAccepted",
+  "ModifiedDial",
+  "CdmaLockedUntilPowerCycle",
+  "CdmaDrop",
+  "CdmaIntercept",
+  "CdmaReorder",
+  "CdmaSoReject",
+  "CdmaRetryOrder",
+  "CdmaAcess",
+  "CdmaPreempted",
+  "CdmaNotEmergency",
+  "CdmaAccessBlocked",
+  "Unspecified",
+};