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

Side by Side Diff: public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h

Issue 1146163005: bluetooth: Blink-side implementation of getCharacteristic. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-characteristic-interface
Patch Set: getCharacteristic Blink-Side Created 5 years, 6 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 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/web/WebArrayBuffer.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 struct WebBluetoothGATTCharacteristic { 13 struct WebBluetoothGATTCharacteristic {
14 WebBluetoothGATTCharacteristic(const WebString& characteristicInstanceID, 14 WebBluetoothGATTCharacteristic(const WebString& characteristicInstanceID,
15 const WebString& serviceInstanceID, 15 const WebString& serviceInstanceID,
16 const WebString& uuid) 16 const WebString& uuid)
17 : characteristicInstanceID(characteristicInstanceID) 17 : characteristicInstanceID(characteristicInstanceID)
18 , serviceInstanceID(serviceInstanceID) 18 , serviceInstanceID(serviceInstanceID)
19 , uuid(uuid) 19 , uuid(uuid)
20 { 20 {
21 } 21 }
22 22
23 // Members corresponding to BluetoothGATTCharacteristic attributes as 23 // Members corresponding to BluetoothGATTCharacteristic attributes as
24 // specified in the IDL. 24 // specified in the IDL.
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 // const WebCharacteristicProperties properties; 30 // const WebCharacteristicProperties properties;
30 const WebArrayBuffer value; 31 const WebArrayBuffer value;
31 }; 32 };
32 33
33 } // namespace blink 34 } // namespace blink
34 35
35 #endif // WebBluetoothGATTCharacteristic_h 36 #endif // WebBluetoothGATTCharacteristic_h
OLDNEW
« Source/modules/bluetooth/BluetoothGATTService.idl ('K') | « Source/modules/modules.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698