OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 WebBluetoothGATTCharacteristic_h | 5 #ifndef WebBluetoothGATTCharacteristic_h |
6 #define WebBluetoothGATTCharacteristic_h | 6 #define WebBluetoothGATTCharacteristic_h |
7 | 7 |
8 #include "public/platform/WebString.h" | 8 #include "public/platform/WebString.h" |
9 #include "public/web/WebArrayBuffer.h" | 9 #include "public/platform/WebVector.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 // Contains members corresponding to BluetoothGATTCharacteristic attributes as | 13 // Contains members corresponding to BluetoothGATTCharacteristic attributes as |
14 // specified in the IDL. | 14 // specified in the IDL. |
15 struct WebBluetoothGATTCharacteristic { | 15 struct WebBluetoothGATTCharacteristic { |
16 WebBluetoothGATTCharacteristic(const WebString& characteristicInstanceID, | 16 WebBluetoothGATTCharacteristic(const WebString& characteristicInstanceID, |
17 const WebString& serviceInstanceID, | 17 const WebString& serviceInstanceID, |
18 const WebString& uuid) | 18 const WebString& uuid) |
19 : characteristicInstanceID(characteristicInstanceID) | 19 : characteristicInstanceID(characteristicInstanceID) |
20 , serviceInstanceID(serviceInstanceID) | 20 , serviceInstanceID(serviceInstanceID) |
21 , uuid(uuid) | 21 , uuid(uuid) |
22 { | 22 { |
23 } | 23 } |
24 | 24 |
25 const WebString characteristicInstanceID; | 25 const WebString characteristicInstanceID; |
26 const WebString serviceInstanceID; | 26 const WebString serviceInstanceID; |
27 const WebString uuid; | 27 const WebString uuid; |
28 // TODO(ortuno): Add 'properties' once CharacteristicProperties is implement
ed. | 28 // TODO(ortuno): Add 'properties' once CharacteristicProperties is implement
ed. |
29 // https://crbug.com/483345 | 29 // https://crbug.com/483345 |
30 // const WebCharacteristicProperties properties; | 30 // const WebCharacteristicProperties properties; |
31 const WebArrayBuffer value; | 31 const WebVector<uint8_t> value; |
32 }; | 32 }; |
33 | 33 |
34 } // namespace blink | 34 } // namespace blink |
35 | 35 |
36 #endif // WebBluetoothGATTCharacteristic_h | 36 #endif // WebBluetoothGATTCharacteristic_h |
OLD | NEW |