| 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 "platform/heap/Handle.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 // Represents the data a BLE device is advertising. | |
| 14 class BluetoothAdvertisingData final | |
| 15 : public GarbageCollected<BluetoothAdvertisingData> | |
| 16 , public ScriptWrappable { | |
| 17 DEFINE_WRAPPERTYPEINFO(); | |
| 18 public: | |
| 19 static BluetoothAdvertisingData* create(int8_t txPower, int8_t rssi); | |
| 20 | |
| 21 // IDL exposed interface: | |
| 22 int8_t txPower(bool& isNull); | |
| 23 int8_t rssi(bool& isNull); | |
| 24 | |
| 25 // Interface required by garbage collection. | |
| 26 DEFINE_INLINE_TRACE() { } | |
| 27 | |
| 28 private: | |
| 29 explicit BluetoothAdvertisingData(int8_t txPower, int8_t rssi); | |
| 30 | |
| 31 int8_t m_txPower; | |
| 32 int8_t m_rssi; | |
| 33 }; | |
| 34 | |
| 35 } // namespace blink | |
| 36 | |
| 37 #endif // BluetoothAdvertisingData_h | |
| OLD | NEW |