Bug 814629 - Part 1: MozMobileConnectionArray webidl. f=hsinyi r=khuey

This commit is contained in:
Jessica Jong 2013-11-13 16:50:11 +08:00
parent 8b680d602b
commit 351d9df61e
4 changed files with 19 additions and 3 deletions

View File

@ -789,6 +789,11 @@ DOMInterfaces = {
'nativeType': 'mozilla::dom::CellBroadcast',
},
'MozMobileConnectionArray': {
'nativeType': 'mozilla::dom::network::MobileConnectionArray',
'resultNotAddRefed': [ 'item' ]
},
'MozNamedAttrMap': {
'nativeType': 'nsDOMAttributeMap',
},

View File

@ -0,0 +1,12 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/.
*/
interface MozMobileConnection;
interface MozMobileConnectionArray {
getter MozMobileConnection? item(unsigned long index);
readonly attribute unsigned long length;
};

View File

@ -255,11 +255,9 @@ partial interface Navigator {
};
#ifdef MOZ_B2G_RIL
// nsIMozNavigatorMobileConnection
interface MozMobileConnection;
partial interface Navigator {
[Throws, Func="Navigator::HasMobileConnectionSupport"]
readonly attribute MozMobileConnection mozMobileConnection;
readonly attribute MozMobileConnectionArray mozMobileConnections;
};
partial interface Navigator {

View File

@ -515,6 +515,7 @@ if CONFIG['MOZ_B2G_RIL']:
'MozCellBroadcast.webidl',
'MozCellBroadcastEvent.webidl',
'MozEmergencyCbModeEvent.webidl',
'MozMobileConnectionArray.webidl',
'MozOtaStatusEvent.webidl',
'MozVoicemail.webidl',
'MozVoicemailEvent.webidl',