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
Sotaro Ikeda
4cfc10cfee
Bug 1206174 - Improve code readability of FMRadioService r=alwu
2015-09-21 17:22:06 -07:00
Juan Gomez
258ad59e3f
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
5f5c327690
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
702a59d135
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
...
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Thomas Zimmermann
34f9276ac2
Bug 1137151: Marked destructors of refcounted FM-radio classes as protected, r=pzhang
2015-03-10 13:44:02 +01:00
Botond Ballo
edd363abd6
Bug 1073003 - Fix more -Wunused-variable and -Wunused-but-set-variable warnings. r=ehsan
...
--HG--
extra : rebase_source : bb768dd07c19dc39994d5cca6e0f59048d12130a
2014-12-17 18:05:28 -05: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
Thomas Zimmermann
627449c0da
Bug 1053173: Use |LazyIdleThread| for FM tuning, r=mwu
...
FM tuning is performed rarely, usually only when switching stations
on the radio, or at irregular intervals. Most of the time, the FM
tune thread is idle.
This patch converts the FM tune thread to be a |LazyIdleThread|. It
get's cleaned up after a small timeout (currently 5 seconds), so it
won't occupy resources while the user is actually listening to the
radio.
2014-11-17 10:23:49 +01:00
Michael Wu
501506de47
Bug 1075727 - Update rdsEnabled based on the return value of hal::EnableRDS, r=pzhang
2014-10-01 13:22:53 -04:00
Michael Wu
cfe3595579
Bug 864327 - Support FM RDS in WebAPI, r=ehsan,pzhang,khuey
2014-09-30 12:57:52 -04:00
Michael Wu
1ec7ec8a2f
Backed out changeset dfbae87208dd (Bug 864327) for red
2014-09-30 13:39:43 -04:00
Michael Wu
bb45bd3e0a
Bug 864327 - Support FM RDS in WebAPI, r=ehsan,pzhang,khuey
2014-09-30 12:57:52 -04:00
Mike Habicher
c0376bc34a
Bug 1053966 - move mozsettings-changed Observer info from aSubject to aData, r=bz,qDot
2014-09-16 13:15:16 -04:00
Ryan VanderMeulen
d3fce43e7e
Backed out changeset ed586ca080c0 (bug 1053966) for the same Mnw permafails it was backed out for previously.
2014-09-16 16:54:25 -04:00
Mike Habicher
e9ff4e12a0
Bug 1053966 - move mozsettings-changed Observer info from aSubject to aData, r=bz,qDot
2014-09-16 13:15:16 -04:00
Bobby Holley
e70ddb7476
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
30ae466592
Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage.
2014-08-14 17:23:10 -04:00
Bobby Holley
3e4d70a655
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 12:54:34 -07:00
Pin Zhang
7bed31b659
Bug 1047759: Clear FMRadioService's StaticRefPtr so it is not leaked at shutdown. r=khuey
2014-08-04 20:04:00 -07:00
Michael Wu
cf5361b683
Bug 938809 - Run seek/tune calls off the main thread, r=pzhang,khuey
2014-07-14 17:56:10 -04:00
Carsten "Tomcat" Book
2cf9696115
Backed out changeset b60084fa9d5b (bug 938809)
2014-07-30 05:50:59 +02:00
Michael Wu
0ab4272646
Bug 938809 - Run seek/tune calls off the main thread, r=pzhang,khuey
2014-07-14 17:56:10 -04:00
Michael Wu
fdc79131b4
Bug 1037646 - Improve FM radio setup code, r=pzhang
2014-07-14 13:06:19 -04: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
Birunthan Mohanathas
5f1fde8824
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
Pin Zhang
8c538453b8
Bug 997064 - Do not call navigator.mozFMRadio from system app. r=baku
...
- Revert "Bug 938015 - Do not turn off FM radio when enabling airplane mode."
- Use setting "airplaneMode.enabled" instead of "ril.radio.disabled"
2014-04-25 17:24:00 -04:00
Sam Joch
02bac5e79f
Bug 968215 - SettingsService needs to have a callback when transaction are completed. r=bent
2014-02-07 12:19:58 +01:00
Tom Schuster
f39e81815a
Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence
2014-01-09 18:39:36 +01:00
Pin Zhang
665a61e231
Bug 938015 - Do not turn off FM radio when enabling airplane mode. r=khuey
2014-01-09 10:22:19 +08:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Pin Zhang
f2c4df915c
Bug 949855 - No sound comes out when FM Radio is first time started. r=mchen
2013-12-18 13:30:56 +08:00
Andrea Marchesini
667c7302c2
Bug 862899 - AudioChannelAgent in the FMRadio API. r=mchen, r=khuey
2013-11-04 17:27:39 -05:00
Vasanthakumar (Vasanth) Pandurangan
caa5867022
Bug 911294 - Fix FM UI showing previously tuned frequency. r=pzhang, r=mwu
2013-09-10 01:39:38 -07:00
pzhang
4e91c0eee6
Bug 913343 - Rename ReplyRunnable -> FMRadioReplyRunnable. r=khuey
2013-08-30 14:16:49 +08:00
Pin Zhang
a7ec6f9b82
Bug 870676: Part 1 - Implement mozFMRadio in WebIDL, r=khuey,baku
2013-09-03 15:26:33 -07:00
Ed Morley
f33c529c8d
Backed out changeset cd99d10fc665 (bug 870676) for breaking B2G device image builds on a CLOSED TREE
2013-08-29 10:43:09 +01:00
Pin Zhang
f4439163ed
Bug 870676: Part 1 - Implement mozFMRadio in WebIDL. r=khuey,baku
2013-08-28 10:24:23 -07:00
Kyle Huey
2aa7b2971e
Back out my failed attempt to land bug 870676.
2013-08-28 10:23:32 -07:00
Kyle Huey
d4da372687
Bug 870676: Part 1 - Implement mozFMRadio in WebIDL. r=khuey,baku
2013-08-28 10:11:53 -07:00
Kyle Huey
9f28dfc5b2
Back out my failed attempt to land bug 870676.
2013-08-28 10:10:39 -07:00
Kyle Huey
2488a88c0b
Bug 870676: Part 1 - Implement mozFMRadio in WebIDL. r=khuey,baku
2013-08-28 09:44:33 -07:00