Index: modules/bluetooth/NavigatorBluetooth.idl |
diff --git a/modules/battery/NavigatorBattery.idl b/modules/bluetooth/NavigatorBluetooth.idl |
similarity index 56% |
copy from modules/battery/NavigatorBattery.idl |
copy to modules/bluetooth/NavigatorBluetooth.idl |
index c5bff09da1473e835b8de2b1f59997117385b2c6..671f652e0878ec72e6c0ec99e84688992b1961c1 100644 |
--- a/modules/battery/NavigatorBattery.idl |
+++ b/modules/bluetooth/NavigatorBluetooth.idl |
@@ -2,9 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-navigatorbluetooth |
+ |
[ |
- RuntimeEnabled=BatteryStatus, |
+ RuntimeEnabled=WebBluetooth, |
] partial interface Navigator { |
- [CallWith=ScriptState] Promise getBattery(); |
+ readonly attribute Bluetooth bluetooth; |
}; |
- |