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

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: getCharacteristic Blink-Side 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/BluetoothGATTService.h
diff --git a/Source/modules/bluetooth/BluetoothGATTService.h b/Source/modules/bluetooth/BluetoothGATTService.h
index add812b6c8adc98f5f2851916296128072e790c6..1fae19ad0df26ae0d78503a9c207922886b4b248 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:
WebBluetoothGATTService m_webService;

Powered by Google App Engine
This is Rietveld 408576698