Chromium Code Reviews| Index: public/platform/modules/bluetooth/WebBluetooth.h |
| diff --git a/public/platform/modules/bluetooth/WebBluetooth.h b/public/platform/modules/bluetooth/WebBluetooth.h |
| index 1a22f2ef84c9ce984854cfad176baeb1b140b002..0a5083172e1731c37c875aee38a259283e7dd1d5 100644 |
| --- a/public/platform/modules/bluetooth/WebBluetooth.h |
| +++ b/public/platform/modules/bluetooth/WebBluetooth.h |
| @@ -12,6 +12,7 @@ namespace blink { |
| struct WebBluetoothDevice; |
| struct WebBluetoothError; |
| +struct WebBluetoothGATTCharacteristic; |
| struct WebBluetoothGATTRemoteServer; |
| struct WebBluetoothGATTService; |
| @@ -25,6 +26,9 @@ typedef WebCallbacks<WebBluetoothGATTRemoteServer, WebBluetoothError> WebBluetoo |
| // Success and failure callbacks for getPrimaryService. |
| typedef WebCallbacks<WebBluetoothGATTService, WebBluetoothError> WebBluetoothGetPrimaryServiceCallbacks; |
| +// Success and failure callbacks for getCharacteristic. |
|
scheib
2015/06/03 02:52:18
Add:
// WebBluetoothGATTCharacteristic and WebBlue
ortuno
2015/06/03 19:30:45
Done.
|
| +typedef WebCallbacks<WebBluetoothGATTCharacteristic, WebBluetoothError> WebBluetoothGetCharacteristicCallbacks; |
| + |
| class WebBluetooth { |
| public: |
| virtual ~WebBluetooth() { } |
| @@ -47,6 +51,12 @@ public: |
| const WebString& serviceUUID, |
| WebBluetoothGetPrimaryServiceCallbacks*) { } |
| // virtual void getPrimaryServices() { } |
| + |
| + // BluetoothGATTService methods: |
| + // See https://webbluetoothcg.github.io/web-bluetooth/#idl-def-bluetoothgattservice |
| + virtual void getCharacteristic(const WebString& serviceInstanceID, |
| + const WebString& characteristicUUID, |
| + WebBluetoothGetCharacteristicCallbacks*) { } |
| }; |
| } // namespace blink |