| 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..0ea2ce01795086534383ffae91fefa43c65b057c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.h
|
| @@ -0,0 +1,37 @@
|
| +// 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 "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +// Represents the data a BLE device is advertising.
|
| +class BluetoothAdvertisingData final
|
| + : public GarbageCollected<BluetoothAdvertisingData>
|
| + , public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +public:
|
| + static BluetoothAdvertisingData* create(int txPower, int rssi);
|
| +
|
| + // IDL exposed interface:
|
| + int8_t txPower(bool& isNull);
|
| + int8_t rssi(bool& isNull);
|
| +
|
| + // Interface required by garbage collection.
|
| + DEFINE_INLINE_TRACE() { }
|
| +
|
| +private:
|
| + explicit BluetoothAdvertisingData(int txPower, int rssi);
|
| +
|
| + int8_t m_txPower;
|
| + int8_t m_rssi;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // BluetoothAdvertisingData_h
|
|
|