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

Unified Diff: public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.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/WebBluetoothGATTCharacteristic.h
diff --git a/public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h b/public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h
new file mode 100644
index 0000000000000000000000000000000000000000..3cc66fc29ee6105237c428df611efe9e94563a84
--- /dev/null
+++ b/public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebBluetoothGATTCharacteristic_h
+#define WebBluetoothGATTCharacteristic_h
+
+#include "public/platform/WebString.h"
+#include "public/web/WebArrayBuffer.h"
+
+namespace blink {
+
+struct WebBluetoothGATTCharacteristic {
+ WebBluetoothGATTCharacteristic(const WebString& characteristicInstanceID,
+ const WebString& serviceInstanceID,
+ const WebString& uuid)
+ : characteristicInstanceID(characteristicInstanceID)
+ , serviceInstanceID(serviceInstanceID)
+ , uuid(uuid)
+ {
+ }
+
+ // Members corresponding to BluetoothGATTCharacteristic attributes as
scheib 2015/06/03 02:52:18 Let's change the pattern to having this be a class
ortuno 2015/06/03 19:30:45 Done.
+ // specified in the IDL.
+ const WebString characteristicInstanceID;
+ const WebString serviceInstanceID;
+ const WebString uuid;
+ // TODO(ortuno): Add 'properties' once CharacteristicProperties is implemented.
+ // const WebCharacteristicProperties properties;
+ const WebArrayBuffer value;
+};
+
+} // namespace blink
+
+#endif // WebBluetoothGATTCharacteristic_h

Powered by Google App Engine
This is Rietveld 408576698