Bug 920551 - 2.e/2: fix MobileConnection. r=hsinyi,khuey

This commit is contained in:
Vicamo Yang 2013-10-25 11:07:33 +08:00
parent 20124653ee
commit 16b712e932
6 changed files with 12 additions and 7 deletions

View File

@ -820,9 +820,6 @@ pref("gfx.canvas.skiagl.dynamic-cache", true);
// Cell Broadcast API
pref("ril.cellbroadcast.disabled", false);
// Mobile Connection API
pref("dom.mobileconnection.enabled", true);
// Voice Mail API
pref("dom.voicemail.enabled", true);

View File

@ -39,8 +39,8 @@
#include "nsGlobalWindow.h"
#ifdef MOZ_B2G_RIL
#include "mozilla/dom/IccManager.h"
#include "MobileConnection.h"
#include "mozilla/dom/CellBroadcast.h"
#include "mozilla/dom/network/MobileConnection.h"
#include "mozilla/dom/Voicemail.h"
#endif
#include "nsIIdleObserver.h"

View File

@ -6,10 +6,8 @@
XPIDL_SOURCES += [
'nsIDOMConnection.idl',
'nsIDOMDataErrorEvent.idl',
'nsIDOMTCPServerSocket.idl',
'nsIDOMTCPSocket.idl',
'nsIDOMUSSDReceivedEvent.idl',
'nsIMozNavigatorNetwork.idl',
'nsITCPServerSocketChild.idl',
'nsITCPServerSocketParent.idl',
@ -20,11 +18,13 @@ XPIDL_SOURCES += [
if CONFIG['MOZ_B2G_RIL']:
XPIDL_SOURCES += [
'nsIDOMCFStateChangeEvent.idl',
'nsIDOMDataErrorEvent.idl',
'nsIDOMMobileConnection.idl',
'nsIDOMMozEmergencyCbModeEvent.idl',
'nsIDOMMozOtaStatusEvent.idl',
'nsIDOMNetworkStats.idl',
'nsIDOMNetworkStatsManager.idl',
'nsIDOMUSSDReceivedEvent.idl',
'nsIMobileConnectionProvider.idl',
'nsINetworkStatsServiceProxy.idl',
]

View File

@ -2,7 +2,8 @@
* 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 "MobileConnection.h"
#include "mozilla/dom/network/MobileConnection.h"
#include "GeneratedEvents.h"
#include "mozilla/Preferences.h"
#include "nsDOMEvent.h"

View File

@ -22,6 +22,9 @@ CPP_SOURCES += [
]
if CONFIG['MOZ_B2G_RIL']:
EXPORTS.mozilla.dom.network += [
'MobileConnection.h',
]
CPP_SOURCES += [
'MobileConnection.cpp',
]

View File

@ -4509,7 +4509,11 @@ pref("dom.icc.enabled", false);
#endif
// Mobile Connection API
#ifdef MOZ_B2G_RIL
pref("dom.mobileconnection.enabled", true);
#else
pref("dom.mobileconnection.enabled", false);
#endif
// Voice Mail API
pref("dom.voicemail.enabled", false);