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

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

Issue 1153343002: bluetooth: Add BluetoothGATTCharacteristic IDL and Blink interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-get-primary-service-implementation
Patch Set: Added BluetoothGATTCharacteristic to global interface test 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
« no previous file with comments | « public/platform/modules/bluetooth/WebBluetooth.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WebBluetoothGATTCharacteristic_h
6 #define WebBluetoothGATTCharacteristic_h
7
8 #include "public/platform/WebString.h"
9 #include "public/web/WebArrayBuffer.h"
10
11 namespace blink {
12
13 // Contains members corresponding to BluetoothGATTCharacteristic attributes as
14 // specified in the IDL.
15 struct WebBluetoothGATTCharacteristic {
16 WebBluetoothGATTCharacteristic(const WebString& characteristicInstanceID,
17 const WebString& serviceInstanceID,
18 const WebString& uuid)
19 : characteristicInstanceID(characteristicInstanceID)
20 , serviceInstanceID(serviceInstanceID)
21 , uuid(uuid)
22 {
23 }
24
25 const WebString characteristicInstanceID;
26 const WebString serviceInstanceID;
27 const WebString uuid;
28 // TODO(ortuno): Add 'properties' once CharacteristicProperties is implement ed.
29 // const WebCharacteristicProperties properties;
30 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
31 };
32
33 } // namespace blink
34
35 #endif // WebBluetoothGATTCharacteristic_h
OLDNEW
« no previous file with comments | « public/platform/modules/bluetooth/WebBluetooth.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698