Bug 926302 - 1/3: B2G DSDS - numRadioInterfaces and default service ids. Interface changes. r=hsinyi
authorVicamo Yang <vyang@mozilla.com>
Thu, 24 Oct 2013 16:14:50 +0800
changeset 166875 29149aa9eded76bf3aada7a483edfcf48bcd7048
parent 166874 44c49e67d12191b9fb74bb79209967a17f28f9ed
child 166876 f90977536aa96e810c743339817696b03c904e0d
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs926302
milestone27.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 926302 - 1/3: B2G DSDS - numRadioInterfaces and default service ids. Interface changes. r=hsinyi
dom/mobilemessage/interfaces/nsIMmsService.idl
dom/mobilemessage/interfaces/nsISmsService.idl
dom/telephony/nsITelephonyProvider.idl
dom/voicemail/nsIVoicemailProvider.idl
--- a/dom/mobilemessage/interfaces/nsIMmsService.idl
+++ b/dom/mobilemessage/interfaces/nsIMmsService.idl
@@ -7,17 +7,19 @@ interface nsIMobileMessageCallback;
 interface nsIDOMBlob;
 
 %{C++
 #define MMS_SERVICE_CID { 0x06d9124b, 0x80e0, 0x40ed, \
   { 0x98, 0x71, 0x4d, 0x23, 0x4a, 0x0f, 0xd4, 0x31 } }
 #define MMS_SERVICE_CONTRACTID "@mozilla.org/mms/mmsservice;1"
 %}
 
-[scriptable, uuid(e5ef630a-eab7-425a-ac42-650ef5c4fcef)]
+[scriptable, uuid(5dc8b3bc-c3a9-45ea-8ee0-7562b0e57257)]
 interface nsIMmsService : nsISupports
 {
+  readonly attribute unsigned long mmsDefaultServiceId;
+
   void send(in jsval parameters /* MmsParameters */,
             in nsIMobileMessageCallback request);
 
   void retrieve(in long id,
                 in nsIMobileMessageCallback request);
 };
--- a/dom/mobilemessage/interfaces/nsISmsService.idl
+++ b/dom/mobilemessage/interfaces/nsISmsService.idl
@@ -8,19 +8,21 @@ interface nsIDOMMozSmsMessage;
 interface nsIDOMMozSmsSegmentInfo;
 interface nsIMobileMessageCallback;
 
 %{C++
 #define SMS_SERVICE_CID { 0xbada3cb8, 0xa568, 0x4dff, { 0xb5, 0x43, 0x52, 0xbb, 0xb3, 0x14, 0x31, 0x21 } }
 #define SMS_SERVICE_CONTRACTID "@mozilla.org/sms/smsservice;1"
 %}
 
-[scriptable, builtinclass, uuid(0f3f75ec-00dd-11e3-87ac-0b1d5c79afdf)]
+[scriptable, builtinclass, uuid(ec3221fb-2d4a-4ccd-ac64-65c1b2dee5dd)]
 interface nsISmsService : nsISupports
 {
+  readonly attribute unsigned long smsDefaultServiceId;
+
   boolean hasSupport();
 
   void getSegmentInfoForText(in DOMString text,
                              in nsIMobileMessageCallback request);
 
   void send(in DOMString number,
             in DOMString message,
             in boolean silent,
--- a/dom/telephony/nsITelephonyProvider.idl
+++ b/dom/telephony/nsITelephonyProvider.idl
@@ -113,17 +113,17 @@ interface nsITelephonyListener : nsISupp
 #define TELEPHONY_PROVIDER_CONTRACTID \
   "@mozilla.org/telephony/telephonyprovider;1"
 %}
 
 /**
  * XPCOM component (in the content process) that provides the telephony
  * information.
  */
-[scriptable, uuid(effca006-1ca8-47f7-9bab-1323f90a14ec)]
+[scriptable, uuid(f7680b82-53fc-42a7-9adf-bc0f2726425c)]
 interface nsITelephonyProvider : nsISupports
 {
   const unsigned short CALL_STATE_UNKNOWN = 0;
   const unsigned short CALL_STATE_DIALING = 1;
   const unsigned short CALL_STATE_ALERTING = 2;
   const unsigned short CALL_STATE_CONNECTING = 3;
   const unsigned short CALL_STATE_CONNECTED = 4;
   const unsigned short CALL_STATE_HOLDING = 5;
@@ -131,16 +131,18 @@ interface nsITelephonyProvider : nsISupp
   const unsigned short CALL_STATE_RESUMING = 7;
   const unsigned short CALL_STATE_DISCONNECTING = 8;
   const unsigned short CALL_STATE_DISCONNECTED = 9;
   const unsigned short CALL_STATE_INCOMING = 10;
 
   const unsigned short NOTIFICATION_REMOTE_HELD = 0;
   const unsigned short NOTIFICATION_REMOTE_RESUMED = 1;
 
+  readonly attribute unsigned long defaultServiceId;
+
   /**
    * Called when a content process registers receiving unsolicited messages from
    * RadioInterfaceLayer in the chrome process. Only a content process that has
    * the 'telephony' permission is allowed to register.
    */
   void registerListener(in nsITelephonyListener listener);
   void unregisterListener(in nsITelephonyListener listener);
 
--- a/dom/voicemail/nsIVoicemailProvider.idl
+++ b/dom/voicemail/nsIVoicemailProvider.idl
@@ -17,19 +17,21 @@ interface nsIVoicemailListener : nsISupp
    */
   void notifyStatusChanged(in nsIDOMMozVoicemailStatus status);
 };
 
 /**
  * XPCOM component (in the content process) that provides the voicemail
  * information.
  */
-[scriptable, uuid(37bc0991-21a3-4de9-b888-d667fea6c05d)]
+[scriptable, uuid(38746f3c-f4e3-4804-b900-ba2463b923c8)]
 interface nsIVoicemailProvider : nsISupports
 {
+  readonly attribute unsigned long voicemailDefaultServiceId;
+
   /**
    * Called when a content process registers receiving unsolicited messages from
    * RadioInterfaceLayer in the chrome process. Only a content process that has
    * the 'voicemail' permission is allowed to register.
    */
   void registerVoicemailMsg(in nsIVoicemailListener listener);
   void unregisterVoicemailMsg(in nsIVoicemailListener listener);