Commit Graph

39 Commits

Author SHA1 Message Date
Nathan Froyd
9c5965b035 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
2015-10-18 01:24:48 -04:00
Nicholas Nethercote
10d95cca57 Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Andrew McCreight
aeff7c99ee Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Garvan Keeley
64981ebad1 Bug 1134019 - Extract MLS fallback to its own class for reuse - r=jdm 2015-02-27 19:15:32 -05:00
Garvan Keeley
b0f75d8f6a Bug 1131430 - Added telemetry to count CoreLocation vs. MLS results. r=jdm 2015-02-10 10:45:36 -05:00
Chris Peterson
77c54d35be Bug 1130828 - Fix clang -Widiomatic-parentheses and -Wsemicolon-before-method-body warnings. r=smichaud 2015-02-06 00:09:39 -08:00
Garvan Keeley
6369a36f22 Bug 1129696 - Added missing retain/release on NSTimer. r=dougt 2015-02-04 16:00:00 +01:00
Garvan Keeley
5e995220a3 Bug 1121497 - Need to stop location manager before start, r=dougt 2015-01-14 20:02:00 +01:00
Garvan Keeley
dfd1449642 Bug 1121265 - Fallback to MLS Provider, r=dougt
On CoreLocation error, fallback to MLS network provider, which
will report GeoIP, or error.
2015-01-27 08:26:00 +01:00
Carsten "Tomcat" Book
11ba209139 Backed out changeset 6f507c077b24 (bug 1121265) for OS X static analysis build Bustage on a CLOSED TREE 2015-01-27 09:18:03 +01:00
Carsten "Tomcat" Book
a171af42b5 Backed out changeset cc42921d3f36 (bug 1121497) 2015-01-27 09:16:54 +01:00
Garvan Keeley
8a2d82b736 Bug 1121497 - Need to stop location manager before start, r=dougt 2015-01-14 20:02:00 +01:00
Garvan Keeley
49e3f4a4cc Bug 1121265 - Fallback to MLS Provider. r=dougt
On CoreLocation error, fallback to MLS network provider, which
will report GeoIP, or error.
2015-01-26 10:37:00 +01:00
Birunthan Mohanathas
c5d2ecf8af Bug 1058101 - Move dom/src/geolocation/ into dom/. r=mccr8
--HG--
rename : dom/src/geolocation/moz.build => dom/geolocation/moz.build
rename : dom/src/geolocation/nsGeoPosition.cpp => dom/geolocation/nsGeoPosition.cpp
rename : dom/src/geolocation/nsGeoPosition.h => dom/geolocation/nsGeoPosition.h
rename : dom/src/geolocation/nsGeoPositionIPCSerialiser.h => dom/geolocation/nsGeoPositionIPCSerialiser.h
rename : dom/src/geolocation/nsGeolocation.cpp => dom/geolocation/nsGeolocation.cpp
rename : dom/src/geolocation/nsGeolocation.h => dom/geolocation/nsGeolocation.h
2014-08-30 21:43:45 -07:00
Mike Hommey
d10b15b035 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Birunthan Mohanathas
ff8ce9bd42 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Doug Turner
29bdc30869 Bug 928217 - Remove IsCoreLocationAvailable() method because it does the wrong thing. r=smichaud@pobox.com 2014-03-16 19:54:04 -07:00
Guilherme Gonçalves
f2a54d0892 Bug 732923 - CoreLocation provider shouldn't implement nsIGeolocationUpdate. r=jdm 2014-01-08 16:04:21 -05:00
Mike Hommey
a65383e1e9 Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
8ceb917350 Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey
bb6779efe3 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
d7b6f95761 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Ms2ger
b381084fe3 Bug 931459 - Move LOCAL_INCLUDES to moz.build in dom/; r=mshal 2013-11-11 09:04:11 +01:00
Steven Michaud
f8b48d3ced Bug 929686 - Stopgap patch to allow building of CoreLocation stuff with 10.9 SDK. r=spohl 2013-10-24 21:10:10 -05:00
Mike Hommey
1d566f7586 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Brian O'Keefe
4c98f61956 Bug 928709 - Convert chromium-config.mk to mozbuild, r=mshal 2013-10-02 13:17:55 -04:00
Doug Turner
815162b4fb Bug 928217 - Enable core location geolocation conditionally. r=jdm/smichaud 2013-10-20 17:53:09 -07:00
Ms2ger
7ffcd856c2 Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps 2013-10-03 09:11:13 +02:00
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Brian O'Keefe
4f68eb9b02 Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Ms2ger
ced3dd8b1c Bug 883284 - Part c: Move LIBXUL_LIBRARY into moz.build (d-e); r=mshal 2013-08-22 08:56:00 +02:00
Ms2ger
4d968c40e1 Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Brian O'Keefe
3fd496e231 Bug 896177 - Remove more config.mk includes; r=gps 2013-07-17 16:07:14 -04:00
Brian O'Keefe
a2b1403eb0 Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Mike Hommey
0f994f506e Bug 887483 - Remove some more useless FORCE_STATIC_LIB and leftover comments from previous removal. r=mshal 2013-07-15 18:48:40 +09:00
Guilherme Gonçalves
f4e839cc3c Bug 874587 - Fix more case-sensitivity issues. r=smichaud 2013-07-10 13:07:50 -04:00
Guilherme Gonçalves
8212c05e70 Bug 874587 - Remove unnecessary and misspelled header r=dzbarsky 2013-07-08 11:48:38 -04:00
Masatoshi Kimura
176efd0f7c Bug 888323 - Stop including prtime.h in nsrootidl.idl. r=ehsan 2013-07-04 00:56:26 +09:00
Guilherme Gonçalves
dda9b3d845 Bug 874587 - Add CoreLocation geolocation provider. r=dougt, r=gps, r=smichaud 2013-07-01 09:43:17 -04:00