Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: public/platform/modules/bluetooth/WebBluetooth.h

Issue 1153343002: bluetooth: Add BluetoothGATTCharacteristic IDL and Blink interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-get-primary-service-implementation
Patch Set: BluetoothGATTCharacteristic Interface Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698