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

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

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
Index: Source/modules/bluetooth/BluetoothGATTService.h
diff --git a/Source/modules/bluetooth/BluetoothGATTService.h b/Source/modules/bluetooth/BluetoothGATTService.h
index 146f9ed6880a23d40ced338440462dfa08da885b..d1a1ca3f3920ce127d029efec0f144afa2c748d9 100644
--- a/Source/modules/bluetooth/BluetoothGATTService.h
+++ b/Source/modules/bluetooth/BluetoothGATTService.h
@@ -12,7 +12,9 @@
namespace blink {
+class ScriptPromise;
class ScriptPromiseResolver;
+class ScriptState;
// Represents a GATT Service within a Bluetooth Peripheral, a collection of
// characteristics and relationships to other services that encapsulate the
@@ -40,6 +42,7 @@ public:
// IDL exposed interface:
String uuid() { return m_webService->uuid; }
bool isPrimary() { return m_webService->isPrimary; }
+ ScriptPromise getCharacteristic(ScriptState*, String characteristicUUID);
private:
OwnPtr<WebBluetoothGATTService> m_webService;
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTCharacteristic.idl ('k') | Source/modules/bluetooth/BluetoothGATTService.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698