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

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

Issue 1334763002: bluetooth: Subscribe to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-origin
Patch Set: Fix global interface test Created 5 years, 2 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/BluetoothSupplement.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h
index 08e8fb49bbe5fae05391949a1ee443ec0616ed18..60d5a3905e56177f0a142397692a243425a459ce 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h
@@ -30,6 +30,8 @@ public:
// Returns the WebBluetooth attached to the frame if the frame exists.
// Otherwise returns nullptr.
static WebBluetooth* fromScriptState(ScriptState*);
+ // Returns the WebBluetooth attached to the execution context.
+ static WebBluetooth* fromExecutionContext(ExecutionContext*);
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698