Commit Graph

24 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
Samael Wang
b9c879d4b3 Bug 1177335 - Skip resampling if the time difference of touches is less than 2ms. 2015-08-19 13:02:21 +08:00
Bobby Holley
710865df63 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Birunthan Mohanathas
a29151dc87 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
Sotaro Ikeda
ff6e962fc7 Bug 1156981 - Split CompositorParent's scheduling of composition to CompositorScheduler r=mchang 2015-04-30 11:35:13 -07: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
Thomas Zimmermann
7c70cf4a9d Bug 1137151: Marked destructor of |GeckoTouchDispatcher| as protected, r=mwu 2015-03-10 13:44:02 +01:00
Kartikaya Gupta
66ebfdd80a Bug 1140578 - Prevent resampling moves across non-move touch events. r=mchang 2015-03-09 12:46:04 -04:00
Kartikaya Gupta
4f7ce8fbe7 Bug 1140578 - Add a explicit flag to track if we have pending touch moves to process. r=mchang 2015-03-09 12:46:04 -04:00
Kartikaya Gupta
4c87636649 Bug 1140578 - Remove some redundant code and an unused return value. r=mchang 2015-03-09 12:46:04 -04:00
Mason Chang
888221dac8 Bug 1129133 - Clean up GeckoTouchDispatcher so that it's a real singleton. r=kats,mwu 2015-02-24 12:52:16 -08:00
Kartikaya Gupta
f11fa3805c Bug 930939 - Switch the B2G controller thread from the main thread to the compositor thread. r=botond,mwu 2015-02-10 08:24:23 -05:00
Kartikaya Gupta
6cb42c1c1b Bug 920036 - Move ToWidgetMouseEvent into MultiTouchInput. r=mwu 2015-01-10 13:54:24 -05:00
Mason Chang
453d490eee Bug 1101974. Part 6. Create VsyncSource on b2g. r=kats 2014-12-18 08:30:06 -08:00
Mason Chang
5f063a9ee2 Bug 1085512 - Improve touch resampling heuristics. r=mwu 2014-11-11 15:39:00 +01:00
Michael Wu
adba773c41 Bug 1094525 - Simplify touch resampling code in GeckoTouchDispatcher, r=kats 2014-11-10 12:02:00 +01:00
Mason Chang
a74f8c5eae bug 1083530. Part 2 Refactor GeckoTouchDispacher to use mozilla::Timestamp instead of nsecs_t. r=mwu 2014-10-29 13:37:06 -07:00
Mason Chang
179b8df9c6 Bug 1069037 - Prevent touch events from piling up on the main thread. r=mwu 2014-10-16 14:02:00 +02:00
Michael Wu
5908fd4c9c Bug 1072645 - Use stateless event filtering in GeckoTouchDispatcher, r=kats 2014-09-25 00:55:39 -04:00
Mason Chang
cf5003295a Bug 970751 Resample touch events. r=mwu,kats. a=kwierso 2014-08-31 15:38:00 -07:00
Mason Chang
eb609ec17f backout of bug 970751 for intermittent ICS Debug. 2014-08-30 17:18:29 -07:00
Mason Chang
d36d5be3af Bug 970751 Resample touch events. r=mwu,kats. a=kwierso 2014-08-30 14:04:15 -07:00
Wes Kocher
836efb1031 Backed out changeset 3ab215c50844 (bug 970751) for leaks a=backout 2014-08-29 17:43:17 -07:00
Mason Chang
c7ee984e04 Bug 970751 Resample touch events. r=mwu,kats. a=kwierso 2014-08-29 16:18:04 -07:00