| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BluetoothAdvertisingData_h |
| 6 #define BluetoothAdvertisingData_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "modules/bluetooth/ManufacturerDataMap.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 // Represents the data the BLE device is broadcasting. |
| 15 class BluetoothAdvertisingData final |
| 16 : public GarbageCollected<BluetoothAdvertisingData> |
| 17 , public ScriptWrappable { |
| 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 public: |
| 20 static BluetoothAdvertisingData* create(); |
| 21 |
| 22 unsigned short appearance(bool& isNull) { isNull = false; return 0; } |
| 23 uint8_t txPower(bool& isNull) { isNull = false; return 0; } |
| 24 uint8_t rssi(bool& isNull) { isNull = false; return 0; } |
| 25 ManufacturerDataMap* manufacturerData() { return m_manufacturerData; } |
| 26 // ServiceDataMap* serviceData() { return m_serviceData; } |
| 27 |
| 28 DECLARE_VIRTUAL_TRACE(); |
| 29 |
| 30 private: |
| 31 explicit BluetoothAdvertisingData(); |
| 32 |
| 33 // unsigned short m_appearance; |
| 34 // uint8_t m_txPower; |
| 35 // uint8_t m_rssi; |
| 36 Member<ManufacturerDataMap> m_manufacturerData; |
| 37 // Member<ServiceDataMap> m_serviceData; |
| 38 }; |
| 39 |
| 40 } // namespace blink |
| 41 |
| 42 #endif // BluetoothAdvertisingData_h |
| OLD | NEW |