Commit Graph
73 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
Ho-Pang Hsu a83d20263e 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 d210fb3e28 Bug 1129882 - create agent in telephony object. r=baku, r=hsinyi 2015-03-26 16:27:25 +08:00
Ryan VanderMeulen 2d6b9d6755 Backed out changesets 8e41bbb259cc and a5823a3df988 (bug 1129882) for smoketest regressions. a=me 2015-08-25 09:42:03 -04:00
Alastor Wu a3b5579e58 Bug 1129882 - Create agent in telephony object. r=szchen, r=htsai 2015-03-26 16:27:25 +08:00
Fabrice Desré 21c0f61384 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 382e90040e Bug 1129882 - Create agent in telephony object. r=szchen, r=htsai 2015-03-26 16:27:25 +08:00
Carsten "Tomcat" Book 3477ee3a45 Backed out changeset 6df9cef6b3ed (bug 1129882) for GU failures on a CLOSED TREE 2015-07-24 16:35:17 +02:00
Alastor Wu 96765d5b67 Bug 1129882 - create agent in telephony object. r=szchen r=hsinyi 2015-03-26 16:27:25 +08:00
Ben Hsu 68ac43c994 Bug 1147736 - Part 2: Bypass NotifyError. r=aknow 2015-04-27 23:28:00 -04:00
Naoki Hirata 5240ecf0b1 Backed out 4 changesets (bug 1147736)
Backed out changeset 80ad8826d772 (bug 1147736)
Backed out changeset 1f69ddad07bb (bug 1147736)
Backed out changeset 34aee78127f5 (bug 1147736)
Backed out changeset 8a8c735fb984 (bug 1147736)
2015-05-13 14:15:57 -07:00
Ben Hsu 7011389cf9 Bug 1161403 - Part 1: Deprecate internal states. r=aknow 2015-05-06 03:58:00 -04:00
Ben Hsu 2aace7d13c Bug 1147736 - Part 2: Bypass NotifyError. r=aknow 2015-04-27 23:28:00 -04:00
Andrew McCreight 92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
brian37ful ca3882a89b Bug 1131047 - Part 2: Obsolete some events (DOM). r=aknow 2015-04-20 07:19:00 -04:00
Szu-Yu Chen [:aknow] 8f3e888a31 Bug 1043165 - Part 2: Add TelephonyCall.disconnectedReason (dom). r=hsinyi 2015-03-26 16:39:39 +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
Ben Hsu 3c4c90ae68 Bug 1095366 - Part 2: Remove some event firing (DOM). r=aknow 2015-01-27 23:01:00 -05:00
Ben Hsu 5f890f2476 Bug 1077075 - Part 2: Modify related dom implementations (DOM). r=aknow 2015-01-04 17:33:00 -05:00
Szu-Yu Chen [:aknow] 0d19c7138f Bug 1027513 - Extract CreateCall and CreateCallId. r=hsinyi 2014-06-24 06:52:00 -04:00
Hsin-Yi Tsai 1e4d4c937d Bug 981519 - number and name presentation - part 3 - DOM & IPC code. r=smaug 2014-04-10 14:25:42 +08:00
Hsin-Yi Tsai 99c61614e6 Backed out changeset 598098217e1f (bug 981519) for causing regression bug 1026081 2014-06-17 15:37:31 +08:00
Hsin-Yi Tsai 08e16d6de7 Bug 981519 - number and name presentation - part 3 - DOM & IPC code. r=smaug 2014-04-10 14:25:42 +08:00
Vicamo Yang f6477e761e Bug 1023148 - Use WebIDL codegen to implement RIL & WiFi events. r=smaug 2014-06-11 09:23:34 +08:00
Vicamo Yang d4e600b742 Bug 927320 - 2/2: rename related variables. r=aknow,btian 2014-06-03 22:15:30 +08:00
Vicamo Yang d72554ea24 Bug 927320 - 1/2: rename TelephonyProvider to TelephonyService. r=aknow 2014-06-03 22:15:25 +08:00
Szu-Yu Chen [:aknow] 8c7312b0a6 Bug 1013745 - Part 2: Get callIndex when dialling success (dom). r=hsinyi 2014-05-26 19:08:00 +02:00
Birunthan Mohanathas e2b133b310 Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug 2014-04-25 12:49:00 -04:00
Boris Zbarsky b95c359828 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
Boris Zbarsky ae0180ee85 Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Szu-Yu Chen [:aknow] 19cf0ea063 Bug 990467 - Part 3: DOM: Re-order code to avoid multi-thread issue. r=hsinyi 2014-04-04 08:18:49 -04:00
Masayuki Nakano 2a76e478e7 Bug 984269 Rename nsDOMEventTargetHelper to mozilla::DOMEventTargetHelper r=smaug 2014-04-01 15:13:50 +09:00
Hsin-Yi Tsai 2a73d685e2 Bug 881174 - part4 - cdma 3way call DOM and IPC. r=vicamo 2014-02-21 17:52:13 +08:00
Hsin-Yi Tsai bf62c98ff1 Bug 963813 - make sure no another outgoing call when there's already one. r=aknow 2014-01-29 14:27:22 +08:00
Boris Zbarsky 1a0e58e622 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] 5c7b2deccd Bug 814625 - Part 5: DOM: Add multisim support. r=khuey 2013-10-31 08:05:51 -04:00
Ryan VanderMeulen 7053e68937 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] 4b5fa62cdd Bug 814625 - Part 5: DOM: Add multisim support. r=khuey 2013-10-30 15:06:41 -04:00
Vicamo Yang 0547489e02 Bug 910568 - WebTelephony: move DOM classes to namespace mozilla::dom. r=khuey 2013-09-12 05:47:14 +02:00
Vicamo Yang e630c17fb4 Bug 864485 - 2/3: DOM & IPC. r=khuey 2013-09-07 14:19:53 +08:00
Ryan VanderMeulen a40fc8f71a Backed out 7 changesets (bug 907585, bug 873351, bug 864485) for making phones unbootable.
Backed out changeset 001a849303de (bug 873351)
Backed out changeset 8020b3013618 (bug 907585)
Backed out changeset 9039460e09c5 (bug 907585)
Backed out changeset 9464e393a501 (bug 907585)
Backed out changeset d6920653de69 (bug 864485)
Backed out changeset 20ef446b27cd (bug 864485)
Backed out changeset e27c780e1ef5 (bug 864485)
2013-09-06 17:28:10 -04:00
Vicamo Yang 3c7a9b33b9 Bug 864485 - 2/3: DOM & IPC. r=khuey 2013-09-06 16:11:34 +08:00
Hsin-Yi Tsai 99b7931cdd Bug 905954 - [wasabi] B2G CDMA: don't change to holding state when we switch two calls. r=bent 2013-08-16 17:01:41 +08:00
Hsin-Yi Tsai a744d600ef Bug 772765 - part2 - Telephony DOM. r=bent 2013-07-06 18:24:55 +08:00
Hsin-Yi Tsai 12a10e2ea0 Bug 888592 - move Telephony and TelephonyCall to webidl. sr=sicking, r=bent 2013-07-15 16:27:19 +08:00
Szu-Yu Chen [:aknow] 2314577023 Bug 881142 - Part 2: Remove call state busy (telephony dom). r=hsinyi, r=bent 2013-07-15 08:53:47 -04:00
Andrea Marchesini 1a4ec021a7 Bug 874252 - Leak with expando on a DOMError, r=khuey 2013-05-27 16:43:09 -04:00
Andrea Marchesini aeabdc6d86 Bug 870856 - Convert DOMError to WebIDL. r=Ms2ger, r=bz 2013-05-18 13:52:06 -04:00
Szu-Yu Chen [:aknow] 302f7cbc8d Bug 863281 - Part 3: Update emergency property for outgoing call. r=htsai, gyeh.
---
 dom/bluetooth/BluetoothTelephonyListener.cpp |    4 +++-
 dom/telephony/Telephony.cpp                  |   10 ++++++----
 dom/telephony/TelephonyCall.cpp              |   10 +++++++++-
 dom/telephony/TelephonyCall.h                |   10 +++++++++-
 4 files changed, 27 insertions(+), 7 deletions(-)
2013-05-14 14:08:07 +08:00
Olli Pettay 101570a786 Bug 822399 - Make Event to use Paris bindings, r=peterv 2013-03-09 13:34:29 +02:00