mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Refactored a bluetooth* related files from codeStyle to code_style.
This commit is contained in:
parent
55ff161ed5
commit
5fa54177ca
5 changed files with 32 additions and 32 deletions
|
@ -17,20 +17,20 @@ pub struct BluetoothDevice {
|
|||
reflector_: Reflector,
|
||||
id: DOMString,
|
||||
name: Option<DOMString>,
|
||||
adData: MutHeap<JS<BluetoothAdvertisingData>>,
|
||||
ad_data: MutHeap<JS<BluetoothAdvertisingData>>,
|
||||
gatt: MutNullableHeap<JS<BluetoothRemoteGATTServer>>,
|
||||
}
|
||||
|
||||
impl BluetoothDevice {
|
||||
pub fn new_inherited(id: DOMString,
|
||||
name: Option<DOMString>,
|
||||
adData: &BluetoothAdvertisingData)
|
||||
ad_data: &BluetoothAdvertisingData)
|
||||
-> BluetoothDevice {
|
||||
BluetoothDevice {
|
||||
reflector_: Reflector::new(),
|
||||
id: id,
|
||||
name: name,
|
||||
adData: MutHeap::new(adData),
|
||||
ad_data: MutHeap::new(ad_data),
|
||||
gatt: Default::default(),
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ impl BluetoothDeviceMethods for BluetoothDevice {
|
|||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothdevice-addata
|
||||
fn AdData(&self) -> Root<BluetoothAdvertisingData> {
|
||||
self.adData.get()
|
||||
self.ad_data.get()
|
||||
}
|
||||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothdevice-gatt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue