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

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

Issue 1146163005: bluetooth: Blink-side implementation of getCharacteristic. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-characteristic-interface
Patch Set: Merged with TOT 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTService.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/BluetoothGATTService.idl
diff --git a/Source/modules/bluetooth/BluetoothGATTService.idl b/Source/modules/bluetooth/BluetoothGATTService.idl
index 6269ed2499582f3051a540cdf8ccc1cf4bed81d6..fb4e0cd18d14e49fbc2d10063ddc8bdd741c9a09 100644
--- a/Source/modules/bluetooth/BluetoothGATTService.idl
+++ b/Source/modules/bluetooth/BluetoothGATTService.idl
@@ -6,6 +6,7 @@
// Implement BluetoothGATTService interface: https://crbug.com/483342
+typedef DOMString BluetoothCharacteristicUUID;
typedef DOMString UUID;
[
@@ -17,7 +18,7 @@ typedef DOMString UUID;
// TODO(ortuno): Once device is implemented test that it matches
// the original device.
// readonly attribute BluetoothDevice device;
- // Promise<BluetoothGATTCharacteristic> getCharacteristic(BluetoothCharacteristicUUID characteristic);
+ [CallWith=ScriptState] Promise<BluetoothGATTCharacteristic> getCharacteristic(BluetoothCharacteristicUUID characteristic);
// Promise<sequence<BluetoothGATTCharacteristic>> getCharacteristics(optional BluetoothCharacteristicUUID characteristic);
// Promise<BluetoothGATTService> getIncludedService(BluetoothServiceUUID service);
// Promise<sequence<BluetoothGATTService>> getIncludedServices(optional BluetoothServiceUUID service);
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTService.cpp ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698