Commit Graph
63 Commits
Author SHA1 Message Date
Nathan Froyd 4e6d8f6705 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
Andrew Osmond 0b14efab88 Bug 1008483 - Part 2. Readd missing nsPrintfCString.h include which has broken some local builds. r=me 2015-08-20 13:13:46 -04:00
Roger Yang 6052444367 Bug 1008483 - removes the RW lock in CameraControlImpl and replaces it with a standard mutex. r=aosmond 2015-08-17 15:48:07 -07:00
Andrew Osmond a4032d4af6 Bug 1187364 - Part 1. Add ability for camera to pause/resume recording. r=dhylands,bz 2015-08-17 15:20:28 -04:00
Andrew Osmond ab05e12d58 Bug 1175656 - Implement generation of recording posters in Gecko. r=dhylands,bz 2015-06-16 20:35:00 -04:00
Eric Rahm 06d4f75aa8 Bug 1163201 - Part 1: Remove instances of #ifdef PR_LOGGING in dom/. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:23 -07:00
Roger Yang abf09cc295 Bug 1129051 - Fix double free in Camera Control Listener. Fix webrtc memory leak. r=aosmond 2015-04-28 16:08:40 -04:00
Ehsan Akhgari ea41d8de48 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
Mike Habicher 9e26a04841 Bug 1141267 - register CameraThread with profiler, r=aosmond 2015-03-09 16:42:19 -04:00
Andrew Osmond bd9b77fe93 Bug 1104913 - Update selection algorithms for preview, picture and video sizes to have sane defaults. r=mikeh, r=bz 2014-12-12 19:51:29 -08:00
Mike Habicher 97b70b48e2 Bug 1104055 - fix CameraControl memory leak, r=aosmond 2014-12-12 21:18:03 -05:00
Mike Habicher 185364751c Bug 1099390 - add reason to onClosed event, r=aosmond,bz 2014-11-25 14:45:00 -05:00
Mike Habicher 364efc11e8 Bug 1098660 - fix the (complex) requirements for video mode preview size, r=aosmond 2014-11-14 20:56:59 -05:00
Mike Habicher c36e852e8e Bug 1020368 - remove direct JS_*() calls from CameraRecorderProfiles, r=aosmond,bz 2014-10-31 13:19:06 -04:00
Ryan VanderMeulen 5fa5d63571 Backed out changeset 3fde6fc99b0a (bug 1020368) for non-unified bustage. 2014-10-31 18:51:23 -04:00
Mike Habicher 21317fda12 Bug 1020368 - remove direct JS_*() calls from CameraRecorderProfiles, r=aosmond,bz 2014-10-31 13:19:06 -04:00
Andrew Osmond 99403c3dd4 Bug 1030007 - Throttle updating the preview window when CPU low and/or encoder falls behind. r=mikeh, r=cpearce 2014-07-02 19:55:00 -04:00
Mike Habicher 937832fe9a Bug 985496 - rationalize camera error reporting, r=dhylands 2014-04-25 16:28:15 -04:00
Mike Habicher 0ec7f4edea Bug 986024 - expose resumeContinuousFocus() method to DOM/JS, r=bz,dhylands 2014-04-15 15:46:40 -04:00
Mike Habicher 2633a53bd8 Bug 965420 - camera face-tracking, r=bz,dhylands 2014-04-09 11:52:10 -04:00
Youngwoo Jo dd8821c1ee Bug 965421 - camera continuous autofocus status callback, r=jst,mikeh 2014-04-09 11:12:25 -04:00
Mike Habicher 4205093730 Bug 975472 - fix crash in DOM error handler, r=dhylands 2014-02-24 13:01:21 -05:00
Mike Habicher 31d548991d Bug 940424 - add a failable test shim to the Gonk hardware wrapper, r=dclarke,dhylands,jesup 2014-02-19 23:18:52 -05:00
Mike Habicher 31265f25b6 Bug 909542 - refactor CameraControl API, r=dhylands,jst,jesup,onecyrenus 2014-02-14 17:41:07 -05:00
Ryan VanderMeulen 79194cdfb7 Backed out changeset 6e588c56764b (bug 909542) for Gaia unit test perma-fail. 2014-02-14 08:27:44 -05:00
Mike Habicher e6cc8edf9a Bug 909542 - refactor CameraControl API, r=dhylands,jst,jesup,onecyrenus 2014-02-14 00:28:57 -05:00
Jon Coppeard 0df72e25fb Bug 969812 - Convert JS_NewArrayObject to use HandleValueArray r=terrence r=bz 2014-02-12 10:50:46 +00:00
Jon Coppeard db296e2bf4 Bug 963167 - Convert JS_SetElement() to take HandleValue rather than MutableHandleValue r=sfink r=bz 2014-01-25 09:31:17 +00:00
Dave Hylands 7359892e1b Bug 910498 - Camera changes to use CreateFd. r=mikeh
* * *
Fixes for camera patch
2014-01-16 17:01:43 -08:00
Terrence Cole 5403e658ff Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink 2014-01-16 09:48:58 -08:00
Mike Habicher 902752a4e9 Bug 932669 - Expose sensor rotation offset to JS. r=dhylands 2013-12-06 09:47:29 -05:00
Mike Habicher a200c404e2 Bug 807058 - Expose thumbnail size capability and control properties. r=sotaro, r=jst 2013-10-30 15:41:08 -04:00
Trevor Saunders cc024a648c backout the part of e40a964458f8 that should never have landed 2013-10-21 18:38:50 -04:00
Trevor Saunders 5c6fbfc4a6 bug 922566 - kill dom-config.mk r=gps 2013-10-11 12:02:41 -04:00
Ryan VanderMeulen 28d99ede43 Merge m-c to inbound. 2013-08-05 20:00:43 -04:00
Mike Habicher a6630464a8 Bug 890427 - Let the Camera app know when the preview has actually started/stopped. r=jst 2013-08-05 16:24:43 -04:00
Jon Coppeard 3d1569a54e Bug 900986 - Convert JS_*Element API to use MutableHandleValue for out params r=terrence r=bholley r=smaug 2013-08-05 14:02:47 +01:00
Jon Coppeard 7ab147be05 Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz 2013-07-26 10:00:38 +01:00
Jon Coppeard 3c93e78516 Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz 2013-07-25 13:57:00 +01:00
David Zbarsky 679cefe081 Bug 868312 - Some more rooting fixes for dom r=bz 2013-05-10 22:39:45 -04:00
David Zbarsky a4d5e39056 Bug 868312: Various dom rooting fixes r=bz 2013-05-04 03:52:57 -04:00
Mike Habicher e9fe418ecf Bug 862256 - don't (re)reference CameraControl object during/after destructor, r=sotaro, a=tef+ 2013-04-17 16:30:44 +02:00
Robert O'Callahan 926cdb331d Bug 837034. Part 2: Convert DOMMediaStream to use WebIDL. r=peterv,jesup 2013-02-15 21:04:11 +13:00
Olli Pettay 368eda33e9 Bug 839528 - Change the namespace of xpidl dictionary helpers, r=khuey 2013-02-11 21:37:50 +02:00
Alexandre Lissy a191951d53 Bug 832745 - Adding a principal for a stream when creating. r=roc 2013-01-30 11:03:17 +01:00
Mike Habicher 8ba76d244c Bug 819835 - add support for setting the EXIF DateTime field, r=sotaro 2013-01-18 16:06:28 -05:00
Mike Habicher ccee0cca0b backed out changeset 0004848a182f, a=bustage 2013-01-18 16:46:26 -05:00
Mike Habicher f7372e07b1 Bug 819835 - add support for setting the EXIF DateTime field, r=sotaro 2013-01-18 16:06:28 -05:00
Mike Habicher db6d5da44e Bug 827503 - use nsMainThreadPtrHolders when passing XPCWrappedJSes around off main thread, r=bholley,jst a=blocking-basecamp+ 2013-01-09 00:43:50 +01:00
Mike Habicher a3c1ac93dc backing out patch for bug 827503 due to runtime crashes, r=crash 2013-01-09 16:39:37 +01:00