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

Side by Side Diff: Source/modules/bluetooth/BluetoothDevice.idl

Issue 876623003: bluetooth: New WebBluetoothDevice attributes plumbed to BluetoothDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bt-1-
Patch Set: Created 5 years, 10 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 | « Source/modules/bluetooth/BluetoothDevice.cpp ('k') | public/platform/WebBluetoothDevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // https://webbluetoothcg.github.io/web-bluetooth/#idl-def-BluetoothDevice 5 // https://webbluetoothcg.github.io/web-bluetooth/#idl-def-BluetoothDevice
6 6
7 // Implement BluetoothDevice interface: http://crbug.com/421668 7 // Implement BluetoothDevice interface: http://crbug.com/421668
8 // enum VendorIDSource { 8
9 // "bluetooth", 9 enum VendorIDSource {
10 // "usb" 10 "bluetooth",
11 // }; 11 "usb"
12 };
13
14 typedef DOMString UUID;
12 15
13 [ 16 [
14 GarbageCollected, 17 GarbageCollected,
15 NoInterfaceObject, 18 NoInterfaceObject,
16 RuntimeEnabled=Bluetooth, 19 RuntimeEnabled=Bluetooth,
17 ] interface BluetoothDevice 20 ] interface BluetoothDevice
18 // Implement ServiceEventHandlers interface: http://crbug.com/421670 21 // Implement ServiceEventHandlers interface: http://crbug.com/421670
19 // : ServiceEventHandlers 22 // : ServiceEventHandlers
20 { 23 {
21 // Implement BluetoothDevice interface: http://crbug.com/421668 24 // Implement BluetoothDevice interface: http://crbug.com/421668
22 readonly attribute DOMString instanceID; 25 readonly attribute DOMString instanceID;
23 // readonly attribute DOMString? name; 26 readonly attribute DOMString? name;
24 // readonly attribute long? deviceClass; 27 readonly attribute unsigned long? deviceClass;
25 // readonly attribute VendorIDSource? vendorIDSource; 28 readonly attribute VendorIDSource? vendorIDSource;
26 // readonly attribute long? vendorID; 29 readonly attribute unsigned long? vendorID;
27 // readonly attribute long? productID; 30 readonly attribute unsigned long? productID;
28 // readonly attribute long? productVersion; 31 readonly attribute unsigned long? productVersion;
29 // readonly attribute boolean? paired; 32 readonly attribute boolean? paired;
30 // readonly attribute boolean? connected; 33 readonly attribute boolean? connected;
31 // readonly attribute sequence<UUID>? uuids; 34 readonly attribute sequence<UUID>? uuids;
32 // Promise<void> connect (); 35 // Promise<void> connect ();
33 // Promise<void> disconnect (); 36 // Promise<void> disconnect ();
34 // Promise<BluetoothGATTService> getService (BluetoothServiceUuid ser vice); 37 // Promise<BluetoothGATTService> getService (BluetoothServiceUuid ser vice);
35 // Promise<BluetoothGATTServiceSequence> getAllServices (); 38 // Promise<BluetoothGATTServiceSequence> getAllServices ();
36 // Promise<BluetoothGATTServiceSequence> getAllServices (BluetoothServiceUuid service); 39 // Promise<BluetoothGATTServiceSequence> getAllServices (BluetoothServiceUuid service);
37 // Promise<BluetoothGATTServiceSequence> getAllServices (sequence<BluetoothSe rviceUuid> services); 40 // Promise<BluetoothGATTServiceSequence> getAllServices (sequence<BluetoothSe rviceUuid> services);
38 }; 41 };
OLDNEW
« no previous file with comments | « Source/modules/bluetooth/BluetoothDevice.cpp ('k') | public/platform/WebBluetoothDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698