| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebBluetooth_h | 5 #ifndef WebBluetooth_h |
| 6 #define WebBluetooth_h | 6 #define WebBluetooth_h |
| 7 | 7 |
| 8 #include "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "public/platform/WebPassOwnPtr.h" | 9 #include "public/platform/WebPassOwnPtr.h" |
| 10 #include "public/platform/WebString.h" | 10 #include "public/platform/WebString.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual void requestDevice(const WebRequestDeviceOptions&, WebBluetoothReque
stDeviceCallbacks*) { } | 53 virtual void requestDevice(const WebRequestDeviceOptions&, WebBluetoothReque
stDeviceCallbacks*) { } |
| 54 | 54 |
| 55 // BluetoothDevice methods: | 55 // BluetoothDevice methods: |
| 56 // See https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetooth
device | 56 // See https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetooth
device |
| 57 // WebBluetoothConnectGATTCallbacks ownership transferred to the callee. | 57 // WebBluetoothConnectGATTCallbacks ownership transferred to the callee. |
| 58 virtual void connectGATT(const WebString& deviceId, | 58 virtual void connectGATT(const WebString& deviceId, |
| 59 WebBluetoothConnectGATTCallbacks*) { } | 59 WebBluetoothConnectGATTCallbacks*) { } |
| 60 | 60 |
| 61 // BluetoothGATTRemoteServer methods: | 61 // BluetoothGATTRemoteServer methods: |
| 62 // See https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetooth
gattremoteserver | 62 // See https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetooth
gattremoteserver |
| 63 virtual void disconnect() { } | 63 virtual void disconnect(const WebString& deviceId) = 0; |
| 64 virtual void getPrimaryService(const WebString& deviceId, | 64 virtual void getPrimaryService(const WebString& deviceId, |
| 65 const WebString& serviceUUID, | 65 const WebString& serviceUUID, |
| 66 WebBluetoothGetPrimaryServiceCallbacks*) { } | 66 WebBluetoothGetPrimaryServiceCallbacks*) { } |
| 67 // virtual void getPrimaryServices() { } | 67 // virtual void getPrimaryServices() { } |
| 68 | 68 |
| 69 // BluetoothGATTService methods: | 69 // BluetoothGATTService methods: |
| 70 // See https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetooth
gattservice | 70 // See https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetooth
gattservice |
| 71 virtual void getCharacteristic(const WebString& serviceInstanceID, | 71 virtual void getCharacteristic(const WebString& serviceInstanceID, |
| 72 const WebString& characteristicUUID, | 72 const WebString& characteristicUUID, |
| 73 WebBluetoothGetCharacteristicCallbacks*) { } | 73 WebBluetoothGetCharacteristicCallbacks*) { } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 91 const WebString& characteristicInstanceID, | 91 const WebString& characteristicInstanceID, |
| 92 WebBluetoothGATTCharacteristic*) = 0; | 92 WebBluetoothGATTCharacteristic*) = 0; |
| 93 virtual void characteristicObjectRemoved( | 93 virtual void characteristicObjectRemoved( |
| 94 const WebString& characteristicInstanceID, | 94 const WebString& characteristicInstanceID, |
| 95 WebBluetoothGATTCharacteristic*) {} | 95 WebBluetoothGATTCharacteristic*) {} |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace blink | 98 } // namespace blink |
| 99 | 99 |
| 100 #endif // WebBluetooth_h | 100 #endif // WebBluetooth_h |
| OLD | NEW |