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

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

Issue 650613005: bluetooth: Initial WebBluetooth & WebBluetoothError. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Abandoned initial approach implementing BluetoothMock in Blink. Created 6 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: Source/modules/bluetooth/BluetoothDiscovery.h
diff --git a/Source/modules/bluetooth/BluetoothDiscovery.h b/Source/modules/bluetooth/BluetoothDiscovery.h
index 7597eb29a832e1e7d6579f90932041bf6f1d5df9..fbc87d8b463d37ec9002baa25f166f0b7344ef52 100644
--- a/Source/modules/bluetooth/BluetoothDiscovery.h
+++ b/Source/modules/bluetooth/BluetoothDiscovery.h
@@ -12,6 +12,7 @@ namespace blink {
class ScriptPromise;
class ScriptState;
+class BluetoothMock;
class BluetoothDiscovery
haraken 2014/10/18 11:25:56 Add final.
: public GarbageCollected<BluetoothDiscovery>
@@ -20,7 +21,13 @@ class BluetoothDiscovery
public:
ScriptPromise requestDevice(ScriptState*);
- void trace(Visitor*) { }
+ void resetBluetoothMockForTesting();
+ BluetoothMock* getBluetoothMockForTesting() { return m_bluetoothMock.get(); }
haraken 2014/10/18 11:25:56 Blink normally doesn't use "get". getBluetoothMoc
+
+ void trace(Visitor*);
+
+private:
+ Member<BluetoothMock> m_bluetoothMock;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698