Bug 1074673: Mark certified apps only APIs for new WebBluetooth API. r=btian, r=bz

This commit is contained in:
Jocelyn Liu 2014-10-01 17:43:26 +08:00
Родитель 3a0aa4fd2d
Коммит 21b16539e8
1 изменённых файлов: 15 добавлений и 14 удалений

Просмотреть файл

@ -35,6 +35,7 @@ dictionary MediaPlayStatus
[CheckPermissions="bluetooth"]
interface BluetoothAdapter : EventTarget {
readonly attribute BluetoothAdapterState state;
[AvailableIn=CertifiedApps]
readonly attribute DOMString address;
readonly attribute DOMString name;
readonly attribute boolean discoverable;
@ -93,7 +94,7 @@ interface BluetoothAdapter : EventTarget {
sequence<BluetoothDevice> getPairedDevices();
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest getConnectedDevices(unsigned short serviceUuid);
/**
@ -113,26 +114,26 @@ interface BluetoothAdapter : EventTarget {
* @param device Remote device
* @param profile 2-octets service UUID. This is optional.
*/
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest connect(BluetoothDevice device, optional unsigned short serviceUuid);
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest disconnect(BluetoothDevice device, optional unsigned short serviceUuid);
// One device can only send one file at a time
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest sendFile(DOMString deviceAddress, Blob blob);
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest stopSendingFile(DOMString deviceAddress);
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest confirmReceivingFile(DOMString deviceAddress, boolean confirmation);
// Connect/Disconnect SCO (audio) connection
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest connectSco();
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest disconnectSco();
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest isScoConnected();
/**
@ -145,17 +146,17 @@ interface BluetoothAdapter : EventTarget {
*
* For more information please refer to bug 912005 and 925638.
*/
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest answerWaitingCall();
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest ignoreWaitingCall();
[NewObject, Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest toggleCalls();
// AVRCP 1.3 methods
[NewObject,Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest sendMediaMetaData(optional MediaMetaData mediaMetaData);
[NewObject,Throws]
[NewObject, Throws, AvailableIn=CertifiedApps]
DOMRequest sendMediaPlayStatus(optional MediaPlayStatus mediaPlayStatus);
};