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

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

Issue 2466223002: Implement WebBluetooth getDescriptor[s] (Closed)
Patch Set: Ensure that we throw a kGattServerNotConnected error if getDescriptor[s] is called while not connec… 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/WebBluetoothRemoteGATTDescriptor.h
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTDescriptor.h b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTDescriptor.h
new file mode 100644
index 0000000000000000000000000000000000000000..b19b07eac8aa7482ce7be0aed45b20d76035723a
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTDescriptor.h
@@ -0,0 +1,22 @@
+// 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 WebBluetoothRemoteGATTDescriptor_h
+#define WebBluetoothRemoteGATTDescriptor_h
+
+#include "public/platform/WebVector.h"
+
+namespace blink {
+
+// An object through which the embedder can trigger events on a Document-bound
+// Web Bluetooth GATT Descriptor object.
+class WebBluetoothRemoteGATTDescriptor {
+ public:
+ // Used to notify blink that the descriptor's value changed.
+ virtual void dispatchDescriptorValueChanged(const WebVector<uint8_t>&) = 0;
+};
+
+} // namespace blink
+
+#endif // WebBluetoothRemoteGATTDescriptor

Powered by Google App Engine
This is Rietveld 408576698