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

Unified Diff: Source/modules/bluetooth/BluetoothGATTRemoteServer.idl

Issue 1152393002: bluetooth: Blink side implementation of getPrimaryService (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-get-primary-service-interface
Patch Set: Add BluetoothGATTService to webexposed layout test Created 5 years, 7 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
Index: Source/modules/bluetooth/BluetoothGATTRemoteServer.idl
diff --git a/Source/modules/bluetooth/BluetoothGATTRemoteServer.idl b/Source/modules/bluetooth/BluetoothGATTRemoteServer.idl
index 1e2d451768d41bda1c3e37aacf440c0028e575f8..9cb560df36eed920fbe419a572af55afd28ed5ac 100644
--- a/Source/modules/bluetooth/BluetoothGATTRemoteServer.idl
+++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.idl
@@ -6,6 +6,9 @@
// Implement BluetoothGATTRemoteServer interface: https://crbug.com/476735
+// TODO(ortuno): Move this to BluetoothUUID. http://crbug.com/491441
+typedef DOMString BluetoothServiceUUID;
+
[
GarbageCollected,
RuntimeEnabled=WebBluetooth,
@@ -14,8 +17,8 @@
// : ServiceEventHandlers
{
// readonly attribute BluetoothDevice device;
- readonly attribute boolean connected;
+ readonly attribute boolean connected;
// void disconnect ();
- // Promise<BluetoothGATTService> getPrimaryService (BluetoothServiceUUID service);
+ [CallWith=ScriptState] Promise<BluetoothGATTService> getPrimaryService (BluetoothServiceUUID service);
// Promise<sequence<BluetoothGATTService>> getPrimaryServices (optional BluetoothServiceUUID service);
};
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp ('k') | Source/modules/bluetooth/BluetoothGATTService.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698