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

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

Issue 2716263002: DO NOT SUBMIT. Renderer side of Bluetooth Test API in blink C++ (Closed)
Patch Set: Created 3 years, 10 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/BluetoothFakeBluetooth.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothFakeBluetooth.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothFakeBluetooth.h
new file mode 100644
index 0000000000000000000000000000000000000000..09d84e2104874203f4ff6bac9f49961bfd0bab23
--- /dev/null
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothFakeBluetooth.h
@@ -0,0 +1,34 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BluetoothFakeBluetooth_h
+#define BluetoothFakeBluetooth_h
+
+#include "modules/bluetooth/Bluetooth.h"
+#include "modules/bluetooth/FakeBluetooth.h"
+
+namespace blink {
+
+class BluetoothFakeBluetooth final : public GarbageCollected<BluetoothFakeBluetooth>,
+ public Supplement<Bluetooth> {
+ USING_GARBAGE_COLLECTED_MIXIN(BluetoothFakeBluetooth);
+
+ public:
+
+ static BluetoothFakeBluetooth& from(Bluetooth&);
+ static FakeBluetooth* test(Bluetooth&);
+ FakeBluetooth* test();
+
+ DECLARE_TRACE();
+
+ private:
+ explicit BluetoothFakeBluetooth(Bluetooth&);
+ static const char* supplementName();
+
+ Member<FakeBluetooth> m_test;
+};
+
+} // namespace blink
+
+#endif // BluetoothFakeBluetooth_h

Powered by Google App Engine
This is Rietveld 408576698