Refactored a bluetooth* related files from codeStyle to code_style.

This commit is contained in:
Arthur Marble 2016-09-18 00:07:32 -05:00
parent 55ff161ed5
commit 5fa54177ca
5 changed files with 32 additions and 32 deletions

View file

@ -24,22 +24,22 @@ pub struct BluetoothRemoteGATTService {
reflector_: Reflector,
device: MutHeap<JS<BluetoothDevice>>,
uuid: DOMString,
isPrimary: bool,
instanceID: String,
is_primary: bool,
instance_id: String,
}
impl BluetoothRemoteGATTService {
pub fn new_inherited(device: &BluetoothDevice,
uuid: DOMString,
isPrimary: bool,
instanceID: String)
is_primary: bool,
instance_id: String)
-> BluetoothRemoteGATTService {
BluetoothRemoteGATTService {
reflector_: Reflector::new(),
device: MutHeap::new(device),
uuid: uuid,
isPrimary: isPrimary,
instanceID: instanceID,
is_primary: is_primary,
instance_id: instance_id,
}
}
@ -64,7 +64,7 @@ impl BluetoothRemoteGATTService {
}
fn get_instance_id(&self) -> String {
self.instanceID.clone()
self.instance_id.clone()
}
}
@ -76,7 +76,7 @@ impl BluetoothRemoteGATTServiceMethods for BluetoothRemoteGATTService {
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattservice-isprimary
fn IsPrimary(&self) -> bool {
self.isPrimary
self.is_primary
}
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattservice-uuid