Chromium Code Reviews| Index: public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h |
| diff --git a/public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h b/public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d7e7c5683ba6c76ec42c7cdcd36cd478c09acb0d |
| --- /dev/null |
| +++ b/public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebBluetoothGATTCharacteristic_h |
| +#define WebBluetoothGATTCharacteristic_h |
| + |
| +#include "public/platform/WebString.h" |
| +#include "public/web/WebArrayBuffer.h" |
| + |
| +namespace blink { |
| + |
| +// Contains members corresponding to BluetoothGATTCharacteristic attributes as |
| +// specified in the IDL. |
| +struct WebBluetoothGATTCharacteristic { |
| + WebBluetoothGATTCharacteristic(const WebString& characteristicInstanceID, |
| + const WebString& serviceInstanceID, |
| + const WebString& uuid) |
| + : characteristicInstanceID(characteristicInstanceID) |
| + , serviceInstanceID(serviceInstanceID) |
| + , uuid(uuid) |
| + { |
| + } |
| + |
| + const WebString characteristicInstanceID; |
| + const WebString serviceInstanceID; |
| + const WebString uuid; |
| + // TODO(ortuno): Add 'properties' once CharacteristicProperties is implemented. |
| + // const WebCharacteristicProperties properties; |
| + const WebArrayBuffer value; |
|
tasak
2015/06/24 05:36:04
WebArrayBuffer is placed under public/web, but thi
ortuno
2015/06/24 16:48:12
Changing it to WebVector wouldn't be too hard. But
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebBluetoothGATTCharacteristic_h |