Commit Graph

14 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
Masayuki Nakano
c711b059dc Bug 895274 part.5 Rename NS_EVENT_NULL to eVoidEvent r=smaug 2015-08-29 08:58:26 +09:00
Masayuki Nakano
3bf74a341a Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug 2015-08-26 21:56:59 +09:00
Aryeh Gregor
f5961e4a6b Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Olli Pettay
d8a302cc52 Bug 1164981 - Add MouseEvent.movementX/Y. r=masayuki, r=ehsan
CLOSED TREE
2015-05-19 16:26:02 -04:00
Ryan VanderMeulen
20957a1140 Backed out changeset 2ac9fe6d2333 (bug 1164981) for frequent test_bug301397.xul failures.
CLOSED TREE
2015-05-19 15:08:34 -04:00
Olli Pettay
3b30fbfff8 Bug 1164981 - Add MouseEvent.movementX/Y, r=masayuki,ehsan 2015-05-19 19:57:24 +03:00
Andrew McCreight
aeff7c99ee Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Timur Valeev
3d73622a96 Bug 1135627 - Add implementation of DragEvent constructor. r=jdm r=smaug 2015-03-04 17:52:03 +03:00
Masayuki Nakano
5dd6ba156f Bug 1046101 part.12 Rename NS_DRAG_EVENT to eDragEventClass r=smaug 2014-08-04 14:28:50 +09:00
Masayuki Nakano
77d7a1ac4b Bug 1046101 part.1 Rename nsEventStructType to mozilla::EventClassID r=smaug 2014-08-04 14:28:46 +09:00
Boris Zbarsky
40e78a51ea Bug 977950. Fix dragging of text to work again. r=smaug 2014-02-28 08:57:13 -05:00
Masayuki Nakano
01a476057d Bug 975688 part.15 Rename nsDOMMouseEvent to mozilla::dom::MouseEvent r=smaug
--HG--
rename : dom/events/nsDOMMouseEvent.cpp => dom/events/MouseEvent.cpp
rename : dom/events/nsDOMMouseEvent.h => dom/events/MouseEvent.h
2014-02-27 19:51:15 +09:00
Masayuki Nakano
9e274d9359 Bug 975688 part.9 Rename nsDOMDragEvent to mozilla::dom::DragEvent r=smaug
--HG--
rename : dom/events/nsDOMDragEvent.cpp => dom/events/DragEvent.cpp
rename : dom/events/nsDOMDragEvent.h => dom/events/DragEvent.h
2014-02-27 19:51:13 +09:00