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"
13 // Information describing a Bluetooth device provided by the platform.
14 struct WebBluetoothDevice
{
15 enum class VendorIDSource
{
21 WebBluetoothDevice(const WebString
& instanceID
,
22 const WebString
& name
,
24 VendorIDSource vendorIDSource
,
27 uint16_t productVersion
,
29 const WebVector
<WebString
>& uuids
)
30 : instanceID(instanceID
)
32 , deviceClass(deviceClass
)
33 , vendorIDSource(vendorIDSource
)
35 , productID(productID
)
36 , productVersion(productVersion
)
42 // Members corresponding to BluetoothDevice attributes as specified in IDL.
43 const WebString instanceID
;
45 const int32_t deviceClass
;
46 const VendorIDSource vendorIDSource
;
47 const uint16_t vendorID
;
48 const uint16_t productID
;
49 const uint16_t productVersion
;
51 const WebVector
<WebString
> uuids
;
56 #endif // WebBluetoothDevice_h