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

Side by Side Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h

Issue 1564953003: bluetooth: Remove BluetoothDevice.paired (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebBluetoothDevice_h 5 #ifndef WebBluetoothDevice_h
6 #define WebBluetoothDevice_h 6 #define WebBluetoothDevice_h
7 7
8 #include "public/platform/WebString.h" 8 #include "public/platform/WebString.h"
9 #include "public/platform/WebVector.h" 9 #include "public/platform/WebVector.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 // Information describing a Bluetooth device provided by the platform. 13 // Information describing a Bluetooth device provided by the platform.
14 struct WebBluetoothDevice { 14 struct WebBluetoothDevice {
15 enum class VendorIDSource { 15 enum class VendorIDSource {
16 Unknown, 16 Unknown,
17 Bluetooth, 17 Bluetooth,
18 USB 18 USB
19 }; 19 };
20 20
21 WebBluetoothDevice(const WebString& id, 21 WebBluetoothDevice(const WebString& id,
22 const WebString& name, 22 const WebString& name,
23 int8_t txPower, 23 int8_t txPower,
24 int8_t rssi, 24 int8_t rssi,
25 int32_t deviceClass, 25 int32_t deviceClass,
26 VendorIDSource vendorIDSource, 26 VendorIDSource vendorIDSource,
27 uint16_t vendorID, 27 uint16_t vendorID,
28 uint16_t productID, 28 uint16_t productID,
29 uint16_t productVersion, 29 uint16_t productVersion,
30 bool paired,
31 const WebVector<WebString>& uuids) 30 const WebVector<WebString>& uuids)
32 : id(id) 31 : id(id)
33 , name(name) 32 , name(name)
34 , txPower(txPower) 33 , txPower(txPower)
35 , rssi(rssi) 34 , rssi(rssi)
36 , deviceClass(deviceClass) 35 , deviceClass(deviceClass)
37 , vendorIDSource(vendorIDSource) 36 , vendorIDSource(vendorIDSource)
38 , vendorID(vendorID) 37 , vendorID(vendorID)
39 , productID(productID) 38 , productID(productID)
40 , productVersion(productVersion) 39 , productVersion(productVersion)
41 , paired(paired)
42 , uuids(uuids) 40 , uuids(uuids)
43 { 41 {
44 } 42 }
45 43
46 // Members corresponding to BluetoothDevice attributes as specified in IDL. 44 // Members corresponding to BluetoothDevice attributes as specified in IDL.
47 const WebString id; 45 const WebString id;
48 const WebString name; 46 const WebString name;
49 // Powers: 47 // Powers:
50 // A value of 127 denotes an invalid power. 48 // A value of 127 denotes an invalid power.
51 const int8_t txPower; 49 const int8_t txPower;
52 const int8_t rssi; 50 const int8_t rssi;
53 const int32_t deviceClass; 51 const int32_t deviceClass;
54 const VendorIDSource vendorIDSource; 52 const VendorIDSource vendorIDSource;
55 const uint16_t vendorID; 53 const uint16_t vendorID;
56 const uint16_t productID; 54 const uint16_t productID;
57 const uint16_t productVersion; 55 const uint16_t productVersion;
58 const bool paired;
59 const WebVector<WebString> uuids; 56 const WebVector<WebString> uuids;
60 }; 57 };
61 58
62 } // namespace blink 59 } // namespace blink
63 60
64 #endif // WebBluetoothDevice_h 61 #endif // WebBluetoothDevice_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698