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

Unified Diff: modules/bluetooth/BluetoothDevice.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 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 | « modules/bluetooth/Bluetooth.idl ('k') | modules/bluetooth/BluetoothGATTCharacteristic.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/bluetooth/BluetoothDevice.idl
diff --git a/modules/bluetooth/BluetoothDevice.idl b/modules/bluetooth/BluetoothDevice.idl
new file mode 100644
index 0000000000000000000000000000000000000000..70ba6f875326080aa034797454ccc319f302436a
--- /dev/null
+++ b/modules/bluetooth/BluetoothDevice.idl
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetoothdevice
+
+// Implement BluetoothDevice interface: http://crbug.com/421668
+
+enum VendorIDSource {
+ "bluetooth",
+ "usb"
+};
+
+[
+ GarbageCollected,
+ RuntimeEnabled=WebBluetooth,
+] interface BluetoothDevice
+// Implement ServiceEventHandlers interface: http://crbug.com/421670
+// : ServiceEventHandlers
+{
+// Implement BluetoothDevice interface: http://crbug.com/421668
+ readonly attribute DOMString instanceID;
+ readonly attribute DOMString? name;
+// readonly attribute BluetoothAdvertisingData adData;
+ 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 BluetoothGATTRemoteServer? gattServer;
+ readonly attribute UUID[] uuids;
+ [CallWith=ScriptState] Promise<BluetoothGATTRemoteServer> connectGATT ();
+};
« no previous file with comments | « modules/bluetooth/Bluetooth.idl ('k') | modules/bluetooth/BluetoothGATTCharacteristic.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698