Commit Graph

83 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
Andrea Marchesini
4c6e165c92 Bug 1211511 - AudioChannelAgent::NotifyStartedPlaying and NotifyStoppedPlaying should use the same level of playback notification, r=roc 2015-10-07 20:06:47 +01:00
Ho-Pang Hsu
124febe0b0 Bug 1171807 - Part 2: Move to enums and deprecate TelephonyCall.mCallState and TelephonyCallGroup.mCallState (DOM). r=btseng 2015-10-06 19:11:00 +02:00
Alastor Wu
0342cbe498 Bug 1129882 - add mozInterrupt in telephony object. r=baku 2015-09-03 10:14:17 +08:00
Alastor Wu
9d0a4e82cb Bug 1129882 - create agent in telephony object. r=baku, r=hsinyi 2015-03-26 16:27:25 +08:00
Ryan VanderMeulen
f06c6b6474 Backed out changesets 8e41bbb259cc and a5823a3df988 (bug 1129882) for smoketest regressions. a=me 2015-08-25 09:42:03 -04:00
Alastor Wu
40da790ff8 Bug 1129882 - Add mozInterrupt in telephony object. r=baku 2015-08-10 17:23:33 +08:00
Alastor Wu
bc090c940f Bug 1129882 - Create agent in telephony object. r=szchen, r=htsai 2015-03-26 16:27:25 +08:00
Fabrice Desré
2ee84dff73 Bug 1129882 - backout 9c6fde246f6e and 847b57aaeff7 for causing 1193840 on a CLOSED TREE r=szchen, r=htsai 2015-08-12 14:35:41 -07:00
Alastor Wu
5e4647d36c Bug 1129882 - Add mozInterrupt in telephony object. r=baku 2015-08-10 17:23:33 +08:00
Alastor Wu
6f94054c03 Bug 1129882 - Create agent in telephony object. r=szchen, r=htsai 2015-03-26 16:27:25 +08:00
Carsten "Tomcat" Book
b6f93468a9 Backed out changeset 6df9cef6b3ed (bug 1129882) for GU failures on a CLOSED TREE 2015-07-24 16:35:17 +02:00
Carsten "Tomcat" Book
7a0262e7bf Backed out changeset c17987dfa969 (bug 1129882) 2015-07-24 16:30:31 +02:00
Alastor Wu
ef7735f65f Bug 1129882 - add mozInterrupt in telephony object. r=baku 2015-03-26 15:32:43 +08:00
Alastor Wu
0240b07afd Bug 1129882 - create agent in telephony object. r=szchen r=hsinyi 2015-03-26 16:27:25 +08:00
Hsin-Yi Tsai
5caa774232 Bug 1168515 - do not block incall MMI requests on alerting state. r=aknow 2015-05-28 17:05:10 +08:00
Fernando Jimenez
891d911e96 Bug 1145551 - DTMF should be sent using the active SIM, the given or the default one (in that order). r=aknow 2015-04-09 19:22:37 +02:00
Andrea Marchesini
94545cbb2e Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari
5cccea6f0f 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
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
Szu-Yu Chen [:aknow]
4eeb3dc302 Bug 1115603 - Part 2: Implement nsITelephonyCallInfo and use it (dom). r=hsinyi 2015-01-08 16:33:51 +08:00
Albert Crespell
44c3140d91 Bug 722841 - WebTelephony: Implement navigator.mozTelephony.sendTones(). r=hsinyi 2015-01-07 07:37:03 +01:00
Szu-Yu Chen [:aknow]
b36d7847f6 Bug 1100895 - Part 2: Implement ready attribute. r=hsinyi 2014-12-17 06:57:23 +08:00
Ben Hsu
a420742725 Bug 1081811 - Part 1: Remove some callschanged event firing and associated parameters. r=aknow 2014-10-22 00:12:00 -04:00
Szu-Yu Chen [:aknow]
986ef8fcad Bug 1058397 - Part 1: Separate TelephonyCallback. r=hsinyi 2014-10-15 02:50:00 -04:00
Ryan VanderMeulen
c639baaf14 Backed out changesets 3ad7043d2116, 774f695d8c0a, c7d7762d5e27, and 87cd44cd57b7 (bug 1058397) for non-unified bustage. 2014-10-09 12:13:35 -04:00
Szu-Yu Chen [:aknow]
1e7631e7fc Bug 1058397 - Part 1: Separate TelephonyCallback. r=hsinyi 2014-10-08 20:01:00 +02:00
Szu-Yu Chen [:aknow]
b5e29e70ee Bug 889737 - Part 04: Refactoring: Change Telephony::Callback to TelephonyCallback. r=vicamo 2014-09-22 01:34:00 -04:00
Ehsan Akhgari
f45a3fcf07 Bug 1060987 - Fix more bad implicit constructors in DOM; r=baku
--HG--
extra : rebase_source : 01709017e97fdc96d1d53eb881efc1792118edc4
2014-09-01 20:49:25 -04:00
Phil Ringnalda
e2e326a9c4 Backed out 6 changesets (bug 1060982, bug 1061058, bug 1060987, bug 1061060, bug 1060930) for build bustage
CLOSED TREE

