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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/bluetooth/BluetoothDevice.cpp ('k') | public/platform/WebBluetoothDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/BluetoothDevice.idl
diff --git a/Source/modules/bluetooth/BluetoothDevice.idl b/Source/modules/bluetooth/BluetoothDevice.idl
index 338e7c9f17a037889aa908a81024eaa768b07e28..65634048bb615b5e141c1b08e8475af0cf841c66 100644
--- a/Source/modules/bluetooth/BluetoothDevice.idl
+++ b/Source/modules/bluetooth/BluetoothDevice.idl
@@ -5,10 +5,13 @@
// https://webbluetoothcg.github.io/web-bluetooth/#idl-def-BluetoothDevice
// Implement BluetoothDevice interface: http://crbug.com/421668
-// enum VendorIDSource {
-// "bluetooth",
-// "usb"
-// };
+
+enum VendorIDSource {
+ "bluetooth",
+ "usb"
+};
+
+typedef DOMString UUID;
[
GarbageCollected,
@@ -20,15 +23,15 @@
{
// Implement BluetoothDevice interface: http://crbug.com/421668
readonly attribute DOMString instanceID;
-// readonly attribute DOMString? name;
-// readonly attribute long? deviceClass;
-// readonly attribute VendorIDSource? vendorIDSource;
-// readonly attribute long? vendorID;
-// readonly attribute long? productID;
-// readonly attribute long? productVersion;
-// readonly attribute boolean? paired;
-// readonly attribute boolean? connected;
-// readonly attribute sequence<UUID>? uuids;
+ readonly attribute DOMString? name;
+ readonly attribute unsigned long? deviceClass;
+ readonly attribute VendorIDSource? vendorIDSource;
+ readonly attribute unsigned long? vendorID;
+ readonly attribute unsigned long? productID;
+ readonly attribute unsigned long? productVersion;
+ readonly attribute boolean? paired;
+ readonly attribute boolean? connected;
+ readonly attribute sequence<UUID>? uuids;
// Promise<void> connect ();
// Promise<void> disconnect ();
// Promise<BluetoothGATTService> getService (BluetoothServiceUuid service);
« 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