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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTDescriptorInit.h

Issue 2466223002: Implement WebBluetooth getDescriptor[s] (Closed)
Patch Set: Addressing code review comments from ortuno (still working on test changes) Created 4 years, 1 month 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: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTDescriptorInit.h
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTDescriptorInit.h b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTDescriptorInit.h
new file mode 100644
index 0000000000000000000000000000000000000000..ba25b2c0b464f2ba88cbabea2e513fc3302fe50d
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTDescriptorInit.h
@@ -0,0 +1,32 @@
+// 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 WebBluetoothRemoteGATTDescriptorInit_h
+#define WebBluetoothRemoteGATTDescriptorInit_h
+
+#include "public/platform/WebString.h"
+#include "public/platform/WebVector.h"
+
+namespace blink {
+
+// Contains members corresponding to BluetoothGATTDescriptor
+// attributes as specified in the IDL.
+struct WebBluetoothRemoteGATTDescriptorInit {
+ WebBluetoothRemoteGATTDescriptorInit(
+ const WebString& characteristicInstanceID,
+ const WebString& descriptorInstanceID,
+ const WebString& uuid)
+ : characteristicInstanceID(characteristicInstanceID), // dougt??
ortuno 2016/11/22 03:02:02 You forgot to remove :p
dougt 2016/11/29 22:50:48 Done.
+ descriptorInstanceID(descriptorInstanceID),
+ uuid(uuid) {}
+
+ const WebString characteristicInstanceID;
+ const WebString descriptorInstanceID;
+ const WebString uuid;
+ const WebVector<uint8_t> value;
+};
+
+} // namespace blink
+
+#endif // WebBluetoothRemoteGATTDescriptorInit_h

Powered by Google App Engine
This is Rietveld 408576698