Bug 1523969 part 9 - Move method definition inline comments to new line in 'hal/'. r=gsvelto

Differential Revision: https://phabricator.services.mozilla.com/D21109

--HG--
extra : rebase_source : d56eacdaeefd5bde104fb24eecffa3d2890a7869
This commit is contained in:
Ryan Hunt 2019-02-25 16:07:35 -06:00
parent 85ff4bdc33
commit c355a037bb
2 changed files with 17 additions and 13 deletions

View file

@ -125,8 +125,8 @@ SingletonDestroyer::Observe(nsISupports*, const char* aTopic, const char16_t*) {
} }
} // namespace } // namespace
/* static */ MacPowerInformationService* /* static */
MacPowerInformationService::GetInstance() { MacPowerInformationService* MacPowerInformationService::GetInstance() {
if (sInstance) { if (sInstance) {
return sInstance; return sInstance;
} }

View file

@ -153,7 +153,8 @@ void GetCurrentBatteryInformation(hal::BatteryInformation* aBatteryInfo) {
UPowerClient* UPowerClient::sInstance = nullptr; UPowerClient* UPowerClient::sInstance = nullptr;
/* static */ UPowerClient* UPowerClient::GetInstance() { /* static */
UPowerClient* UPowerClient::GetInstance() {
if (!sInstance) { if (!sInstance) {
sInstance = new UPowerClient(); sInstance = new UPowerClient();
} }
@ -317,8 +318,8 @@ void UPowerClient::UpdateTrackedDeviceSync() {
g_ptr_array_free(devices, true); g_ptr_array_free(devices, true);
} }
/* static */ void UPowerClient::DeviceChanged(DBusGProxy* aProxy, /* static */
const gchar* aObjectPath, void UPowerClient::DeviceChanged(DBusGProxy* aProxy, const gchar* aObjectPath,
UPowerClient* aListener) { UPowerClient* aListener) {
if (!aListener->mTrackedDevice) { if (!aListener->mTrackedDevice) {
return; return;
@ -335,14 +336,15 @@ void UPowerClient::UpdateTrackedDeviceSync() {
aListener->GetDevicePropertiesAsync(aListener->mTrackedDeviceProxy); aListener->GetDevicePropertiesAsync(aListener->mTrackedDeviceProxy);
} }
/* static */ void UPowerClient::PropertiesChanged(DBusGProxy* aProxy, /* static */
const gchar*, GHashTable*, void UPowerClient::PropertiesChanged(DBusGProxy* aProxy, const gchar*,
char**, GHashTable*, char**,
UPowerClient* aListener) { UPowerClient* aListener) {
aListener->GetDevicePropertiesAsync(aListener->mTrackedDeviceProxy); aListener->GetDevicePropertiesAsync(aListener->mTrackedDeviceProxy);
} }
/* static */ DBusHandlerResult UPowerClient::ConnectionSignalFilter( /* static */
DBusHandlerResult UPowerClient::ConnectionSignalFilter(
DBusConnection* aConnection, DBusMessage* aMessage, void* aData) { DBusConnection* aConnection, DBusMessage* aMessage, void* aData) {
if (dbus_message_is_signal(aMessage, DBUS_INTERFACE_LOCAL, "Disconnected")) { if (dbus_message_is_signal(aMessage, DBUS_INTERFACE_LOCAL, "Disconnected")) {
static_cast<UPowerClient*>(aData)->StopListening(); static_cast<UPowerClient*>(aData)->StopListening();
@ -369,8 +371,10 @@ GHashTable* UPowerClient::GetDevicePropertiesSync(DBusGProxy* aProxy) {
return hashTable; return hashTable;
} }
/* static */ void UPowerClient::GetDevicePropertiesCallback( /* static */
DBusGProxy* aProxy, DBusGProxyCall* aCall, void* aData) { void UPowerClient::GetDevicePropertiesCallback(DBusGProxy* aProxy,
DBusGProxyCall* aCall,
void* aData) {
GError* error = nullptr; GError* error = nullptr;
GHashTable* hashTable = nullptr; GHashTable* hashTable = nullptr;
GType typeGHashTable = GType typeGHashTable =