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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.h

Issue 1945823003: bluetooth: Remove BluetoothAdvertisementData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix test Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698