Vincent Scheib | ff0919b | 2017-05-10 04:42:13 | [diff] [blame] | 1 | # Web Bluetooth Service in Content |
scheib | f5e16bc | 2016-01-29 19:05:28 | [diff] [blame] | 2 | |
Vincent Scheib | ff0919b | 2017-05-10 04:42:13 | [diff] [blame] | 3 | `content/*/bluetooth` implements the [Web Bluetooth specification] |
| 4 | using the [/device/bluetooth] code module. |
scheib | f5e16bc | 2016-01-29 19:05:28 | [diff] [blame] | 5 | |
Vincent Scheib | ff0919b | 2017-05-10 04:42:13 | [diff] [blame] | 6 | This service is exposed to the web in the [blink bluetooth module]. |
scheib | f5e16bc | 2016-01-29 19:05:28 | [diff] [blame] | 7 | |
Vincent Scheib | ff0919b | 2017-05-10 04:42:13 | [diff] [blame] | 8 | [Web Bluetooth specification]: https://webbluetoothcg.github.io/web-bluetooth/ |
| 9 | [/device/bluetooth]: /device/bluetooth |
| 10 | [blink bluetooth module]: /third_party/WebKit/Source/modules/bluetooth/ |
| 11 | |
| 12 | |
| 13 | ## Testing |
scheib | f5e16bc | 2016-01-29 19:05:28 | [diff] [blame] | 14 | |
| 15 | Bluetooth layout tests in `third_party/WebKit/LayoutTests/bluetooth/` rely on |
| 16 | fake Bluetooth implementation classes constructed in |
| 17 | `content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider`. |
| 18 | These tests span JavaScript binding to the `device/bluetooth` API layer. |
| 19 | |
| 20 | |
Vincent Scheib | ff0919b | 2017-05-10 04:42:13 | [diff] [blame] | 21 | ## Design Documents |
scheib | f5e16bc | 2016-01-29 19:05:28 | [diff] [blame] | 22 | |
| 23 | See: [Class Diagram of Web Bluetooth through Bluetooth Android][Class] |
| 24 | |
| 25 | [Class]: https://sites.google.com/a/chromium.org/dev/developers/design-documents/bluetooth-design-docs/web-bluetooth-through-bluetooth-android-class-diagram |
| 26 | |