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

24 Коммитов

Автор SHA1 Сообщение Дата
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
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00: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
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
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
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
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
Andrea Marchesini 667c7302c2 Bug 862899 - AudioChannelAgent in the FMRadio API. r=mchen, r=khuey 2013-11-04 17:27:39 -05: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