Commit Graph

254 Commits

Author SHA1 Message Date
Makoto Kato
369a8a18e3 Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on dom. r=nfroyd 2015-10-28 14:29:57 +09:00
Andrea Marchesini
fc99d1b5c4 Bug 1218396 - By default window-less AudioChannelAgents should be muted, r=alwu 2015-10-27 06:57:38 +00:00
Birunthan Mohanathas
a535083ab4 Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Kyle Huey
fffe5cc829 Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Alastor Wu
e9fa2914d5 Bug 1183033 - Don't mute the system channel type. r=baku 2015-10-20 20:42:24 +08:00
Andrea Marchesini
85cb35ab67 Bug 1215684 - Shut down AudioChannelService in the child process. r=mccr8 2015-10-20 11:04:00 -04:00
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
sajitk
9367c39b9b Bug 1180940 - Changed return type of AudioDestinationNode::CreateAudioChannelAgent method to return errors, if any methods that it calls fail. Added code to handle the return value in AudioContext::Init(), and its callers. r=baku 2015-10-05 04:35:00 +02:00
Nigel Babu
11f025f22e Backed out changeset 04430cc26dba (bug 1180940) for Mulet Gij(4) bustage again. 2015-10-01 13:53:14 +05:30
sajitk
607b5bbd22 Bug 1180940 - Changed return type of AudioDestinationNode::CreateAudioChannelAgent method to return errors, if any methods that it calls fail. Added code to handle the return value in AudioContext::Init(), and its callers. r=baku 2015-09-30 17:51:00 +02:00
Chris Peterson
7952296af1 Bug 1208353 - Fix -Wshadow warnings in dom/audiochannel. r=padenot 2015-09-21 23:39:00 -07:00
Nigel Babu
159d644904 Backed out changeset 49847eb6c1ce (bug 1180940) for Mulet Gij(4) bustage on CLOSED TREE 2015-09-24 12:37:52 +05:30
sajitk
a354cb92b8 Bug 1180940 - Changed return type of AudioDestinationNode::CreateAudioChannelAgent method to return errors, if any methods that it calls fail. Added code to handle the return value in AudioContext::Init(), and its callers. r=baku 2015-09-22 18:16:00 +02:00
Alastor Wu
5f4eb03519 Bug 1203068 - Add system type into kMozAudioChannelAttributeTable. r=baku 2015-09-09 18:32:00 +08:00
Andrea Marchesini
22d8871a7e Bug 1184058 - AudioChannelAgent should be muted when used without a proper window object. r=alwu
CLOSED TREE
2015-09-01 12:05:59 -04:00
Ryan VanderMeulen
d038d8dd36 Backed out changeset ddc08e87843f (bug 1184058) for AudioChannelAgent crashes/asserts. 2015-09-01 09:47:02 -04:00
Andrea Marchesini
bc58abb98b Bug 1184058 - AudioChannelAgent should be muted when used without a proper window object, r=alwu 2015-08-27 09:12:21 +01:00
Andrea Marchesini
beb0c71375 Bug 1187204 - AudioChannelService must exist before calling IsAudioChannelMutedByDefault(), r=alwu 2015-08-31 11:52:42 +01:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Nigel Babu
b09a7fcfb8 Back out a19daae11647 (Bug 1186307) for W8 and W4 bustage on CLOSED TREE 2015-08-27 14:50:50 +05:30
Andrea Marchesini
0f9b96b856 Bug 1184058 - AudioChannelAgent should be muted when used without a proper window object, r=alwu 2015-08-27 09:12:21 +01:00
Ryan VanderMeulen
e6c856afa4 Merge b2g-inbound to m-c. a=merge 2015-08-06 15:37:49 -04:00
Ehsan Akhgari
ec9e9b5db2 Bug 1190040 - Part 2: Teach the audio channel service how to not notify audio-playback, and do that when a media element has no audio track; r=padenot 2015-08-06 10:26:27 -04:00
Alastor Wu
795580a26c Bug 1186135 - change active flag per channel. r=ehsan 2015-08-05 10:47:10 +08:00
Ehsan Akhgari
fc6b13788a Bug 1190082 - Rename media-playback and the related stuff to audio-playback; r=smaug
Given that we only dispatch this for audio, media-playback sounds
like a misnomer.
2015-08-04 21:07:41 -04:00
Birunthan Mohanathas
e1f0334d06 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Paul Adenot
1bbf6e6702 Bug 1156472 - Part 14 - Null check the window, because it can be different during the window's shutdown. r=baku
In which case everything is cleaned up properly by the HTMLMediaElement themselves.
2015-07-24 14:28:17 +02:00
Paul Adenot
6601e105bf Bug 1156472 - Part 1 - Allow to capture all HTMLMediaElements and AudioContexts for a document. r=baku,padenot
This is built on top of the AudioChannel infrastructure. This patch does not
actually implement the capture, it just does the plumbing to be able to notify
all HTMLMediaElement/AudioContext for a document.
2015-07-09 16:40:08 +02:00
Wes Kocher
81078e6666 Backed out 14 changesets (bug 1156472) for test_getUserMedia_audioCapture.html failures on b2g emulator
Backed out changeset deec8eb18346 (bug 1156472)
Backed out changeset 0f5bec4c05ba (bug 1156472)
Backed out changeset 2dd83ac00bf9 (bug 1156472)
Backed out changeset abd4e47887f7 (bug 1156472)
Backed out changeset 4824d9874663 (bug 1156472)
Backed out changeset 12805598e6fa (bug 1156472)
Backed out changeset e2f0062a1f67 (bug 1156472)
Backed out changeset 99ef8e436a7f (bug 1156472)
Backed out changeset 65bbfc1546af (bug 1156472)
Backed out changeset 2ab4f16eaf0a (bug 1156472)
Backed out changeset 7f565685e20a (bug 1156472)
Backed out changeset 28c03c98cb2b (bug 1156472)
Backed out changeset d477cfba6e1d (bug 1156472)
Backed out changeset 9819fa56caa1 (bug 1156472)
2015-07-24 13:15:57 -07:00
Paul Adenot
2141d8fe6d Bug 1156472 - Part 14 - Null check the window, because it can be different during the window's shutdown. r=baku
In which case everything is cleaned up properly by the HTMLMediaElement themselves.
2015-07-24 14:28:17 +02:00
Paul Adenot
ba8e11df83 Bug 1156472 - Part 1 - Allow to capture all HTMLMediaElements and AudioContexts for a document. r=baku,padenot
This is built on top of the AudioChannel infrastructure. This patch does not
actually implement the capture, it just does the plumbing to be able to notify
all HTMLMediaElement/AudioContext for a document.
2015-07-09 16:40:08 +02:00
Carsten "Tomcat" Book
d944a5d83e Backed out 14 changesets (bug 1156472) for bustage on a CLOSED TREE
Backed out changeset 2ddbf85a42c0 (bug 1156472)
Backed out changeset 306d02e17081 (bug 1156472)
Backed out changeset 03598139f39a (bug 1156472)
Backed out changeset 4b1e6069b598 (bug 1156472)
Backed out changeset 6c588a5eaaec (bug 1156472)
Backed out changeset 8c98d7beaea7 (bug 1156472)
Backed out changeset fbf59fbb5875 (bug 1156472)
Backed out changeset 66479dd9eed9 (bug 1156472)
Backed out changeset c8502deeed33 (bug 1156472)
Backed out changeset 1a60ff1149a1 (bug 1156472)
Backed out changeset af1638279785 (bug 1156472)
Backed out changeset 8210276a98ca (bug 1156472)
Backed out changeset 13730e7c5997 (bug 1156472)
Backed out changeset 05acb71cf981 (bug 1156472)
2015-07-24 17:08:37 +02:00
Paul Adenot
a6ab250559 Bug 1156472 - Part 14 - Null check the window, because it can be different during the window's shutdown. r=baku
In which case everything is cleaned up properly by the HTMLMediaElement themselves.
2015-07-24 14:28:17 +02:00
Paul Adenot
a8d30803eb Bug 1156472 - Part 1 - Allow to capture all HTMLMediaElements and AudioContexts for a document. r=baku,padenot
This is built on top of the AudioChannel infrastructure. This patch does not
actually implement the capture, it just does the plumbing to be able to notify
all HTMLMediaElement/AudioContext for a document.
2015-07-09 16:40:08 +02:00
Alastor Wu
b70b3b3859 Bug 1142933 - New audio channel type for system usages. r=baku 2015-03-16 12:01:50 +08:00
Andrea Marchesini
0c862ed544 Bug 1184970 - Remove unused struct in AudioChannelService, r=ehsan 2015-07-19 02:49:32 +01:00
Andrea Marchesini
c94697e661 Bug 1184972 - We should always use the top window for any audioChannel operation, r=ehsan 2015-07-19 02:47:49 +01:00
Wes Kocher
e246f57fa1 Merge b2ginbound to central, a=merge 2015-07-17 18:07:14 -07:00
Andrea Marchesini
17f08b3710 Bug 1177399 - patch 3 - AudioChannelAgent should not be initialized without a valid top-window, CLOSED TREE 2015-07-17 18:29:44 +01:00
Alastor Wu
855beafbc0 Bug 1170117 - Separate volume control. r=baku 2015-07-17 10:07:37 +08:00
Ehsan Akhgari
f6ec5aa5a5 Bug 1183925 - Part 2: Clean up the AudioChannelService shutdown; r=baku
Right now this function is called after the XPCOM component manager is
shut down, so it can never remove any observers.  It's better to do this
work in response to xpcom-shutdown while we still have a component
manager to be able to clean up after ourselves properly.
2015-07-15 17:47:28 -04:00
Andrea Marchesini
0e8fe9d3c7 Bug 1183304 - Unregister the actor when unlinked by CC. r=ehsan
CLOSED TREE
2015-07-17 07:08:00 -04:00
Ryan VanderMeulen
536eb11c6c Backed out changeset 21a5c9152c3b (bug 1183925) for B2G debug mochitest crashes. 2015-07-15 11:29:50 -04:00
Ehsan Akhgari
cc9fac764a Bug 1183925 - Clean up the AudioChannelService shutdown; r=baku
Right now this function is called after the XPCOM component manager is
shut down, so it can never remove any observers.  It's better to do this
work in response to xpcom-shutdown while we still have a component
manager to be able to clean up after ourselves properly.
2015-07-15 08:12:36 -04:00
Andrea Marchesini
419f1d1d37 Bug 1183446 - Audio Channel service should use outer windows, r=ehsan 2015-07-15 11:17:52 +01:00
Ehsan Akhgari
50c3d99001 Bug 1183356 - Part 2: Add assertions enforcing the usage of outer windows for all of the entry points of the API; r=baku
The assertions here serve as a unit test for the previous commit,
because with these, our existing tests would have caught this bug.
2015-07-14 11:48:19 -04:00
Carsten "Tomcat" Book
2cce4e3a95 Backed out changeset dc97f665d047 (bug 1183356) 2015-07-14 17:08:39 +02:00
Ehsan Akhgari
e329f353b5 Bug 1183356 - Part 2: Add assertions enforcing the usage of outer windows for all of the entry points of the API; r=baku
The assertions here serve as a unit test for the previous commit,
because with these, our existing tests would have caught this bug.
2015-07-14 08:53:02 -04: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