Refactored a couple of files from codeStyle to code_style.

This commit is contained in:
Arthur Marble 2016-09-17 20:24:33 -05:00
parent dd4907c985
commit 55ff161ed5
3 changed files with 10 additions and 10 deletions

View file

@ -373,10 +373,10 @@ impl BlobMethods for Blob {
fn Slice(&self, fn Slice(&self,
start: Option<i64>, start: Option<i64>,
end: Option<i64>, end: Option<i64>,
contentType: Option<DOMString>) content_type: Option<DOMString>)
-> Root<Blob> { -> Root<Blob> {
let rel_pos = RelativePos::from_opts(start, end); let rel_pos = RelativePos::from_opts(start, end);
Blob::new_sliced(self, rel_pos, contentType.unwrap_or(DOMString::from(""))) Blob::new_sliced(self, rel_pos, content_type.unwrap_or(DOMString::from("")))
} }
// https://w3c.github.io/FileAPI/#dfn-isClosed // https://w3c.github.io/FileAPI/#dfn-isClosed

View file

@ -13,19 +13,19 @@ use dom::bindings::reflector::{Reflector, reflect_dom_object};
pub struct BluetoothAdvertisingData { pub struct BluetoothAdvertisingData {
reflector_: Reflector, reflector_: Reflector,
appearance: Option<u16>, appearance: Option<u16>,
txPower: Option<i8>, tx_power: Option<i8>,
rssi: Option<i8>, rssi: Option<i8>,
} }
impl BluetoothAdvertisingData { impl BluetoothAdvertisingData {
pub fn new_inherited(appearance: Option<u16>, pub fn new_inherited(appearance: Option<u16>,
txPower: Option<i8>, tx_power: Option<i8>,
rssi: Option<i8>) rssi: Option<i8>)
-> BluetoothAdvertisingData { -> BluetoothAdvertisingData {
BluetoothAdvertisingData { BluetoothAdvertisingData {
reflector_: Reflector::new(), reflector_: Reflector::new(),
appearance: appearance, appearance: appearance,
txPower: txPower, tx_power: tx_power,
rssi: rssi, rssi: rssi,
} }
} }
@ -51,7 +51,7 @@ impl BluetoothAdvertisingDataMethods for BluetoothAdvertisingData {
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-txpower // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-txpower
fn GetTxPower(&self) -> Option<i8> { fn GetTxPower(&self) -> Option<i8> {
self.txPower self.tx_power
} }
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-rssi // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-rssi

View file

@ -15,7 +15,7 @@ pub struct BluetoothCharacteristicProperties {
reflector_: Reflector, reflector_: Reflector,
broadcast: bool, broadcast: bool,
read: bool, read: bool,
writeWithoutResponse: bool, write_without_response: bool,
write: bool, write: bool,
notify: bool, notify: bool,
indicate: bool, indicate: bool,
@ -27,7 +27,7 @@ pub struct BluetoothCharacteristicProperties {
impl BluetoothCharacteristicProperties { impl BluetoothCharacteristicProperties {
pub fn new_inherited(broadcast: bool, pub fn new_inherited(broadcast: bool,
read: bool, read: bool,
writeWithoutResponse: bool, write_without_response: bool,
write: bool, write: bool,
notify: bool, notify: bool,
indicate: bool, indicate: bool,
@ -39,7 +39,7 @@ impl BluetoothCharacteristicProperties {
reflector_: Reflector::new(), reflector_: Reflector::new(),
broadcast: broadcast, broadcast: broadcast,
read: read, read: read,
writeWithoutResponse: writeWithoutResponse, write_without_response: write_without_response,
write: write, write: write,
notify: notify, notify: notify,
indicate: indicate, indicate: indicate,
@ -87,7 +87,7 @@ impl BluetoothCharacteristicPropertiesMethods for BluetoothCharacteristicPropert
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-writewithoutresponse // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-writewithoutresponse
fn WriteWithoutResponse(&self) -> bool { fn WriteWithoutResponse(&self) -> bool {
self.writeWithoutResponse self.write_without_response
} }
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-write // https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-write