Граф коммитов

104 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Lissy 54158acc9a Bug 1294463 - Followup 1292892, remove nsContentUtils::RootingCx() r=jandem
MozReview-Commit-ID: 8p8rDw8tG3l
2016-08-11 20:42:53 +02:00
Nicholas Nethercote e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Chris Peterson b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Alexandre Lissy 20b739aeda Bug 1273520 - NS_NewRunnable* renaming and include task.h r=fabrice
MozReview-Commit-ID: BcAboKGMr3a

--HG--
extra : rebase_source : 6c5050527d8dffbce4a5e867bd48254a1041e657
2016-05-18 18:25:35 +02:00
Gregor Wagner acecad8f82 Bug 1267577 - Move nsRunnable to mozilla::Runnable. r=gsvelto 2016-04-27 12:05:40 +02:00
Doug Turner 1a1dd4f3c7 Bug 1253159 - Remove locationUpdatePending and restore request timeout. r=jdm 2016-03-02 21:48:00 -05:00
Fernando Jimenez 1965b03276 Bug 1245033 - Build break in dom/system/gonk/GonkGPSGeolocationProvider.cpp:541:126: error: format '%d' expects argument of type 'int', but argument 5 has type 'nsresult'. r=fabrice 2016-02-02 01:53:21 -08:00
Arthur Edelstein 04d80f24bc Bug 1237831 - Update GonkGPSGeolocationProvider.cpp to use B2G-style. r=jst
--HG--
extra : amend_source : be22508ad54255c58a9a7d09ac2475c0eb75bd68
2016-01-04 09:46:17 -08:00
Carsten "Tomcat" Book 09f5bc4670 Backed out changeset f7e6d241e103 (bug 1237831) 2016-01-28 17:03:25 +01:00
Arthur Edelstein 14644ccf2b Bug 1237831 - Update GonkGPSGeolocationProvider.cpp to use B2G-style. r=jst
From 735d634f21a9e9317dd90c24806f42eb11e999d0 Mon Sep 17 00:00:00 2001
 logging
---
 dom/system/gonk/GonkGPSGeolocationProvider.cpp | 48 +++++++++++++-------------
 1 file changed, 24 insertions(+), 24 deletions(-)

--HG--
extra : rebase_source : d25154abc42023833226a60ea167523326d52aa5
2016-01-04 09:46:17 -08:00
ywu 0a79595e4f Bug 1222899 - Handle geolocation-device-events callback. r=kchen
During this GPS engine is turned ON by the modem,
we make the location tracking icon visible to user.

