Commit Graph
28 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
Bevis Tseng a87b520aed Bug 1114937 - Part 6: Deprecate RILContentHelper. r=echen 2015-06-16 18:56:38 +08:00
Bevis Tseng 931e66a59b Bug 1114937 - Part 3: Web API change to adopt IccService for IccContacts. r=echen, r=hsinyi 2015-06-16 17:38:27 +08: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
Bevis Tseng 13422b73db Bug 1114938 - Part 2.2: (Gonk) Refactor Stk Request APIs from IccProvider to IccService. r=echen 2015-04-29 10:42:35 +08:00
Bevis Tseng 95e52df1a9 Bug 1114938 - Part 2.1: (Gonk) Refactor Stk Proactive Commands from IccProvider to IccService. r=echen 2015-04-27 16:01:56 +08:00
Andrew McCreight 92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Ethan Wu 478d4b1f57 Bug 1157018 - NsckPuk and PckPuk lock types that should require PUK instead require PIN. r=echen 2015-04-22 17:24:11 +08:00
Bevis Tseng fb3a7d860a Bug 1114935 - Part 5.1: Bind new nsIccService into MozIcc. r=echen, r=hsinyi 2015-01-13 18:03:44 +08:00
Boris Zbarsky 3a822d99b4 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Gregor Wagner 1f49174393 Backout Bug 1114935 for causing bug 1144567. 2015-03-18 11:48:52 -07:00
Bevis Tseng 3fbea621b3 Bug 1114935 - Part 5.1: Bind new nsIccService into MozIcc. r=echen, r=hsinyi 2015-01-13 18:03:44 +08:00
Edgar Chen 3053c2ec46 Bug 1142495 - Fix ICC build error on emulator L. r=hsinyi 2015-03-12 23:55:50 +08:00
Carsten "Tomcat" Book ffac66e6e1 merge b2g-inbound to mozilla-central a=merge 2015-01-08 15:07:12 +01:00
Edgar Chen d0de9943b4 Bug 1112471 - Part 2: DOM Changes for getting icc service state API. r=smaug 2014-12-26 10:11:20 +08:00
Botond Ballo 634cd197e9 Bug 1073003 - Fix -Wswitch warnings. r=echen 2014-12-23 03:11:17 -05:00
Edgar Chen 1a341e0d81 Bug 1098210 - Use WebIDL enums for mvnoType. r=hsinyi 2014-12-12 19:04:00 +08:00
Fabrice Desré 7cf2f8638f Backout bug 1098210 (2bd2fad9eac0) for suspicion of smoke test breakage. r=me 2014-12-31 12:30:31 -08:00
Edgar Chen 6ec6429cae Bug 1098210 - Use WebIDL enums for mvnoType. r=hsinyi 2014-12-12 19:04:00 +08:00
Edgar Chen 95c2b6fd00 Bug 1052852 - Use WebIDL enums for contactType. r=hsinyi 2014-12-12 11:08:27 +08:00
Edgar Chen 08de14d349 Bug 1052825 - Part 2: DOM changes for using WebIDL enum in lockType. r=smaug 2014-11-11 18:16:57 +08:00
Garner Lee c289518e21 Bug 1030602 - Remove extra SE Web MozICC dom APIs. r=allstars.chh sr=smaug 2014-10-22 11:24:00 +02:00
Vicamo Yang 72519efdfb Bug 937485 - [WebIcc] use Webidl enum for cardState. r=edgar,smaug 2014-09-03 19:31:00 +08:00
Peter Van der Beken 3467274091 Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz. 2014-10-07 11:44:49 +02:00
Edgar Chen 0e146f571b Bug 994461 - Part 1: Move IccInfo to WebIDL. r=smaug,vicamo 2014-09-19 15:53:05 +08:00
Carsten "Tomcat" Book 8c8a90895b Backed out changeset e6f223a82d91 (bug 937485) for causing b2g device regressions 2014-09-05 12:12:10 +02:00
Vicamo Yang 03310f2fde Bug 937485: [WebIcc] use Webidl enum for cardState. r=echen, r=smaug 2014-09-04 10:31:41 +08:00
Birunthan Mohanathas ba0c0dcb81 Bug 1058101 - Flatten dom/icc/src/ into parent directory. r=mccr8 2014-08-27 10:12:15 -07:00