Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "public/platform/modules/bluetooth/WebBluetoothDevice.h" |
|
scheib
2015/04/13 17:46:34
ditto
| |
| 6 #define WebBluetoothDevice_h | |
| 7 | |
| 8 #include "WebString.h" | |
| 9 #include "WebVector.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 // Information describing a Bluetooth device provided by the platform. | |
| 14 struct WebBluetoothDevice { | |
| 15 enum class VendorIDSource { | |
| 16 Unknown, | |
| 17 Bluetooth, | |
| 18 USB | |
| 19 }; | |
| 20 | |
| 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 bool connected, | |
| 30 const WebVector<WebString>& uuids) | |
| 31 : instanceID(instanceID) | |
| 32 , name(name) | |
| 33 , deviceClass(deviceClass) | |
| 34 , vendorIDSource(vendorIDSource) | |
| 35 , vendorID(vendorID) | |
| 36 , productID(productID) | |
| 37 , productVersion(productVersion) | |
| 38 , paired(paired) | |
| 39 , connected(connected) | |
| 40 , uuids(uuids) | |
| 41 { | |
| 42 } | |
| 43 | |
| 44 // Members corresponding to BluetoothDevice attributes as specified in IDL. | |
| 45 const WebString instanceID; | |
| 46 const WebString name; | |
| 47 const int32_t deviceClass; | |
| 48 const VendorIDSource vendorIDSource; | |
| 49 const uint16_t vendorID; | |
| 50 const uint16_t productID; | |
| 51 const uint16_t productVersion; | |
| 52 const bool paired; | |
| 53 const bool connected; | |
| 54 const WebVector<WebString> uuids; | |
| 55 }; | |
| 56 | |
| 57 } // namespace blink | |
| 58 | |
| 59 #endif // WebBluetoothDevice_h | |
| OLD | NEW |