Index: third_party/WebKit/Source/modules/bluetooth/FakeBluetooth.idl |
diff --git a/third_party/WebKit/Source/modules/bluetooth/FakeBluetooth.idl b/third_party/WebKit/Source/modules/bluetooth/FakeBluetooth.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b5f3efaac813a2b339704d278debb9474bf8cc32 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/bluetooth/FakeBluetooth.idl |
@@ -0,0 +1,13 @@ |
+// 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. |
+ |
+enum FakeLECentralManagerState { "poweredoff", "poweredon", "absent" }; |
+ |
+[NoInterfaceObject] |
+interface FakeBluetooth { |
+ [CallWith=ScriptState] Promise<void> setLEAvailability(boolean available); |
+ [CallWith=ScriptState] Promise<FakeLECentralManager> simulateFakeCentral(FakeCentralOptions options); |
+ |
+ [CallWith=ScriptState] Promise<FakeBluetoothChooser> setBluetoothManualChooser(); |
+}; |