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

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

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: Fixed 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.h
diff --git a/Source/modules/bluetooth/BluetoothGATTRemoteServer.h b/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
index 75e865c6b55e779b82d20d167ad7ea653d9ae554..a6ceae25123e6b4151d48e3091ebbf7ad33a3ec5 100644
--- a/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
+++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
@@ -8,10 +8,13 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Heap.h"
#include "public/platform/modules/bluetooth/WebBluetoothGATTRemoteServer.h"
+#include "wtf/text/WTFString.h"
namespace blink {
+class ScriptPromise;
class ScriptPromiseResolver;
+class ScriptState;
// BluetoothGATTRemoteServer provides a way to interact with a connected bluetooth peripheral.
//
@@ -36,6 +39,7 @@ public:
// IDL exposed interface:
bool connected() { return m_webGATT.connected; }
+ ScriptPromise getPrimaryService(ScriptState*, String /* service_uuid */);
scheib 2015/05/29 00:17:32 Use parameter name, not comment.
ortuno 2015/06/01 21:21:34 Done.
private:
WebBluetoothGATTRemoteServer m_webGATT;

Powered by Google App Engine
This is Rietveld 408576698