OLD | NEW |
1 Web Bluetooth | 1 # Web Bluetooth Blink Module |
2 ============= | |
3 | 2 |
4 `Source/modules/bluetooth` implements [Web Bluetooth][WB]. | 3 `Source/modules/bluetooth` implements the renderer process details and bindings |
| 4 for the [Web Bluetooth specification]. It uses the Web Bluetooth Service |
| 5 [mojom] to communicate with the [Web Bluetooth Service]. |
5 | 6 |
6 [WB]: https://webbluetoothcg.github.io/web-bluetooth/ | 7 [Web Bluetooth specification]: https://webbluetoothcg.github.io/web-bluetooth/ |
| 8 [mojom]: ../../../public/platform/modules/bluetooth/web_bluetooth.mojom |
| 9 [Web Bluetooth Service]: /content/browser/bluetooth/ |
7 | 10 |
8 Scanning | 11 |
9 -------------------------------------------------------------------------------- | 12 ## LE only Scanning |
| 13 |
10 There isn't much support for GATT over BR/EDR from neither platforms nor | 14 There isn't much support for GATT over BR/EDR from neither platforms nor |
11 devices so performing a Dual scan will find devices that the API is not | 15 devices so performing a Dual scan will find devices that the API is not |
12 able to interact with. To avoid wasting power and confusing users with | 16 able to interact with. To avoid wasting power and confusing users with |
13 devices they are not able to interact with, navigator.bluetooth.requestDevice | 17 devices they are not able to interact with, navigator.bluetooth.requestDevice |
14 performs an LE-only Scan. | 18 performs an LE-only Scan. |
15 | 19 |
16 Testing | 20 |
17 -------------------------------------------------------------------------------- | 21 ## Testing |
18 | 22 |
19 Bluetooth layout tests in `LayoutTests/bluetooth/` rely on | 23 Bluetooth layout tests in `LayoutTests/bluetooth/` rely on |
20 fake Bluetooth implementation classes constructed in | 24 fake Bluetooth implementation classes constructed in |
21 `content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider`. | 25 `content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider`. |
22 These tests span JavaScript binding to the `device/bluetooth` API layer. | 26 These tests span JavaScript binding to the `device/bluetooth` API layer. |
23 | 27 |
| 28 See also the [Web Bluetooth Fuzzer](testing/clusterfuzz/README.md). |
24 | 29 |
25 Design Documents | 30 |
26 -------------------------------------------------------------------------------- | 31 ## Design Documents |
27 | 32 |
28 See: [Class Diagram of Web Bluetooth through Bluetooth Android][Class] | 33 See: [Class Diagram of Web Bluetooth through Bluetooth Android][Class] |
29 | 34 |
30 [Class]: https://sites.google.com/a/chromium.org/dev/developers/design-documents
/bluetooth-design-docs/web-bluetooth-through-bluetooth-android-class-diagram | 35 [Class]: https://sites.google.com/a/chromium.org/dev/developers/design-documents
/bluetooth-design-docs/web-bluetooth-through-bluetooth-android-class-diagram |
31 | 36 |
OLD | NEW |