Bug 1207649: Convert Bluetooth AVRCP backend to |BluetoothAddress|, r=shuang

This patch converts all methods in Bluetooth's AVRCP interface to
|BluetoothAddress|.
This commit is contained in:
Thomas Zimmermann 2015-09-29 14:07:01 +02:00
Родитель 06468d6f08
Коммит 0d139b5990
6 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -797,7 +797,7 @@ BluetoothAvrcpManager::RegisterNotificationNotification(
*/
void
BluetoothAvrcpManager::RemoteFeatureNotification(
const nsAString& aBdAddr, unsigned long aFeatures)
const BluetoothAddress& aBdAddr, unsigned long aFeatures)
{
MOZ_ASSERT(NS_IsMainThread());
@ -809,7 +809,7 @@ BluetoothAvrcpManager::RemoteFeatureNotification(
*/
void
BluetoothAvrcpManager::VolumeChangeNotification(uint8_t aVolume,
uint8_t aCType)
uint8_t aCType)
{
MOZ_ASSERT(NS_IsMainThread());

Просмотреть файл

@ -101,7 +101,7 @@ private:
BluetoothAvrcpEvent aEvent, uint32_t aParam) override;
void RemoteFeatureNotification(
const nsAString& aBdAddr, unsigned long aFeatures) override;
const BluetoothAddress& aBdAddr, unsigned long aFeatures) override;
void VolumeChangeNotification(uint8_t aVolume, uint8_t aCType) override;

Просмотреть файл

@ -483,13 +483,12 @@ public:
{ }
nsresult
operator () (nsString& aArg1, unsigned long& aArg2) const
operator () (BluetoothAddress& aArg1, unsigned long& aArg2) const
{
DaemonSocketPDU& pdu = GetPDU();
/* Read address */
nsresult rv = UnpackPDU(
pdu, UnpackConversion<BluetoothAddress, nsAString>(aArg1));
nsresult rv = UnpackPDU(pdu, aArg1);
if (NS_FAILED(rv)) {
return rv;
}

Просмотреть файл

@ -189,8 +189,9 @@ protected:
class NotificationHandlerWrapper;
typedef mozilla::ipc::DaemonNotificationRunnable2<
NotificationHandlerWrapper, void, nsString, unsigned long,
const nsAString&>
NotificationHandlerWrapper, void,
BluetoothAddress, unsigned long,
const BluetoothAddress&>
RemoteFeatureNotification;
typedef mozilla::ipc::DaemonNotificationRunnable0<

Просмотреть файл

@ -378,7 +378,7 @@ BluetoothAvrcpNotificationHandler::RegisterNotificationNotification(
void
BluetoothAvrcpNotificationHandler::RemoteFeatureNotification(
const nsAString& aBdAddr, unsigned long aFeatures)
const BluetoothAddress& aBdAddr, unsigned long aFeatures)
{ }
void

Просмотреть файл

@ -362,7 +362,7 @@ public:
uint32_t aParam);
virtual void
RemoteFeatureNotification(const nsAString& aBdAddr,
RemoteFeatureNotification(const BluetoothAddress& aBdAddr,
unsigned long aFeatures);
virtual void