зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1146293 - Fix coding style break (intent and line length) caused by Bug 1117172 and Bug 1145631. r=shuang
This commit is contained in:
Родитель
9057a8ed29
Коммит
01f5840db1
|
@ -164,7 +164,8 @@ public:
|
||||||
return GetOwner();
|
return GetOwner();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto) override;
|
||||||
virtual void DisconnectFromOwner() override;
|
virtual void DisconnectFromOwner() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -95,7 +95,8 @@ BluetoothClassOfDevice::Create(nsPIDOMWindow* aOwner)
|
||||||
}
|
}
|
||||||
|
|
||||||
JSObject*
|
JSObject*
|
||||||
BluetoothClassOfDevice::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
BluetoothClassOfDevice::WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto)
|
||||||
{
|
{
|
||||||
return BluetoothClassOfDeviceBinding::Wrap(aCx, this, aGivenProto);
|
return BluetoothClassOfDeviceBinding::Wrap(aCx, this, aGivenProto);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,8 @@ struct JSContext;
|
||||||
|
|
||||||
BEGIN_BLUETOOTH_NAMESPACE
|
BEGIN_BLUETOOTH_NAMESPACE
|
||||||
|
|
||||||
class BluetoothClassOfDevice final : public nsISupports,
|
class BluetoothClassOfDevice final : public nsISupports
|
||||||
public nsWrapperCache
|
, public nsWrapperCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
|
@ -69,7 +69,8 @@ public:
|
||||||
{
|
{
|
||||||
return mOwnerWindow;
|
return mOwnerWindow;
|
||||||
}
|
}
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BluetoothClassOfDevice(nsPIDOMWindow* aOwner);
|
BluetoothClassOfDevice(nsPIDOMWindow* aOwner);
|
||||||
|
|
|
@ -320,7 +320,8 @@ BluetoothDevice::GetGatt()
|
||||||
}
|
}
|
||||||
|
|
||||||
JSObject*
|
JSObject*
|
||||||
BluetoothDevice::WrapObject(JSContext* aContext, JS::Handle<JSObject*> aGivenProto)
|
BluetoothDevice::WrapObject(JSContext* aContext,
|
||||||
|
JS::Handle<JSObject*> aGivenProto)
|
||||||
{
|
{
|
||||||
return BluetoothDeviceBinding::Wrap(aContext, this, aGivenProto);
|
return BluetoothDeviceBinding::Wrap(aContext, this, aGivenProto);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ class BluetoothSignal;
|
||||||
class BluetoothSocket;
|
class BluetoothSocket;
|
||||||
|
|
||||||
class BluetoothDevice final : public DOMEventTargetHelper
|
class BluetoothDevice final : public DOMEventTargetHelper
|
||||||
, public BluetoothSignalObserver
|
, public BluetoothSignalObserver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
|
@ -94,7 +94,8 @@ public:
|
||||||
return GetOwner();
|
return GetOwner();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto) override;
|
||||||
virtual void DisconnectFromOwner() override;
|
virtual void DisconnectFromOwner() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -58,7 +58,8 @@ BluetoothDiscoveryHandle::DispatchDeviceEvent(BluetoothDevice* aDevice)
|
||||||
}
|
}
|
||||||
|
|
||||||
JSObject*
|
JSObject*
|
||||||
BluetoothDiscoveryHandle::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
BluetoothDiscoveryHandle::WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto)
|
||||||
{
|
{
|
||||||
return BluetoothDiscoveryHandleBinding::Wrap(aCx, this, aGivenProto);
|
return BluetoothDiscoveryHandleBinding::Wrap(aCx, this, aGivenProto);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,8 @@ public:
|
||||||
|
|
||||||
IMPL_EVENT_HANDLER(devicefound);
|
IMPL_EVENT_HANDLER(devicefound);
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BluetoothDiscoveryHandle(nsPIDOMWindow* aWindow);
|
BluetoothDiscoveryHandle(nsPIDOMWindow* aWindow);
|
||||||
|
|
|
@ -314,7 +314,8 @@ BluetoothGatt::Notify(const BluetoothSignal& aData)
|
||||||
}
|
}
|
||||||
|
|
||||||
JSObject*
|
JSObject*
|
||||||
BluetoothGatt::WrapObject(JSContext* aContext, JS::Handle<JSObject*> aGivenProto)
|
BluetoothGatt::WrapObject(JSContext* aContext,
|
||||||
|
JS::Handle<JSObject*> aGivenProto)
|
||||||
{
|
{
|
||||||
return BluetoothGattBinding::Wrap(aContext, this, aGivenProto);
|
return BluetoothGattBinding::Wrap(aContext, this, aGivenProto);
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ class BluetoothSignal;
|
||||||
class BluetoothValue;
|
class BluetoothValue;
|
||||||
|
|
||||||
class BluetoothGatt final : public DOMEventTargetHelper
|
class BluetoothGatt final : public DOMEventTargetHelper
|
||||||
, public BluetoothSignalObserver
|
, public BluetoothSignalObserver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
|
@ -70,7 +70,8 @@ public:
|
||||||
return GetOwner();
|
return GetOwner();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto) override;
|
||||||
virtual void DisconnectFromOwner() override;
|
virtual void DisconnectFromOwner() override;
|
||||||
|
|
||||||
BluetoothGatt(nsPIDOMWindow* aOwner,
|
BluetoothGatt(nsPIDOMWindow* aOwner,
|
||||||
|
|
|
@ -20,8 +20,8 @@ BEGIN_BLUETOOTH_NAMESPACE
|
||||||
class BluetoothAdapter;
|
class BluetoothAdapter;
|
||||||
class BluetoothValue;
|
class BluetoothValue;
|
||||||
|
|
||||||
class BluetoothManager : public DOMEventTargetHelper
|
class BluetoothManager final : public DOMEventTargetHelper
|
||||||
, public BluetoothSignalObserver
|
, public BluetoothSignalObserver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
|
@ -63,7 +63,8 @@ public:
|
||||||
return GetOwner();
|
return GetOwner();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto) override;
|
||||||
virtual void DisconnectFromOwner() override;
|
virtual void DisconnectFromOwner() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -121,7 +121,8 @@ BluetoothPairingHandle::SetPairingConfirmation(bool aConfirm, ErrorResult& aRv)
|
||||||
}
|
}
|
||||||
|
|
||||||
JSObject*
|
JSObject*
|
||||||
BluetoothPairingHandle::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
BluetoothPairingHandle::WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto)
|
||||||
{
|
{
|
||||||
return BluetoothPairingHandleBinding::Wrap(aCx, this, aGivenProto);
|
return BluetoothPairingHandleBinding::Wrap(aCx, this, aGivenProto);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,8 @@ BEGIN_BLUETOOTH_NAMESPACE
|
||||||
|
|
||||||
class BluetoothDevice;
|
class BluetoothDevice;
|
||||||
|
|
||||||
class BluetoothPairingHandle final : public nsISupports,
|
class BluetoothPairingHandle final : public nsISupports
|
||||||
public nsWrapperCache
|
, public nsWrapperCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
|
@ -39,7 +39,8 @@ public:
|
||||||
return mOwner;
|
return mOwner;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
void GetPasskey(nsString& aPasskey) const
|
void GetPasskey(nsString& aPasskey) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -108,7 +108,8 @@ BluetoothPairingListener::Notify(const BluetoothSignal& aData)
|
||||||
}
|
}
|
||||||
|
|
||||||
JSObject*
|
JSObject*
|
||||||
BluetoothPairingListener::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
BluetoothPairingListener::WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto)
|
||||||
{
|
{
|
||||||
return BluetoothPairingListenerBinding::Wrap(aCx, this, aGivenProto);
|
return BluetoothPairingListenerBinding::Wrap(aCx, this, aGivenProto);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ class BluetoothDevice;
|
||||||
class BluetoothSignal;
|
class BluetoothSignal;
|
||||||
|
|
||||||
class BluetoothPairingListener final : public DOMEventTargetHelper
|
class BluetoothPairingListener final : public DOMEventTargetHelper
|
||||||
, public BluetoothSignalObserver
|
, public BluetoothSignalObserver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
|
@ -37,7 +37,8 @@ public:
|
||||||
return GetOwner();
|
return GetOwner();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx,
|
||||||
|
JS::Handle<JSObject*> aGivenProto) override;
|
||||||
virtual void DisconnectFromOwner() override;
|
virtual void DisconnectFromOwner() override;
|
||||||
virtual void EventListenerAdded(nsIAtom* aType) override;
|
virtual void EventListenerAdded(nsIAtom* aType) override;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ class BluetoothGattClient;
|
||||||
class BluetoothReplyRunnable;
|
class BluetoothReplyRunnable;
|
||||||
|
|
||||||
class BluetoothGattManager final : public nsIObserver
|
class BluetoothGattManager final : public nsIObserver
|
||||||
, public BluetoothGattNotificationHandler
|
, public BluetoothGattNotificationHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
|
Загрузка…
Ссылка в новой задаче