Commit Graph

28 Commits

Author SHA1 Message Date
Nathan Froyd
e4e2da55c9 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
f3fc7d2d51 Bug 1114937 - Part 6: Deprecate RILContentHelper. r=echen 2015-06-16 18:56:38 +08:00
Bevis Tseng
215693c2b0 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
47ed3a3675 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
a5d36a6d3c 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
4dc1a2216d 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
c979f253c0 Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Ethan Wu
85139a2858 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
967cd7cde4 Bug 1114935 - Part 5.1: Bind new nsIccService into MozIcc. r=echen, r=hsinyi 2015-01-13 18:03:44 +08:00
Boris Zbarsky
988b8e01be 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
8824e5f4f3 Backout Bug 1114935 for causing bug 1144567. 2015-03-18 11:48:52 -07:00
Bevis Tseng
953537bca8 Bug 1114935 - Part 5.1: Bind new nsIccService into MozIcc. r=echen, r=hsinyi 2015-01-13 18:03:44 +08:00
Edgar Chen
a0788cee57 Bug 1142495 - Fix ICC build error on emulator L. r=hsinyi 2015-03-12 23:55:50 +08:00
Carsten "Tomcat" Book
072aa6913a merge b2g-inbound to mozilla-central a=merge 2015-01-08 15:07:12 +01:00
Edgar Chen
91b0a87032 Bug 1112471 - Part 2: DOM Changes for getting icc service state API. r=smaug 2014-12-26 10:11:20 +08:00
Botond Ballo
a92c58728a Bug 1073003 - Fix -Wswitch warnings. r=echen
--HG--
extra : rebase_source : 5fee55fde383139422f0b50301a8a14fac38dc15
2014-12-23 03:11:17 -05:00
Edgar Chen
f02cba3bc6 Bug 1098210 - Use WebIDL enums for mvnoType. r=hsinyi 2014-12-12 19:04:00 +08:00
Fabrice Desré
95a327c8c0 Backout bug 1098210 (2bd2fad9eac0) for suspicion of smoke test breakage. r=me 2014-12-31 12:30:31 -08:00
Edgar Chen
b62d79eeb1 Bug 1098210 - Use WebIDL enums for mvnoType. r=hsinyi 2014-12-12 19:04:00 +08:00
Edgar Chen
07126d81a3 Bug 1052852 - Use WebIDL enums for contactType. r=hsinyi 2014-12-12 11:08:27 +08:00
Edgar Chen
12a3c26d2c Bug 1052825 - Part 2: DOM changes for using WebIDL enum in lockType. r=smaug 2014-11-11 18:16:57 +08:00
Garner Lee
7d3c9ee582 Bug 1030602 - Remove extra SE Web MozICC dom APIs. r=allstars.chh sr=smaug 2014-10-22 11:24:00 +02:00
Vicamo Yang
8ce1a4273d Bug 937485 - [WebIcc] use Webidl enum for cardState. r=edgar,smaug 2014-09-03 19:31:00 +08:00
Peter Van der Beken
4b7e268d87 Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz.
--HG--
extra : rebase_source : 89c476cd9436530b2df5acc903909e34188417a0
2014-10-07 11:44:49 +02:00
Edgar Chen
72d75cab1f Bug 994461 - Part 1: Move IccInfo to WebIDL. r=smaug,vicamo
--HG--
rename : dom/icc/interfaces/nsIDOMIccInfo.idl => dom/icc/interfaces/nsIIccInfo.idl
2014-09-19 15:53:05 +08:00
Carsten "Tomcat" Book
bb79a9f875 Backed out changeset e6f223a82d91 (bug 937485) for causing b2g device regressions 2014-09-05 12:12:10 +02:00
Vicamo Yang
fbadc5db9a Bug 937485: [WebIcc] use Webidl enum for cardState. r=echen, r=smaug 2014-09-04 10:31:41 +08:00
Birunthan Mohanathas
399f182243 Bug 1058101 - Flatten dom/icc/src/ into parent directory. r=mccr8
--HG--
rename : dom/icc/src/Icc.cpp => dom/icc/Icc.cpp
rename : dom/icc/src/Icc.h => dom/icc/Icc.h
rename : dom/icc/src/IccListener.cpp => dom/icc/IccListener.cpp
rename : dom/icc/src/IccListener.h => dom/icc/IccListener.h
rename : dom/icc/src/IccManager.cpp => dom/icc/IccManager.cpp
rename : dom/icc/src/IccManager.h => dom/icc/IccManager.h
2014-08-27 10:12:15 -07:00