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

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

Issue 1093633003: bluetooh: Define new connectGATT and WebBluetoothGATTRemoteServer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/WebBluetoothGATTRemoteServer.h
diff --git a/public/platform/modules/bluetooth/WebBluetoothGATTRemoteServer.h b/public/platform/modules/bluetooth/WebBluetoothGATTRemoteServer.h
new file mode 100644
index 0000000000000000000000000000000000000000..b02d61a12265af6f7dbdfcf217e87cbd0cb11a1a
--- /dev/null
+++ b/public/platform/modules/bluetooth/WebBluetoothGATTRemoteServer.h
@@ -0,0 +1,29 @@
+// 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 WebBluetoothGATTRemoteServer_h
+#define WebBluetoothGATTRemoteServer_h
+
+#include "public/platform/WebString.h"
+
+namespace blink {
+
+struct WebBluetoothDevice;
scheib 2015/04/18 00:06:52 This seems to no longer be needed.
ortuno 2015/04/20 18:32:44 Oops Done.
+
+struct WebBluetoothGATTRemoteServer {
Jeffrey Yasskin 2015/04/17 23:45:08 Should you also be adding an .idl file to define t
ortuno 2015/04/20 18:32:44 I added the .idl files in this patch: https://code
+ WebBluetoothGATTRemoteServer(const WebString& instanceID, bool connected)
Jeffrey Yasskin 2015/04/17 23:45:08 Maybe "deviceInstanceID"? to make it clear what ki
ortuno 2015/04/20 18:32:44 Done.
+ : instanceID(instanceID)
+ , connected(connected)
+ {
+ }
+
+ // Members corresponding to BluetoothGATTRemoteServer attribute as
Jeffrey Yasskin 2015/04/17 23:45:08 s/attribute/attributes/
ortuno 2015/04/20 18:32:44 Done.
+ // specified in the IDL.
+ const WebString instanceID;
+ const bool connected;
+};
+
+} // namespace blink
+
+#endif // WebBluetoothGATTRemoteServer_h

Powered by Google App Engine
This is Rietveld 408576698