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