--HG--
extra : commitid : a8t4t12RtC
2015-12-26 13:39:42 -05:00
Chris Peterson 46bb7c80dd Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc
--HG--
extra : rebase_source : 4ab2c4a917ea90055e48bd6adcb53904f2266ee0
2015-11-27 20:49:55 -08:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Garvan Keeley 20b7d96d1c Bug 1207266 - turn off b2g stumbler if no RIL. r=jdm 2015-09-24 01:29:47 -04:00
Garvan Keeley f4cd1eaf78 Bug 1200304 - Move stumbling code from gonkgps to MozStumbler.cpp. r=jdm 2015-09-08 21:20:56 -04:00
Alphan Chen 2cb037411f Bug 1154435 - [Stumbler] FxOS Geo Stumbling for Mozilla Location Service. r=jdm 2015-09-03 19:36:00 +02:00
Jamin Liu b346e8685e Bug 1190337 - Log GPS status and SVs status if the 'gDebug_isLoggingEnabled' is true. r=garvank 2015-08-05 14:27:33 +08:00
Jessica Jong c0320e5ec5 Bug 1167132 - Part 11: [NetworkManager] Move network information into a separate interface (Gps). r=kanru 2015-07-29 02:12:00 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Garvan Keeley b9aee98f59 Bug 1176261 - Discard gps with impossibly tiny accuracy. r=jaliu 2015-07-02 22:41:59 -04:00
Kan-Ru Chen 0cc4a57df4 Bug 772750 - Get mobile connection technology from MobileConnectionService. r=garvank,echen 2015-05-27 14:41:23 +08:00
Kan-Ru Chen 4c3974dbf8 Bug 1168068 - GonkGPSGeolocationProvider should use mRilDataServiceId in SetReferenceLocation. r=garvank 2015-05-27 14:40:48 +08:00
Jessica Jong 7d03cbd030 Bug 1114901 - Part 3: move data connection related code out of RadioInterfaceLayer. r=echen 2015-05-20 10:08:39 +08:00
Bevis Tseng 3810a891ed Bug 1155142 - Part 2: Refactor RIL-related Modules. r=kchen 2015-04-17 19:06:24 +08:00
Shawn Ku df129fdeaa Bug 1127690 - [flatfish] build break in gecko/dom/system/gonk/GonkGPSGeolocationProvider.cpp. r=KanRu.
--HG--
extra : rebase_source : a0af39a118a4d9dfbbda76f705956254cc6220fc
2015-02-02 09:56:56 +08:00
Alexandre Lissy e38de158c5 Bug 1123072 - Fix build of GonkGPSGeolocationProvider on Flatfish. r=kchen 2015-01-19 03:00:00 +01:00
Shawn Ku 32fc68464e Bug 878748 - [dolphin] B2G GPS: acquire correct RadioInterface instance in MultiSIM configuration. r=KanRu. 2015-01-19 10:51:57 +08:00
Dave Huseby 83a6796724 Bug 1107681 - fix up the dom uses of WrapptedJSToDictionary to use the cx-less interface. r=bholley 2014-12-29 11:56:00 +01:00
Jamin Liu 1e0e97bfcf Bug 1065751 - Support AGPS with roaming cell by retrieving mcc & mnc from nsIMobileNetworkInfo. r=kchen 2014-12-18 17:51:00 +01:00
Jessica Jong 1216f8260f Bug 1058305 - Part 3: use defined network types in nsIRadioInterface (other components). r=echen 2014-11-25 09:44:35 +08:00
Alexandre Lissy 6488c90bfb Bug 1089619 - Stop abusing the Settings API from Gonk GPS. r=kanru
GPS handling for Gonk abuses the Settings API in two ways. First, on
mozsettings-changed event, it will trigger two new requests to read
values (debug enabled and GPS locations ignore). This is useless since
the event already contains the key that has changed and the new value,
so there is no need to do a createLock().get() call. Then, in startup
code, the Init() method is supposed to check itself whether it is
already running. This is done through the mStarted boolean. The same
Init() method is responsible for adding the mozsettings-changed
observer, which is removed by the Shutdown() method. Investigation on
device by using the Geolocation API has proven that we were leaking some
observers. This is because checking mStarted boolean is performed after
we request settings values and we install the mozsettings-changed
observer. So any time the Init() gets called, we install it but we just
remove it once in Shutdown().
2014-10-30 07:42:00 -04:00
Edgar Chen 751d1a07fa Bug 994461 - Part 2: GPS changes for IccInfo WebIDL. r=kchen 2014-09-05 14:54:29 +08:00
Vicamo Yang ede03dd674 Bug 1063304 - 3.c/3: accommodate other components. r=echen 2014-09-21 15:24:43 +08:00
Carsten "Tomcat" Book 03e3efbd63 Backed out changeset 9ff2889f236a (bug 1063304) 2014-09-17 13:13:08 +02:00
Vicamo Yang 44379ca746 Bug 1063304 - 3.c/3: accommodate other components. r=echen 2014-09-16 21:20:18 +08:00
Garvan Keeley 29a3acd410 Bug 1056857 - Code cleanup related to debugging flags. r=kanru
- change #define to const char* for consistency
- change int to bool for bool flags
- make debug log messages more concise, multi-line messages (that could be one-line) make watching the debug log difficult
2014-09-02 21:09:00 -04:00
Garvan Keeley 9a1557adb3 Bug 1056857 - Add debug flag for ignoring GPS locations. r=kanru
Also added observer of Gaia settings changes, so the debug settings
can be toggled on the fly.
2014-09-03 06:58:00 -04:00
Edgar Chen 3a13cca9e3 Bug 843452 - Part 4-2: [GPS] Get voiceInfo via MobileConnectionService. r=kchen 2014-07-01 18:46:05 +08:00
Wes Kocher d544bf248c Backed out 17 changesets (bug 843452)
Backed out changeset e72a0297d488 (bug 843452)
Backed out changeset 73f62ce4190f (bug 843452)
Backed out changeset 6d4a49ebd9fc (bug 843452)
Backed out changeset ac93e396669f (bug 843452)
Backed out changeset cf4fc721821e (bug 843452)
Backed out changeset 9a94ea71d232 (bug 843452)
Backed out changeset b95ff097374d (bug 843452)
Backed out changeset 8d6428a93500 (bug 843452)
Backed out changeset e31b86ef0e80 (bug 843452)
Backed out changeset bd4efde535cd (bug 843452)
Backed out changeset 02bbcd8ac571 (bug 843452)
Backed out changeset f7f41bf82b22 (bug 843452)
Backed out changeset 20f42764cd38 (bug 843452)
Backed out changeset 82f8670f5c17 (bug 843452)
Backed out changeset 52f25f1278e3 (bug 843452)
Backed out changeset 181337820a7c (bug 843452)
Backed out changeset 9bd12641af03 (bug 843452)

