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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.h

Issue 1403323007: bluetooth: WIP Advertising Data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-characteristic-properties
Patch Set: Created 5 years, 2 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 | « no previous file | third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.h
new file mode 100644
index 0000000000000000000000000000000000000000..25124c03a8efee47d9b7540333421851f2b19172
--- /dev/null
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.h
@@ -0,0 +1,42 @@
+// 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 BluetoothAdvertisingData_h
+#define BluetoothAdvertisingData_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/bluetooth/ManufacturerDataMap.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+// Represents the data the BLE device is broadcasting.
+class BluetoothAdvertisingData final
+ : public GarbageCollected<BluetoothAdvertisingData>
+ , public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static BluetoothAdvertisingData* create();
+
+ unsigned short appearance(bool& isNull) { isNull = false; return 0; }
+ uint8_t txPower(bool& isNull) { isNull = false; return 0; }
+ uint8_t rssi(bool& isNull) { isNull = false; return 0; }
+ ManufacturerDataMap* manufacturerData() { return m_manufacturerData; }
+ // ServiceDataMap* serviceData() { return m_serviceData; }
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ explicit BluetoothAdvertisingData();
+
+ // unsigned short m_appearance;
+ // uint8_t m_txPower;
+ // uint8_t m_rssi;
+ Member<ManufacturerDataMap> m_manufacturerData;
+ // Member<ServiceDataMap> m_serviceData;
+};
+
+} // namespace blink
+
+#endif // BluetoothAdvertisingData_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698