Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / modules / bluetooth / WebBluetoothDevice.h
bloba357987c9e721a2a6c1cfc00216d6eba17dbd7fb
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
3 // found in the LICENSE file.
5 #ifndef WebBluetoothDevice_h
6 #define WebBluetoothDevice_h
8 #include "public/platform/WebString.h"
9 #include "public/platform/WebVector.h"
11 namespace blink {
13 // Information describing a Bluetooth device provided by the platform.
14 struct WebBluetoothDevice {
15 enum class VendorIDSource {
16 Unknown,
17 Bluetooth,
18 USB
21 WebBluetoothDevice(const WebString& instanceID,
22 const WebString& name,
23 int32_t deviceClass,
24 VendorIDSource vendorIDSource,
25 uint16_t vendorID,
26 uint16_t productID,
27 uint16_t productVersion,
28 bool paired,
29 const WebVector<WebString>& uuids)
30 : instanceID(instanceID)
31 , name(name)
32 , deviceClass(deviceClass)
33 , vendorIDSource(vendorIDSource)
34 , vendorID(vendorID)
35 , productID(productID)
36 , productVersion(productVersion)
37 , paired(paired)
38 , uuids(uuids)
42 // Members corresponding to BluetoothDevice attributes as specified in IDL.
43 const WebString instanceID;
44 const WebString name;
45 const int32_t deviceClass;
46 const VendorIDSource vendorIDSource;
47 const uint16_t vendorID;
48 const uint16_t productID;
49 const uint16_t productVersion;
50 const bool paired;
51 const WebVector<WebString> uuids;
54 } // namespace blink
56 #endif // WebBluetoothDevice_h