Commit Graph
25 Commits
Author SHA1 Message Date
stransky 1cc676e5da Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-06 10:39:10 +00:00
Cristian Tuns 199ab9f337 Backed out changeset f65c77517e3e (bug 1859865) for causing build bustages in nsAppShell.cpp CLOSED TREE 2023-11-04 04:52:00 -04:00
stransky 650976db09 Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-04 08:21:16 +00:00
Butkovits Atila 21ed82a1c8 Backed out changeset 1c0f7ecac0da (bug 1859865) for causing bustages at MPRISServiceHandler.cpp. 2023-11-04 01:59:29 +02:00
stransky 3a98b05737 Bug 1859865 [Linux] Don't throw error message if DBus operation is canceled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192319
2023-11-03 21:13:16 +00:00
stransky 41ef2d0041 Bug 1858153 [Linux] Migrate UPowerClient from dbus-glib to GDBus r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D190670
2023-10-12 11:16:25 +00:00
stransky fa0ad557fc Bug 1848589 [Linux] Don't query battery status on Linux as battery API is not used r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D187200
2023-09-04 07:30:18 +00:00
Emilio Cobos Álvarez 0a450d3a7b Bug 1760839 - Use more automatic memory management in GTK code. r=stransky
This fixes a couple potential leaks (e.g., see the UPowerClient changes,
we weren't freeing all the devices properly).

Differential Revision: https://phabricator.services.mozilla.com/D141775
2022-03-23 16:14:34 +00:00
Chris Peterson 0a9155f83b Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj
This changeset is a simple find and replace of `MOZ_FALLTHROUGH` and `[[fallthrough]]`.

Unfortunately, the MOZ_FALLTHROUGH_ASSERT macro (to assert on case fallthrough in debug builds) is still necessary after switching from [[clang::fallthrough]] to [[fallthrough]] because:

* MOZ_ASSERT(false) followed by [[fallthrough]] triggers a -Wunreachable-code warning in DEBUG builds
* but MOZ_ASSERT(false) without [[fallthrough]] triggers a -Wimplicit-fallthrough warning in NDEBUG builds.

Differential Revision: https://phabricator.services.mozilla.com/D56440
2019-12-20 07:16:43 +00:00
Ryan Hunt 50b1514555 Bug 1523969 part 9 - Move method definition inline comments to new line in 'hal/'. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D21109
2019-02-25 16:07:35 -06:00
Sylvestre Ledru e5a134f73a Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Andrea Marchesini cd0fa01b94 Bug 1282433 - Use dbus PropertiesChanged signal for notification of battery status changes, r=karlt
From UPower 0.99, DeviceChanged has been removed from the UPower interface and
PropertiesChanged support added.
2016-11-02 10:37:11 +01:00
Chris Peterson 43e6fba9de Bug 1241549 - Annotate intentional switch fallthrough in hal/linux/UPowerClient.cpp. r=gsvelto
hal/linux/UPowerClient.cpp:420:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2016-01-20 21:34:41 -08:00
Gijs Kruitbosch b99784878f Bug 1124127 - round power percentage to whole number before passing on, r=gsvelto 2015-01-21 14:06:40 +00:00
Gabriele Svelto 90e9a301fe Bug 1047277 - Hide HAL's logging macros from the public headers and convert all components to use them. r=dhylands 2014-09-24 15:23:18 +02:00
Andrea Marchesini e6f8d408bb Bug 703612 - Make DBUS calls asynchronous to prevent slowness because of DBus daemon being overloaded in Battery API UPower backend. r=mounir 2012-11-02 16:11:50 -04:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Andrew Quartey afcb4f6a45 Bug 706010 - Remove NS_SPECIALIZE_TEMPLATE and HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX; r=khuey a=cleanup/removal 2011-12-13 14:17:59 +00:00
Mounir Lamouri 5021d048c7 Bug 705084 - Part B - Use kDefaultRemainingTime instead of kUnknownRemaining time when appropriate in UPower backend. r=cjones 2011-12-01 11:50:58 +01:00
Mounir Lamouri 5460249cc2 Bug 703610 - Return level=1.0 when the battery is full (Battery API UPower backend). r=cjones 2011-11-22 10:36:22 +01:00
Mounir Lamouri 675d73f722 Bug 700262 - Add remainingTime support to upower backend. r=cjones 2011-11-09 10:00:01 +01:00
Mounir Lamouri ff82cb25b7 Bug 700261 - Add .chargingTime/.dischargingTime support to hal code. r=cjones 2011-11-09 09:58:59 +01:00
Mounir Lamouri 21a72836db Bug 699742 - (3/4) battery.level should be a double (upower backend). r=cjones 2011-11-09 09:56:22 +01:00
Mounir Lamouri 0830b1a708 Bug 696041 - Battery API backend for linux with upower. r=karlt,cjones sr=roc 2011-11-03 11:33:31 +01:00