Commit Graph
40 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
Kyle Machulis 241556554e Bug 852944 - Gamepad API IPC; r=ted, r=baku 2015-04-23 15:05:29 -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
Jacek Caban c0162a2720 Bug 1055655 - Fix warnings turned to errors by bug 1018288 found by mingw build. r=ted,jmathies 2014-09-02 11:07:25 +02:00
Ehsan Akhgari 9483e139b9 Bug 1038152 - Make the destructor of WindowsGamepad.cpp's Observer private; r=bjacob 2014-07-14 21:49:23 -04:00
Ted Mielczarek 0c8d982587 Bug 1014162 - Make Gamepad.mapping into an enum. r=smaug 2014-05-23 07:39:13 -04:00
Jacek Caban 9d5328191d Bug 690937 - Fixed compilation on mingw 2014-05-12 11:02:40 +02:00
Ted Mielczarek 664f98641d bug 690937 - Add XInput support to the Windows gamepad backend. r=jimm 2014-04-16 19:43:39 -04:00
Ted Mielczarek cde6ff1acc Bug 996078 - Replace Windows Gamepad DirectInput backend with Raw Input. r=jimm 2014-04-14 13:18:51 -04:00
Birunthan Mohanathas eeb9aaaa94 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Ted Mielczarek 04e53b188a bug 980876 - null check GamepadService in case of events still in play during shutdown. r=smaug 2014-04-07 14:28:41 -04:00
Ted Mielczarek 70609693d6 bug 980876 - be smarter about sending gamepad updates from the background thread. r=smaug 2014-04-07 14:28:08 -04:00
Masatoshi Kimura 5bbacee4ff Bug 969918 - Use decltype to declare pointers for dynamic-loaded functions. r=jimm sr=roc 2014-02-18 07:32:52 +09:00
Ehsan Akhgari 68bfe70f09 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ehsan Akhgari 57b6bc2653 Bug 942334 - Build hal in unified mode; r=cjones 2013-11-25 14:57:18 -05:00
Ted Mielczarek 61b867f795 bug 921565 - look for WM_DEVICECHANGE in Windows gamepad backend and rescan for devices. r=jimm 2013-10-24 15:06:19 -04:00
Masatoshi Kimura 78cf6a13fe Bug 925599 - Introduce version test functions using VerifyVersionInfo(). r=bbondy 2013-10-19 03:14:31 +09:00
Nathan Froyd b4a5129cce Bug 914826 - part 4 - fix source files that were bootlegging XPCOM do_* functions via generated ipdl headers; r=ehsan 2013-09-10 16:56:05 -04:00
Birunthan Mohanathas 8cfe8b37ac Bug 784739 - Switch from NULL to nullptr in hal/. r=ehsan 2013-08-23 15:51:15 -04:00
Ted Mielczarek 7b992a7242 bug 860413 - Allow setting standard gamepad mapping. r=smaug 2013-04-09 08:43:25 -04:00
Ehsan Akhgari f013f1eca9 Bug 579517 follow-up: Remove NSPR types that crept in 2013-04-02 20:59:27 -04:00
Ted Mielczarek 0c7bf4c16b bug 604039 - Windows gamepad backend using DirectInput. r=bas 2011-08-03 14:12:08 -04:00
Trevor Saunders cf85030fec no bug - mark several classes final to avoid warnings about deleting objects of polymorphic type 2013-01-11 04:43:29 -05:00
Aryeh Gregor 8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Brian R. Bondy 5c310dcd42 Bug 774140 - Remove code duplication for IsVistaOrLater. r=bsmedberg 2012-07-25 10:23:26 -04:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Mounir Lamouri 633ef89c85 Bug 749645 - Use fallback files in hal/ when a backend isn't implemneted instead of having randomly defined methods. r=cjones 2012-05-03 12:05:32 +02:00
Makoto Kato 68d9d314eb Bug 625664 - accelerometer support using Windows 7 Sensor API. r=dougt 2012-05-01 12:04:30 +09:00
Ryan VanderMeulen dbe343ca02 Back out entire dd28759eba7b push (bug 739913 and bug 742226) due to OSX 10.7 and b2g bustage. r=shouldausedtry 2012-04-12 20:00:57 -04:00
Kan-Ru Chen a71df85ef4 Bug 739913 - Use kernel wake lock when the "cpu" topic is locked. r=cjones 2012-04-12 19:24:20 -04:00
Masatoshi Kimura 3a5286efbe Bug 699247 - Remove Win2K related code. r=jimm, sr=neil 2012-02-23 08:53:55 -06:00
Mark Capella 590ec2e743 Bug 721496 - Remove MOZ_WINSDK_TARGETVER ifdefs for pre-Windows 7 SDKs. r=jimm 2012-02-23 01:33:19 +01:00
Ed Morley 8086dffedb Backout f1acc52a59da (bug 719983) & 6771bd53e267 (bug 699247) for 30% WinXp Ts regression 2012-02-08 21:04:21 +00:00
Masatoshi Kimura 89dc26a595 Bug 699247 - Say goodbye to Win2k related code. r=jimm, sr=neil 2012-02-08 10:00:45 -06:00
Kan-Ru Chen a0f8ffaaef Bug 709585 - Part 5, hal code for the Power API. r=cjones 2012-01-31 01:08:00 -05:00
Mounir Lamouri bd3b3a0552 Bug 677166 - Part 6 - Add NetworkInformation handling into hal. r=jlebar 2012-01-16 14:39:57 +01:00
Makoto Kato 92fd9bc86e Bug 710178 - ASSERTION: Battery API: When charging and level at 1.0, remaining time should be 0. Please fix your backend. r=mounir 2011-12-19 12:23:13 +09:00
Mounir Lamouri d381103fe6 Bug 710793 - Move hal's private methods outside of Hal.h. r=jlebar sr=cjones 2011-12-17 22:04:51 +01:00
Justin Lebar 3dcde4d38a Bug 702256 - "[Gonk] Add DOM API for turning screen on/off and adjusting the screen's brightness" r=cjones,mounir 2011-12-05 01:07:00 +08:00
Makoto Kato 6ef5f8a85a Bug 696049 - Battery API: Windows backend. r=mounir,jimm 2011-12-05 19:34:27 +09:00