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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h

Issue 1991063002: Implement the gattserverdisconnected event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-web-bluetooth-device
Patch Set: Skip the new tests on Mac, where getCharacteristic isn't implemented yet. Created 4 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: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
index 8211e09e4e7709aa289d08ee8844433a36de7cc4..92568a5fce7d4eb6f47754787fbf01b4dcfc1c49 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
@@ -10,6 +10,7 @@
#include "modules/EventTargetModules.h"
#include "modules/bluetooth/BluetoothRemoteGATTServer.h"
#include "platform/heap/Heap.h"
+#include "public/platform/modules/bluetooth/WebBluetoothDevice.h"
#include "public/platform/modules/bluetooth/WebBluetoothDeviceInit.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
@@ -30,7 +31,8 @@ class ScriptState;
// CallbackPromiseAdapter class comments.
class BluetoothDevice final
: public EventTargetWithInlineData
- , public ActiveDOMObject {
+ , public ActiveDOMObject
+ , public WebBluetoothDevice {
USING_PRE_FINALIZER(BluetoothDevice, dispose);
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(BluetoothDevice);
@@ -65,6 +67,9 @@ public:
const AtomicString& interfaceName() const override;
ExecutionContext* getExecutionContext() const override;
+ // WebBluetoothDevice interface:
+ void dispatchGattServerDisconnected() override;
+
// Interface required by Garbage Collection:
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698