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

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

Issue 1161863002: bluetooth: Add serviceInstanceID to WebBluetoothService (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-get-primary-service-interface
Patch Set: 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 | « no previous file | 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
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 WebBluetoothGATTService_h 5 #ifndef WebBluetoothGATTService_h
6 #define WebBluetoothGATTService_h 6 #define WebBluetoothGATTService_h
7 7
8 #include "public/platform/WebString.h" 8 #include "public/platform/WebString.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 struct WebBluetoothGATTService { 12 struct WebBluetoothGATTService {
13 WebBluetoothGATTService(const WebString& uuid, 13 WebBluetoothGATTService(const WebString& serviceInstanceID,
14 const WebString& uuid,
14 bool isPrimary, 15 bool isPrimary,
15 const WebString& deviceInstanceID) 16 const WebString& deviceInstanceID)
16 : uuid(uuid) 17 : uuid(uuid)
17 , isPrimary(isPrimary) 18 , isPrimary(isPrimary)
18 , deviceInstanceID(deviceInstanceID) 19 , deviceInstanceID(deviceInstanceID)
19 { 20 {
20 } 21 }
21 22
22 // Members corresponding to BluetoothGATTService attributes as 23 // Members corresponding to BluetoothGATTService attributes as
23 // specified in the IDL. 24 // specified in the IDL.
25 const WebString serviceInstanceID;
24 const WebString uuid; 26 const WebString uuid;
25 const bool isPrimary; 27 const bool isPrimary;
26 const WebString deviceInstanceID; 28 const WebString deviceInstanceID;
27 }; 29 };
28 30
29 } // namespace blink 31 } // namespace blink
30 32
31 #endif // WebBluetoothGATTService_h 33 #endif // WebBluetoothGATTService_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698