Bug 785942 - Part 1: IDL update. sr=sicking, r=smaug
authorYoshi Huang <allstars.chh@mozilla.com>
Mon, 27 Aug 2012 18:55:27 -0300
changeset 105802 07b339718a40b4f7c51afc7499567735b81d78f6
parent 105801 338e6a97f0de919ea0e59c0e91689c8c49bed4d6
child 105803 d87b9221e5c4b109f9fba24922d36257a40bcccf
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewerssicking, smaug
bugs785942
milestone18.0a1
Bug 785942 - Part 1: IDL update. sr=sicking, r=smaug
dom/network/interfaces/Makefile.in
dom/network/interfaces/nsIDOMNavigatorNetwork.idl
dom/network/interfaces/nsINavigatorMobileConnection.idl
--- a/dom/network/interfaces/Makefile.in
+++ b/dom/network/interfaces/Makefile.in
@@ -11,20 +11,26 @@ include $(DEPTH)/config/autoconf.mk
 
 XPIDL_MODULE = dom_network
 
 include $(topsrcdir)/dom/dom-config.mk
 
 XPIDLSRCS = \
   nsIDOMNavigatorNetwork.idl \
   nsIDOMConnection.idl \
-  nsIDOMMobileConnection.idl \
-  nsIMobileConnectionProvider.idl \
   nsIDOMUSSDReceivedEvent.idl \
   nsIDOMTCPSocket.idl \
   $(NULL)
 
+ifdef MOZ_B2G_RIL
+XPIDLSRCS += \
+  nsIDOMMobileConnection.idl \
+  nsIMobileConnectionProvider.idl \
+  nsINavigatorMobileConnection.idl \
+  $(NULL)
+endif
+
 include $(topsrcdir)/config/rules.mk
 
 XPIDL_FLAGS += \
   -I$(topsrcdir)/dom/interfaces/base \
   -I$(topsrcdir)/dom/interfaces/events \
   $(NULL)
--- a/dom/network/interfaces/nsIDOMNavigatorNetwork.idl
+++ b/dom/network/interfaces/nsIDOMNavigatorNetwork.idl
@@ -1,15 +1,13 @@
 /* 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/. */
 
 #include "nsISupports.idl"
 
 interface nsIDOMMozConnection;
-interface nsIDOMMozMobileConnection;
 
-[scriptable, uuid(fb7c3429-aa2c-4ccc-948a-467c0de29fff)]
+[scriptable, uuid(c1685d27-f2e2-4ed9-998f-ff5b1442058f)]
 interface nsIDOMMozNavigatorNetwork : nsISupports
 {
   readonly attribute nsIDOMMozConnection mozConnection;
-  readonly attribute nsIDOMMozMobileConnection mozMobileConnection;
 };
new file mode 100644
--- /dev/null
+++ b/dom/network/interfaces/nsINavigatorMobileConnection.idl
@@ -0,0 +1,13 @@
+/* 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/. */
+
+#include "nsISupports.idl"
+
+interface nsIDOMMozMobileConnection;
+
+[scriptable, uuid(d8672694-3334-4d0d-a4c3-38fa70c265d0)]
+interface nsIMozNavigatorMobileConnection : nsISupports
+{
+  readonly attribute nsIDOMMozMobileConnection mozMobileConnection;
+};