Backed out changeset c23b8418e6be (bug 1060987)
Backed out changeset a8cddc6bdffc (bug 1061060)
Backed out changeset b5af5cbdac3f (bug 1060982)
Backed out changeset 4912d451011a (bug 1060930)
Backed out changeset bdacbf453238 (bug 1061058)
Backed out changeset da6c71a8f5ae (bug 1060987)
2014-09-01 16:48:51 -07:00
Ehsan Akhgari
3fc836363c Bug 1060987 - Fix more bad implicit constructors in DOM; r=baku 2014-09-01 18:00:53 -04:00
Kyle Huey
8e9a0aaf0e Bug 1034312: Inherit from interfaces when using the NS_DECL_NSIFOO macros in b2g. r=vicamo 2014-08-19 18:01:49 -07:00
Szu-Yu Chen [:aknow]
87b4873063 Bug 1036851 - Part 2: Add ready event (dom). r=hsinyi 2014-07-21 19:17:00 +02:00
Boris Zbarsky
0b86f5635c Bug 1040263. Eagerly create and preserve Promise reflectors so we always have them available during unlink. r=nsm,bholley. 2014-07-18 21:31:11 -04:00
Szu-Yu Chen [:aknow]
c2ab578f26 Bug 1027513 - Extract CreateCall and CreateCallId. r=hsinyi 2014-06-24 06:52:00 -04:00
Szu-Yu Chen [:aknow]
48869efd74 Bug 1014903 - Get active call by query. r=hsinyi 2014-06-12 19:34:00 -04:00
Vicamo Yang
8cb64a40e2 Bug 927320 - 2/2: rename related variables. r=aknow,btian 2014-06-03 22:15:30 +08:00
Vicamo Yang
a2515b9bfe Bug 927320 - 1/2: rename TelephonyProvider to TelephonyService. r=aknow
--HG--
rename : dom/telephony/gonk/TelephonyProvider.js => dom/telephony/gonk/TelephonyService.js
rename : dom/telephony/gonk/TelephonyProvider.manifest => dom/telephony/gonk/TelephonyService.manifest
rename : dom/telephony/ipc/TelephonyIPCProvider.cpp => dom/telephony/ipc/TelephonyIPCService.cpp
rename : dom/telephony/ipc/TelephonyIPCProvider.h => dom/telephony/ipc/TelephonyIPCService.h
rename : dom/telephony/nsIGonkTelephonyProvider.idl => dom/telephony/nsIGonkTelephonyService.idl
rename : dom/telephony/nsITelephonyProvider.idl => dom/telephony/nsITelephonyService.idl
2014-06-03 22:15:25 +08:00
Szu-Yu Chen [:aknow]
20b9a408ed Bug 1013745 - Part 2: Get callIndex when dialling success (dom). r=hsinyi 2014-05-26 19:08:00 +02:00
Boris Zbarsky
fdbb455d4f Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Masayuki Nakano
b185105992 Bug 984269 Rename nsDOMEventTargetHelper to mozilla::DOMEventTargetHelper r=smaug
--HG--
rename : dom/events/nsDOMEventTargetHelper.cpp => dom/events/DOMEventTargetHelper.cpp
rename : dom/events/nsDOMEventTargetHelper.h => dom/events/DOMEventTargetHelper.h
2014-04-01 15:13:50 +09:00
Szu-Yu Chen [:aknow]
26ffb2e791 Bug 969218 - Part 4: Use promise for dial and dialEmergency - dom. r=khuey 2014-02-27 14:12:30 +08:00
Ryan VanderMeulen
9d2e533edb Backed out 6 changesets (bug 969218) for bustage. DONTBUILD
Backed out changeset 86356906ecf0 (bug 969218)
Backed out changeset 46fa16a18c27 (bug 969218)
Backed out changeset 75219ceb5175 (bug 969218)
Backed out changeset b9f4ba525eec (bug 969218)
Backed out changeset 323c1329614b (bug 969218)
Backed out changeset e0fa4e0eee36 (bug 969218)
2014-02-26 14:27:54 -05:00
Szu-Yu Chen [:aknow]
d69ee6fd46 Bug 969218 - Part 4: dom r=khuey 2014-02-26 11:03:56 -08:00
Boris Zbarsky
9d25dc48cc Bug 950315 part 1. Convert a bunch of event targets to passing a Window or nsDOMEventTargetHelper directly to the constructor of their ancestor nsDOMEventTargetHelper. r=smaug 2014-01-06 21:53:23 -05:00
Szu-Yu Chen [:aknow]
768d36b8b0 Bug 814625 - Part 5: DOM: Add multisim support. r=khuey 2013-10-31 08:05:51 -04:00
Szu-Yu Chen [:aknow]
54114f2d12 Bug 814625 - Part 4: DOM: Refactor. r=khuey 2013-10-31 08:05:51 -04:00
Szu-Yu Chen [:aknow]
5ac37c4319 Bug 814625 - Part 3: DOM: Code reorder. r=khuey 2013-10-31 08:05:51 -04:00
Ryan VanderMeulen
6a6ba035dd Backed out 9 changesets (bug 814625) for desktop build bustage.
Backed out changeset a107de5616a0 (bug 814625)
Backed out changeset 416665a419f4 (bug 814625)
Backed out changeset b6fc8734864f (bug 814625)
Backed out changeset 9f5e2e44a914 (bug 814625)
Backed out changeset 17b3050df362 (bug 814625)
Backed out changeset 43a047c081c8 (bug 814625)
Backed out changeset 90bdcd099320 (bug 814625)
Backed out changeset 8957cc31cce2 (bug 814625)
Backed out changeset de45eb7a8d16 (bug 814625)
2013-10-30 15:48:39 -04:00
Szu-Yu Chen [:aknow]
88b6f2b9fd Bug 814625 - Part 5: DOM: Add multisim support. r=khuey 2013-10-30 15:06:41 -04:00