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

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

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! Created 5 years, 4 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 05a228f582bfa4c0b25cb187da4fac9a13ac5ba3..6c1f74c5f08ec1219050f27179c36187ad21d0b1 100644
--- a/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
+++ b/Source/modules/bluetooth/BluetoothGATTRemoteServer.h
@@ -9,6 +9,7 @@
#include "bindings/modules/v8/UnionTypesModules.h"
#include "platform/heap/Heap.h"
#include "public/platform/modules/bluetooth/WebBluetoothGATTRemoteServer.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
@@ -32,7 +33,7 @@ public:
BluetoothGATTRemoteServer(PassOwnPtr<WebBluetoothGATTRemoteServer>);
// Interface required by CallbackPromiseAdapter:
- typedef WebBluetoothGATTRemoteServer WebType;
+ using WebType = OwnPtr<WebBluetoothGATTRemoteServer>;
static BluetoothGATTRemoteServer* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothGATTRemoteServer>);
// Interface required by Garbage Collectoin:
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTCharacteristic.h ('k') | Source/modules/bluetooth/BluetoothGATTService.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698