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

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: Added BluetoothGATTCharacteristic to global interface test 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
« no previous file with comments | « public/platform/modules/bluetooth/WebBluetooth.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d7e7c5683ba6c76ec42c7cdcd36cd478c09acb0d
--- /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 {
+
+// Contains members corresponding to BluetoothGATTCharacteristic attributes as
+// specified in the IDL.
+struct WebBluetoothGATTCharacteristic {
+ WebBluetoothGATTCharacteristic(const WebString& characteristicInstanceID,
+ const WebString& serviceInstanceID,
+ const WebString& uuid)
+ : characteristicInstanceID(characteristicInstanceID)
+ , serviceInstanceID(serviceInstanceID)
+ , uuid(uuid)
+ {
+ }
+
+ const WebString characteristicInstanceID;
+ const WebString serviceInstanceID;
+ const WebString uuid;
+ // TODO(ortuno): Add 'properties' once CharacteristicProperties is implemented.
+ // const WebCharacteristicProperties properties;
+ const WebArrayBuffer value;
tasak 2015/06/24 05:36:04 WebArrayBuffer is placed under public/web, but thi
ortuno 2015/06/24 16:48:12 Changing it to WebVector wouldn't be too hard. But
+};
+
+} // namespace blink
+
+#endif // WebBluetoothGATTCharacteristic_h
« no previous file with comments | « public/platform/modules/bluetooth/WebBluetooth.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698