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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
OLDNEW
« 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