tree: 3b5ff5b5ac1f820108c34f1304442fecce9df0b4 [path history] [tgz]
  1. testing/
  2. Bluetooth.cpp
  3. Bluetooth.h
  4. Bluetooth.idl
  5. BluetoothAttributeInstanceMap.cpp
  6. BluetoothAttributeInstanceMap.h
  7. BluetoothCharacteristicProperties.cpp
  8. BluetoothCharacteristicProperties.h
  9. BluetoothCharacteristicProperties.idl
  10. BluetoothDevice.cpp
  11. BluetoothDevice.h
  12. BluetoothDevice.idl
  13. BluetoothError.cpp
  14. BluetoothError.h
  15. BluetoothRemoteGATTCharacteristic.cpp
  16. BluetoothRemoteGATTCharacteristic.h
  17. BluetoothRemoteGATTCharacteristic.idl
  18. BluetoothRemoteGATTDescriptor.cpp
  19. BluetoothRemoteGATTDescriptor.h
  20. BluetoothRemoteGATTDescriptor.idl
  21. BluetoothRemoteGATTServer.cpp
  22. BluetoothRemoteGATTServer.h
  23. BluetoothRemoteGATTServer.idl
  24. BluetoothRemoteGATTService.cpp
  25. BluetoothRemoteGATTService.h
  26. BluetoothRemoteGATTService.idl
  27. BluetoothRemoteGATTUtils.cpp
  28. BluetoothRemoteGATTUtils.h
  29. BluetoothScanFilterInit.idl
  30. BluetoothUUID.cpp
  31. BluetoothUUID.h
  32. BluetoothUUID.idl
  33. BUILD.gn
  34. DEPS
  35. NavigatorBluetooth.cpp
  36. NavigatorBluetooth.h
  37. NavigatorBluetooth.idl
  38. OWNERS
  39. README.md
  40. RequestDeviceOptions.idl
third_party/WebKit/Source/modules/bluetooth/README.md

Web Bluetooth

Source/modules/bluetooth implements Web Bluetooth.

Scanning

There isn't much support for GATT over BR/EDR from neither platforms nor devices so performing a Dual scan will find devices that the API is not able to interact with. To avoid wasting power and confusing users with devices they are not able to interact with, navigator.bluetooth.requestDevice performs an LE-only Scan.

Testing

Bluetooth layout tests in LayoutTests/bluetooth/ rely on fake Bluetooth implementation classes constructed in content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider. These tests span JavaScript binding to the device/bluetooth API layer.

Design Documents

See: Class Diagram of Web Bluetooth through Bluetooth Android