VulpesOS/gaia/tools/extensions/desktop-helper/content/data/lib/bluetooth.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

34 lines
870 B
JavaScript
Executable file

!function() {
function debug(str) {
//dump('Bluetooth : ' + str + '\n');
}
function MockBluetoothRequest() {
}
MockBluetoothRequest.prototype = {
};
FFOS_RUNTIME.makeNavigatorShim('mozBluetooth', {
enabled: true,
addEventListener: function(type, callback, bubble) {},
onenabled: function(event) {},
ondisabled: function(event) {},
onadapteradded: function() {
debug('onadapteradded');
},
getDefaultAdapter: FFOS_RUNTIME.domRequest({
ondevicefound: function() {},
setDiscoverable: function() {},
getPairedDevices: FFOS_RUNTIME.domRequest([]),
startDiscovery: FFOS_RUNTIME.domRequest(),
name: 'I like blue',
setName: FFOS_RUNTIME.domRequest(),
getConnectedDevices: FFOS_RUNTIME.domRequest()
}),
isConnected: function() {
debug('isConnected');
}
});
}();