Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothRemoteGATTCharacteristicInit.h

Issue 1723723002: bluetooth: Implement Service.getCharacteristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address jyasskin's comments and add moar tests Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 WebBluetoothRemoteGATTCharacteristicInit_h 5 #ifndef WebBluetoothRemoteGATTCharacteristicInit_h
6 #define WebBluetoothRemoteGATTCharacteristicInit_h 6 #define WebBluetoothRemoteGATTCharacteristicInit_h
7 7
8 #include "public/platform/WebString.h" 8 #include "public/platform/WebString.h"
9 #include "public/platform/WebVector.h" 9 #include "public/platform/WebVector.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 // Contains members corresponding to BluetoothRemoteGATTCharacteristic attribute s as 13 // Contains members corresponding to BluetoothRemoteGATTCharacteristic attribute s as
14 // specified in the IDL. 14 // specified in the IDL.
15 struct WebBluetoothRemoteGATTCharacteristicInit { 15 struct WebBluetoothRemoteGATTCharacteristicInit {
16 WebBluetoothRemoteGATTCharacteristicInit(const WebString& characteristicInst anceID, 16 WebBluetoothRemoteGATTCharacteristicInit(const WebString& serviceInstanceID,
17 const WebString& serviceInstanceID, 17 const WebString& characteristicInstanceID,
18 const WebString& uuid, 18 const WebString& uuid,
19 uint32_t characteristicProperties) 19 uint32_t characteristicProperties)
20 : characteristicInstanceID(characteristicInstanceID) 20 : characteristicInstanceID(characteristicInstanceID)
21 , serviceInstanceID(serviceInstanceID) 21 , serviceInstanceID(serviceInstanceID)
22 , uuid(uuid) 22 , uuid(uuid)
23 , characteristicProperties(characteristicProperties) 23 , characteristicProperties(characteristicProperties)
24 { 24 {
25 } 25 }
26 26
27 const WebString characteristicInstanceID; 27 const WebString characteristicInstanceID;
28 const WebString serviceInstanceID; 28 const WebString serviceInstanceID;
29 const WebString uuid; 29 const WebString uuid;
30 const uint32_t characteristicProperties; 30 const uint32_t characteristicProperties;
31 const WebVector<uint8_t> value; 31 const WebVector<uint8_t> value;
32 }; 32 };
33 33
34 } // namespace blink 34 } // namespace blink
35 35
36 #endif // WebBluetoothRemoteGATTCharacteristicInit_h 36 #endif // WebBluetoothRemoteGATTCharacteristicInit_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698