BUG 1070831 - Part 1: Clean up the WebIDL. r=hsinyi

This commit is contained in:
Ben Hsu 2014-12-21 17:28:00 +01:00
parent b9d040b1fd
commit 5f8b12dcf8
2 changed files with 1 additions and 52 deletions

View File

@ -263,49 +263,6 @@ interface MozMobileConnection : EventTarget
[Throws, CheckPermissions="mobileconnection"]
DOMRequest getVoicePrivacyMode();
/**
* Send a MMI message.
*
* @param mmi
* DOMString containing an MMI string that can be associated to a
* USSD request or other RIL functionality.
*
* @return a DOMRequest.
*
* If successful, the request's onsuccess will be called. And the request's
* result will be an object containing information about the operation.
* @see MozMMIResult for the detail of result.
*
* Otherwise, the request's onerror will be called, and the request's error
* will be a DOMMMIError.
* @see DOMMMIError for the detail of error.
*
* Note: In case that the MMI code requires sending an USSD request, the
* DOMrequest 'success' event means that the RIL has successfully processed
* and sent the USSD request to the network. The network reply will be
* reported via 'onussdreceived' event. If the MMI code is not associated to
* a USSD but to other RIL request its result, if one is needed, will be
* notified via the returned DOMRequest 'success' or 'error' event.
*/
[Throws, CheckPermissions="mobileconnection"]
DOMRequest sendMMI(DOMString mmi);
/**
* Cancel the current MMI request if one exists.
*
* @return a DOMRequest.
*
* If successful, the request's onsuccess will be called. And the request's
* result will be an object containing information about the operation.
* @see MozMMIResult for the detail of result.
*
* Otherwise, the request's onerror will be called, and the request's error
* will be a DOMMMIError.
* @see DOMMMIError for the detail of error.
*/
[Throws, CheckPermissions="mobileconnection"]
DOMRequest cancelMMI();
/**
* Configures call forward options.
*
@ -522,12 +479,6 @@ interface MozMobileConnection : EventTarget
*/
attribute EventHandler ondatachange;
/**
* The 'ussdreceived' event is notified whenever a new USSD message is
* received.
*/
attribute EventHandler onussdreceived;
/**
* The 'dataerror' event is notified whenever the data connection object
* receives an error from the RIL.

View File

@ -5,7 +5,7 @@
*/
[Pref="dom.telephony.enabled",
CheckPermissions="telephony mobileconnection",
CheckPermissions="telephony",
AvailableIn="CertifiedApps",
Constructor(DOMString type, optional USSDReceivedEventInit eventInitDict)]
interface USSDReceivedEvent : Event
@ -13,7 +13,6 @@ interface USSDReceivedEvent : Event
readonly attribute unsigned long serviceId;
readonly attribute DOMString? message;
readonly attribute USSDSession? session; // null if session is ended.
readonly attribute boolean sessionEnded; // deprecated. Bug 1070831
};
dictionary USSDReceivedEventInit : EventInit
@ -21,5 +20,4 @@ dictionary USSDReceivedEventInit : EventInit
unsigned long serviceId = 0;
DOMString? message = null;
USSDSession? session = null;
boolean sessionEnded = false;
};