--HG--
rename : dom/mobileconnection/interfaces/nsIMobileConnectionService.idl => dom/mobileconnection/interfaces/nsIMobileConnectionProvider.idl
2014-08-28 16:51:41 -07:00
Edgar Chen 8f3f720f0b Bug 843452 - Part 4-2: [GPS] Get voiceInfo via MobileConnectionService. r=kchen 2014-07-01 18:46:05 +08:00
Garvan Keeley 576b631b94 Bug 1033274 - Added logic when MLS responds to GPS provider. r=kanru
NetworkGeolocationProvider is listened to by the Gonk GPS provider, and
these updates are to be used in certain cases (such as the GPS is
inactive) or ignored in other cases so as not overwrite an accuracte GPS
location with and inaccurate MLS location.

Fixed the GPS position's timestamp; the code was using the satellite provided
timestamp. This timestamp bubbles up to the DOM eventually, which has no
knowledge of GPS timestamp delays, thus it needs the current system time.
2014-08-22 07:37:00 -04:00
Kan-Ru Chen (陳侃如) c9a73bec1b Bug 1050899 - Check mAGpsRilInterface before use. r=dougt 2014-08-15 04:24:00 -04:00
Kan-Ru Chen (陳侃如) a8fe610318 Bug 1032063 - Call update_network_state and update_network_availability when network state changes for A-GPS. r=dougt
--HG--
extra : rebase_source : 9a674017a74099f3919b27252c454e7ca777ef84
2014-08-06 14:41:56 +08:00
Jan de Mooij 44da586636 Bug 1034191 - Make nsDependentJSString users work with Latin1 strings and nursery-allocated strings. r=bz 2014-07-05 17:30:54 +02:00
Michael Wu adf66df4da Bug 1033209 - Lazily initialize gps callbacks, r=kanru 2014-07-02 22:59:46 +08:00
Doug Turner c8fc96bd75 Bug 1022463 - Gonk GPS should default to 10s before trying a a network position. r=kanru 2014-06-08 22:58:40 -07:00
Garvan Keeley b2134afed5 Bug 996998 - GonkGPSGeolocationProvider::NetworkLocationUpdate::Update(). r=dougt 2014-04-28 06:24:00 +02:00
Edgar Chen f1c8420c6b Bug 898445 - Part 4: GPS changes for MobileConnection webidl. r=kchen 2014-02-26 16:00:39 +08:00
Ryan VanderMeulen de18cb0f09 Backed out changeset eaa0d64e544e (bug 996998) for B2G bustage. 2014-04-27 17:47:12 -04:00
Garvan Keeley 0772e70b9d Bug 996998 - GonkGPSGeolocationProvider::NetworkLocationUpdate::Update() MLS location can override GPS location, even through the MLS location is unchanged. r=dougt 2014-04-21 07:45:00 -04:00