mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Make WebBluetooth an optional feature. (#35479)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
32f19c1eae
commit
1d606bb85c
42 changed files with 124 additions and 37 deletions
|
@ -23,7 +23,9 @@ use crate::dom::bindings::codegen::Bindings::WindowBinding::Window_Binding::Wind
|
|||
use crate::dom::bindings::error::Error;
|
||||
use crate::dom::bindings::reflector::{reflect_dom_object, DomGlobal, Reflector};
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
#[cfg(feature = "bluetooth")]
|
||||
use crate::dom::bluetooth::Bluetooth;
|
||||
#[cfg(feature = "bluetooth")]
|
||||
use crate::dom::bluetoothpermissionresult::BluetoothPermissionResult;
|
||||
use crate::dom::globalscope::GlobalScope;
|
||||
use crate::dom::permissionstatus::PermissionStatus;
|
||||
|
@ -116,6 +118,7 @@ impl Permissions {
|
|||
|
||||
// (Query, Request, Revoke) Step 2.
|
||||
match root_desc.name {
|
||||
#[cfg(feature = "bluetooth")]
|
||||
PermissionName::Bluetooth => {
|
||||
let bluetooth_desc = match Bluetooth::create_descriptor(cx, permissionDesc) {
|
||||
Ok(descriptor) => descriptor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue