OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef FakeBluetooth_h |
| 6 #define FakeBluetooth_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "modules/bluetooth/FakeCentralOptions.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class FakeBluetooth : public GarbageCollected<FakeBluetooth>, |
| 16 public ScriptWrappable { |
| 17 DEFINE_WRAPPERTYPEINFO(); |
| 18 |
| 19 public: |
| 20 static FakeBluetooth* create() { return new FakeBluetooth(); } |
| 21 |
| 22 ScriptPromise setLEAvailability(ScriptState*, bool available); |
| 23 ScriptPromise simulateFakeCentral(ScriptState*, const FakeCentralOptions& opti
ons); |
| 24 ScriptPromise setBluetoothManualChooser(ScriptState*); |
| 25 |
| 26 DECLARE_VIRTUAL_TRACE(); |
| 27 |
| 28 private: |
| 29 FakeBluetooth(); |
| 30 |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 #endif |
OLD | NEW |