gecko-dev/widget/gonk/nativewindow
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
..
GonkBufferQueueLL Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
FakeSurfaceComposer.cpp Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
FakeSurfaceComposer.h Bug 1112219 - Implement platform independent MediaResourceManager r=cpearce,bwu,nical 2015-07-05 11:56:04 -07:00
GonkBufferQueue.h Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
GonkBufferQueueJB.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkBufferQueueJB.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkBufferQueueKK.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkBufferQueueKK.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkConsumerBaseJB.cpp Bug 1098970 - Part 3: Add new files for Nativewindow. r=sotaro 2014-12-17 22:30:00 +01:00
GonkConsumerBaseJB.h Bug 1098970 - Part 3: Add new files for Nativewindow. r=sotaro 2014-12-17 22:30:00 +01:00
GonkConsumerBaseKK.cpp Bug 1073081 - Fix -Woverloaded-virtual warnings in gonk code. r=sotaro 2014-11-24 20:03:27 -05:00
GonkConsumerBaseKK.h Bug 1178513 - Export libxul symbols needed by ACL. r=mattwoodrow 2015-07-02 15:19:35 -07:00
GonkConsumerBaseLL.cpp Bug 1119980 - Fix a -Woverloaded-virtual warning in gonk widget code. r=sotaro 2015-02-09 17:32:52 -05:00
GonkConsumerBaseLL.h Bug 1144515 - ConsumerListener interface changes. r=mwu,sotaro.ikeda.g 2015-03-18 15:03:15 -07:00
GonkNativeWindow.h Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
GonkNativeWindowClient.h Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
GonkNativeWindowClientICS.cpp
GonkNativeWindowClientICS.h
GonkNativeWindowClientJB.cpp Bug 1098970 - Part 3: Add new files for Nativewindow. r=sotaro 2014-12-17 22:30:00 +01:00
GonkNativeWindowClientJB.h Bug 1098970 - Part 3: Add new files for Nativewindow. r=sotaro 2014-12-17 22:30:00 +01:00
GonkNativeWindowClientKK.cpp Bug 1073081 - Fix -Wunused-result, -Wunused-variable, and -Wunused-but-set-variable warnings. r=ehsan 2014-11-26 18:13:49 -05:00
GonkNativeWindowClientKK.h
GonkNativeWindowClientLL.cpp Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
GonkNativeWindowClientLL.h Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
GonkNativeWindowICS.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkNativeWindowICS.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkNativeWindowJB.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkNativeWindowJB.h Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan 2015-06-17 10:00:52 -04:00
GonkNativeWindowKK.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkNativeWindowKK.h Bug 1178513 - Export libxul symbols needed by ACL. r=mattwoodrow 2015-07-02 15:19:35 -07:00
GonkNativeWindowLL.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GonkNativeWindowLL.h Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan 2015-06-17 10:00:52 -04:00
IGonkGraphicBufferConsumer.h Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
IGonkGraphicBufferConsumerKK.cpp Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
IGonkGraphicBufferConsumerKK.h Bug 1098970 - Part 4: Fix naming problems and buffer allocation. r=sotaro 2014-12-21 22:01:00 +01:00
IGonkGraphicBufferConsumerLL.cpp Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan 2015-06-17 10:00:52 -04:00
IGonkGraphicBufferConsumerLL.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
moz.build Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00