mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -27,6 +27,7 @@ use base::id::{
|
|||
};
|
||||
use base::Epoch;
|
||||
use bitflags::bitflags;
|
||||
#[cfg(feature = "bluetooth")]
|
||||
use bluetooth_traits::BluetoothRequest;
|
||||
use canvas_traits::webgl::WebGLPipeline;
|
||||
use crossbeam_channel::{RecvTimeoutError, Sender};
|
||||
|
@ -517,6 +518,7 @@ pub struct InitialScriptState {
|
|||
/// A channel to the resource manager thread.
|
||||
pub resource_threads: ResourceThreads,
|
||||
/// A channel to the bluetooth thread.
|
||||
#[cfg(feature = "bluetooth")]
|
||||
pub bluetooth_sender: IpcSender<BluetoothRequest>,
|
||||
/// The image cache for this script thread.
|
||||
pub image_cache: Arc<dyn ImageCache>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue